Hearts of Iron IV

Hearts of Iron IV

69 ratings
Pure Random AI Focuses
File Size
0.156 MB
Mar 16 @ 8:51pm
Jun 29 @ 2:51pm
6 Change Notes ( view )

Subscribe to download
Pure Random AI Focuses

In 1 collection by Toppopia
Pure Random AI Focuses mod collection
6 items
Current version: 1.5.4

I have set the factor of the ai choosing all focuses and focus event decisions to be a factor of 1 which shouldn't cause problems if all values are 1. I did prior to this update have them at 40 but since for my other mod I switched them to 1 there hasnt been any problems so I did the same here. So no more German 9 times out of 10 picking Rhienland. The people finally stand up to Hitler and overthrow him. These changes also affect some events like Hungary's Bled Agreement because the focus causes events to fire and the chances of AI picking an outcome is now random as well. I may have misred the code but thats my interpretation of it.

Files edited: Common/national_focuses.

Leave historical AI unticked.


Works with and without DLC.

Please leave a comment if theres any problems and I will try to fix them as soon as I can.

Road to 56 Version: https://steamcommunity.com/sharedfiles/filedetails/?id=1344329281

Kaiserreich Version: https://steamcommunity.com/sharedfiles/filedetails/?id=1359838028

The Great War Version: https://steamcommunity.com/sharedfiles/filedetails/?id=1377295995

Modern Day 4 Version: https://steamcommunity.com/sharedfiles/filedetails/?id=1385709435

Millennium Dawn Version: https://steamcommunity.com/sharedfiles/filedetails/?id=1385717695
< >
Toppopia  [author] Jul 11 @ 10:12pm 
@Replica Thats basically what I do but I use the replace function on notepad++ and use this 'factor \s*=\s*\d+' to find the lines I want. Only minor annoyance is that the factor value for the focuses being given to the set tag also changes so I have to manually go through and change the first number of each tree but as I said its minor.

The other not minor annoyance is that say for Road to 56 some focuses like most of Argentinas focuses dont have a AI value so I assume it defaults to the value Paradox set. I decided on the safe side to not try adding my own lines in and so far theres been no comments.
Replica Jul 11 @ 9:06pm 
Unsure if this is of any help to you, but I wanted this for the Cold War mod, and took a look at your files, and deduced that you're doing this using ai_will_do = { factor = 1 }.

To add this to the 6400k+ focuses that mod has, I got the ToolBucket plugin for Notepad++ to multi-line replace:

focus = {


ai_will_do = {
factor = 1 }
focus = {

n this should prob add the random to all entries, making it easier to just, skim through n whatnot rather than add them one by one to each focus in each tree by hand.

But mayb you got your own method to it, idk, great mod(s) either way, really hate playing without it.
fanciefeathers Jul 9 @ 10:06pm 
does this work with Endsieg?
Rice Bandit Jul 8 @ 12:10pm 
Genuinely consider doing this for the World War 2 Simulation Mod, as it desperately needs this! :sayaka_DGR:
Senyor Novakk Jul 6 @ 2:15pm 
Fuhrerreich version :)))
Terminus Est Jul 5 @ 3:59pm 
Could make a version for The Iron Curtain mod?
Markusaw Jul 3 @ 2:19pm 
Toppopia  [author] Jul 3 @ 11:56am 
Probably not, the expanded focuses will override my changes.
Markusaw Jul 3 @ 9:32am 
Will this work with mods that expand minor countries' focus trees?
Darkability Jun 27 @ 8:50am 
pls do one for the warcraft one