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
WillieSea 6 Jun, 2023 @ 8:34am
How to Modify an existing Unit
The 'Modding Guide' is useless as it says to just edit the games XML file for the unit. But I don't want to do it that way if possible, I want to edit the unit with an EXT file.

I have found where you can 'ADD' to a value on a unit this way.
<movementMax add="3"/>

But is there a way to subtract, or set a new base value completely?

Lets say I want to change the cool down to 0 on the units XML file.
<clearTileUnitAbility cooldown="1"
How would I code that in the EXT file?
< >
Showing 1-5 of 5 comments
WillieSea 6 Jun, 2023 @ 9:16am 
Here are the important parts of the unit code:
<unit spawnCountMax="1" productionWeight="0.01"> <actions> <clearTileUnitAbility cooldown="1" icon="Actions/ClearTile" name="ClearTile"> <model> <action animation="Units/AstraMilitarum/TechpriestEnginseerBuild"/> </model> <beginTargets> <target rangeMax="1"> <conditions/> <areas/> </target> </beginTargets> <modifiers> <modifier visible="0"> <effects> <influenceCost base="5"/> <oreCost base="5"/> </effects> </modifier> </modifiers> </clearTileUnitAbility> </actions> </unit>

In my EXT file I tried this, but got a conversion to INT error.
<unit> <actions> <clearTileUnitAbility> <cooldown add="-1"/> </clearTileUnitAbility> </actions> </unit>
WillieSea 6 Jun, 2023 @ 9:35am 
I would also like to remove the 'consumes movement' tag, but I don't see it anywhere.
If it used an 'action' or a single 'movement' then that would be fine.
Jey 14 6 Jun, 2023 @ 11:07am 
Originally posted by WillieSea:
is there a way to subtract,
add="-1"

or set a new base value completely?
Look a the blueprint file. It sets value. I don't have the game on hand to check how it's done.
I'm not sure if it can be done with EXT file though.

Lets say I want to change the cool down to 0 on the units XML file.
<clearTileUnitAbility cooldown="1"
How would I code that in the EXT file?
I'm not sure you can.
EXT file is for extending.


Originally posted by WillieSea:
I would also like to remove the 'consumes movement' tag,.
Check the Battle Sense (?) trait of the eldar infantry, or the skills of the Imagifier.
WillieSea 6 Jun, 2023 @ 1:15pm 
Originally posted by Jey:
Originally posted by WillieSea:
I would also like to remove the 'consumes movement' tag,.
Check the Battle Sense (?) trait of the eldar infantry, or the skills of the Imagifier.
Thanks, that gave me the variable to add to the unit.

Also, I guess the EXT does not allow the other changes I want to make so I guess I will directly edit the unit. Thanks again!
Erik Taurus 27 Sep, 2023 @ 3:34am 
Originally posted by WillieSea:
Also, I guess the EXT does not allow the other changes I want to make so I guess I will directly edit the unit. Thanks again!
You already know this but for others who might read this.
The .ext is short for "extend" and the file does exactly that, extending an existing entity in the game.
So changing an existing value you have to make the change in the .xml file and add the file to your mod making it probably not compatible with other mods for the same unit.

This applies to all files except (from what I know) the language files which you don't have to copy the whole file but only add the lines you want and the game will merge them upon launch.
These files can't be .ext:d either.
Last edited by Erik Taurus; 27 Sep, 2023 @ 3:36am
< >
Showing 1-5 of 5 comments
Per page: 1530 50