• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Stahl-Opa

Marshall & Grossadmiral of Helvetia
72 Badges
Jun 16, 2011
750
169
www.vmods.org
  • Victoria 2: A House Divided
  • Europa Universalis IV: Call to arms event
  • Gettysburg
  • Heir to the Throne
  • King Arthur II
  • Leviathan: Warships
  • Magicka
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Crusader Kings II: Charlemagne
  • Victoria 2: Heart of Darkness
  • Warlock 2: Wrath of the Nagas
  • Pillars of Eternity
  • Europa Universalis IV: Mare Nostrum
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Reapers Due
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV: Wealth of Nations
  • Crusader Kings II
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Third Rome
  • BATTLETECH
  • Stellaris: Nemesis
  • Age of Wonders III
  • Age of Wonders: Shadow Magic
  • Crusader Kings II: Jade Dragon
  • Stellaris - Path to Destruction bundle
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • BATTLETECH - Digital Deluxe Edition
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
He guys,

I have the following Situation:

Country A is in war with Country B and borders Country C, D & E.

The default AI of A is now relocating around 80% of all troops to the border of Country B (while at war, makes sense).
But if the allied Countries C & D declares war, Country A is overruned very fast since there are no real defence forces on that border.

What I want to do is that the AI will only use like 40% of all troops in the war with B; 50% to protect the borders of C & D; 10% to protect the border to E.
I don't really see how to teach the AI this. It seems as soon the AI is in war, it will takes most of all troops the the area of war.

Any ideas how to do this? I know the basics of AI modding, but can't achieve this :'(

Greez
Opa
 
He guys,

I have the following Situation:

Country A is in war with Country B and borders Country C, D & E.

The default AI of A is now relocating around 80% of all troops to the border of Country B (while at war, makes sense).
But if the allied Countries C & D declares war, Country A is overruned very fast since there are no real defence forces on that border.

What I want to do is that the AI will only use like 40% of all troops in the war with B; 50% to protect the borders of C & D; 10% to protect the border to E.
I don't really see how to teach the AI this. It seems as soon the AI is in war, it will takes most of all troops the the area of war.

Any ideas how to do this? I know the basics of AI modding, but can't achieve this :'(

Greez
Opa

I'm not an AI expert but i think you could made something like this ....
Code:
command = { type = ai which = [file name]  }   # Switches the ai file of a country.
and then made an AI file with ythis entries
Code:
# Country tags listed with a value specifying how much we want to destroy them.
combat = {
    ENG = 60
    FRA = 70
}

max_front_ratio            = X        # The max wanted friendly-to-enemy division ratio along the front. Default is 4.0.
max_front_ratios = {             # Override the default against specific countries. Ignored against humans.
    FIN = 2.0
    ...
}
and add in garrison section these entries
Code:
    opposing_alliance = 100        # For neutrals, all alliances are "opposing"
    claim_threat = 100            # If we are neutral, countries with claims on us get this
    unstable_border    = 50        # Bordering countries at war with someone else get this

    # Borders with specific countries
    country_priorities = {
        ENG = 30
        FRA = -1     # Override "opposing_alliance", "claim_threat" and "unstable_border" values and set to 0.
        ...
        ...
    }

Have you try to ask in the The Wizard's Lair - AI Fixes and Thoughts section ?
 
hi there :)
thanks alot for the suggestions.

I've done it mostly with the 'country_priorities = { }'.
maybe I must use the 'max_front_ratios = { }' for the specific countries too?!

So, let's think about this.

Country A has 100 divisions and
'max_front_ratios = {
CountryB = 1.0
CountryC = 2.0
CountryD = 2.0
}
Country B has 40 Divisions.
Country C has 60 Divisions.
Country D has 30 Divisons.

How Country A will locate it's troops?

Since it's at wat with B, I think the AI will try to match the front_ratio first. -> 40 divison on the front to B.
On the border the C, A have to place 120 Divisons and on the border to D 60 Divisions.
How the AI will do this (assumed there are no other priorities defined)?

40 on front B (60 divisions left)
30 on border C (30 left)
30 on border D​

or

40 on front B (60 left)
40 on front C (20 left)
20 on front D
what do you think about?

I haven't posted it in the wizard's lair. Not sure why, but I prefer to post "more complex" questiosn in a own thread. Feels kind of chaotioc if there is too much info in such a collecting-thread.