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
addItem or addAction command
Is there an addItem or addAction command? I am trying to make add some additional actions to the CSM cult marines and I can get the traits to stick to the units, but I cannot get the actions to show up.

Alternately is requiredTrait a thing for actions or weapons?
< >
Showing 1-3 of 3 comments
Kurziel 17 14 Feb, 2023 @ 1:21pm 
Look at <genericUnitAbility> in the unit files. Listed in the <actions/> section, typically below the attacks.
I got the Abilities built, but I couldn't find one that activated off a trait. I could only find the requiredUpgrade, but that is not what I want to use.

I just need to make it work with the markofKhorne ability in the CSM factions file so that the unit gets the ability/item and the trait. I tried adding the ability to the trait, but Gladius didn't like that.
Have you tried something like this? Tis is a weapon trait that only activates if the unit has a specific trait.

<trait alwaysVisible="1" category="Buff" icon="Traits/FirstRankFireSecondRankFire">
<modifiers>
<modifier>
<conditions>
<unit>
<trait name="OrderFirstRankFireSecondRankFire"/>
</unit>
</conditions>
<effects>
<attacks add="1" duration="1"/>
</effects>
</modifier>
</modifiers>
</trait>
< >
Showing 1-3 of 3 comments
Per page: 1530 50