Warhammer 40,000: Gladius - Relics of War

Warhammer 40,000: Gladius - Relics of War

Create and Share Custom Mods
The best mods for Warhammer 40,000: Gladius live here. Mods are made by players, for players and are not officially licensed by Games Workshop. Click 'Learn More' below to read our Modder’s Guide.
Learn More
Koger 1 27 Nov, 2024 @ 5:38am
How to increase AI loyalty bonus with time?
I want to create a mod to handle my current biggest problem with the game:
- either I set AI loyalty bonus so high I need to "cheat" using large map and very high wildlife setting to delay contact with AI, giving me time to build up
- or I set lower AI bonus and meet AI earlier, to basically run them over after struggling with first wave of enemies...

There's no middle point - either AI is too strong in the beginning, or too weak after first fighting/couple turns.

As loyalty bonus seems to be the basic difficulty affecting setting, I came up with idea of increasing AI's bonus with time.

Any suggestions on how could I achieve that?

It would be best if I could create some trait, for cities maybe, which bonus would change depending on turn number for example, however I didn't see any condition etc. using turn numbers. Only quests seem to be using those.

Other idea is to connect it to other parameter that increases with time.
Maybe cities maxHealth? It seems to increase constantly with number of buildings build, however I didn't see it used in any conditions block (besides hitpointsFraction, but that obviosuly wouldn't work here).

Or maybe there's some global player parameter like number of units, or researched technologies, or... that I could tie to loyalty bonus increase?


Other idea I have would be to add technologies increasing loyalty on each tier, however it wouldn't guarantyy AI actually researching those...

Any ideas are welcome :)
< >
Showing 1-2 of 2 comments
Aramus 27 Nov, 2024 @ 10:16am 
Very Interesting thoughts from you.

You are right, the AI tends to be very strong from the beginning (high difficulty) or weak on the endgame on low difficulty.

I experimented with a Loyality-Bonus to the AI, which will increase over time.
So the game starts easy and will be more difficult from mid to endgame.

I attached to some buildings-XML the following:

<modifier>
<conditions>
<player>
<aiControlled/>
</player>
</conditions>
<effects>
<loyalty add="3"/>
</effects>
</modifier>

This means, if the AI builds more buildings, the Loyality-Bonus will increase.
If the AI-Cities will growth bigger and bigger, more Loyality will created.

But which buildings should be attached by this Loyality-Bonus?
Only some or all buildings :)

The inspiration for a Loyality-Bonus for some buildings come from the mod
AI ECO+ - AI Economy Improvements
On this mod, the construction-Building get some bonus-ressources only for the AI.
Last edited by Aramus; 27 Nov, 2024 @ 10:26am
Koger 1 27 Nov, 2024 @ 12:13pm 
Small loyalty bonus for each buildings, why didn't I think of that :⁠-⁠D It's simple and effective, wonderful! Thanks!
< >
Showing 1-2 of 2 comments
Per page: 1530 50