I need help modifying a promotion. Plus, how do you modify and/ or add celebration effects?

Bate1999

Warlord
Joined
Dec 22, 2010
Messages
104
I am trying to add the Zeal effect to the promotion "Battle Group" for testing purposes but it is not working. This is what I have so far. What do I need to change to make this work or does anyone like have an example mod that deals directly with adding/ changing promotions?

<?xml version="1.0" encoding="utf-8"?>
<Database>
<Unit_Stats>
<Add>
<Where GameEffects="MOD_PROMOTION_CARRIER_BATTLE_GROUP_DEFENSE"/>
<OwnerRequirements>
<Requirement type="REQUIREMENT_UNIT_IS_STATIONED_ON_DISTRICT"/>
</OwnerRequirements>
<Argument name="YieldType">YIELD_FOOD, YIELD_PRODUCTION, YIELD_GOLD, YIELD_CULTURE, YIELD_SCIENCE, YIELD_DIPLOMACY</Argument>
<Argument name="Percent">5</Argument>
</Add>
</Unit_Stats>


</Database>

All of that is in a file named units.xml in a folder named data. Also, do I need to put anything in the "modinfo", like update this or add this?


Additionally what should the setup look like for modifying celebration effects and even more importantly adding those effects to the existing governments?
 
For the second, I only saw how France is literally adding all Celebration effects to their government in their ability. Maybe it is similar that Government choice does so defaultly when chosen as a Game Effect.
 
You need to put something in your modinfo.

The criteria decides when the files are gonna apply in the game. You can check other mods (or the game files) to see the other criteria.

XML:
<ActionGroup id="[whatever ID]" scope="game" criteria="antiquity-age-current">
    <Actions>
        <UpdateDatabase>
            <Item>[Your file]</Item>
        </UpdateDatabase>
    </Actions>
</ActionGroup>

If this doesn't work, then it might have something to do with what units can have promotions or not, but I haven't tried it myself.
 
You need to put something in your modinfo.

The criteria decides when the files are gonna apply in the game. You can check other mods (or the game files) to see the other criteria.

<ActionGroup id="[whatever ID]" scope="game" criteria="antiquity-age-current"> <Actions> <UpdateDatabase> <Item>[Your file]</Item> </UpdateDatabase> </Actions> </ActionGroup>
If this doesn't work, then it might have something to do with what units can have promotions or not, but I haven't tried it myself.

Okay and thanks I will try to test that out in the coming days.
 
Back
Top Bottom