Europa Universalis IV

Europa Universalis IV

Modify the World
Modify your EUIV experience by checking out the many mods created and shared by the community, including tweaks to almost any aspect of the game. Take a look at the tags for an idea on where to start. When you're ready to create one of your own, check out this handy guide to help get started.
Shemiroth 20 Oct, 2024 @ 2:56pm
ai_army files
Supposedly we can edit the scores that the AI will judge provinces by. Like where they should move their armies.

This the example by Paradox

#Dummy example (add 0 or 0*100)
province = {
war = {
active = {
is_at_war = yes
}
eval_add = {
factor = 0
modifier = {
factor = 100
is_in_capital_area = yes
}
}
}
}


but I have tried similar things and it seems to have no effect. So I wonder if these are not being used anymore?
< >
Showing 1-5 of 5 comments
LimonenZitrone 59 20 Oct, 2024 @ 3:07pm 
They are used, and they work. They do seem a bit limited though.

One thing to note, as explained in the vanilla comments, the AI will pick the province with the lowest score, not the highest. So in this case here, AI would try to avoid going into provinces connected to the capital of their owner by land. At least assuming the 100 doesn't multiply but add. If it multiplies, it wouldn't do anything because the value would still be 0.
Last edited by LimonenZitrone; 20 Oct, 2024 @ 3:08pm
Shemiroth 20 Oct, 2024 @ 3:12pm 
Originally posted by LimonenZitrone:
They are used, and they work. They do seem a bit limited though.

One thing to note, as explained in the vanilla comments, the AI will pick the province with the lowest score, not the highest. So in this case here, AI would try to avoid going into provinces connected to the capital of their owner by land. At least assuming the 100 doesn't multiply but add. If it multiplies, it wouldn't do anything because the value would still be 0.


Oh yeah that makes sense, but I have tried modifying numbers to all sorts and it just doesn't seem to change anything when looking at the armyeval mapmode.
Shemiroth 20 Oct, 2024 @ 3:25pm 
Do you have any working examples? I am wondering if the game is just not reading my ai_army files
Shemiroth 20 Oct, 2024 @ 3:45pm 
ah seems to be working actually, problem is having to switch tags to get the scripted additions to show up
LimonenZitrone 59 20 Oct, 2024 @ 5:21pm 
There is a map mode you can switch to via console (also mentioned in the vanilla comments) and then pick an army in that mode to see the AI evaluation.

Though the ai_army stuff is only updated at certain situations, not constantly. Those again are mentioned in the vanilla comments.
< >
Showing 1-5 of 5 comments
Per page: 1530 50