Does anyone know how to make a simple XML edit included itself in a downloadable mod? I feel like this is probably super simple. Within Leaders_Text.xml in the game folder I find the line:
What I want to do is change the description on Tomyris's Killer of Cyrus ability in-game to say that they heal up to 25 hit points. I have already made the changes to them within the game using SQL, but the description still says '50'. It's insanely easy to do on my own computer, all I have to do is change that number to 25 instead of 50 and save it. The solution I have tried that doesn't work is changing the .modinfo file to read:
The .sql file makes the changes that work fine. The .xml file I made says this:
But it still says 50 in game. What am I doing wrong?
Code:
<Row Tag="LOC_TRAIT_LEADER_KILLER_OF_CYRUS_DESCRIPTION">
<Text>All units receive +5 [ICON_Strength] Combat Strength when attacking wounded units. When they eliminate a unit, they heal up to 50 hit points.</Text>
</Row>
What I want to do is change the description on Tomyris's Killer of Cyrus ability in-game to say that they heal up to 25 hit points. I have already made the changes to them within the game using SQL, but the description still says '50'. It's insanely easy to do on my own computer, all I have to do is change that number to 25 instead of 50 and save it. The solution I have tried that doesn't work is changing the .modinfo file to read:
Code:
<?xml version="1.0" encoding="utf-8"?>
<Mod id="a8634fd4-62e4-4789-bbff-e094b46603c1" version="1">
<Properties>
<Name>Balanced Units</Name>
<Teaser>Balances cavalry, anti-cavalry, and air units.</Teaser>
<Description>Lowers the combat strength of all cavalry and anti-cavalry units while raising production costs. Raises combat strength of air units, decreases production costs, and raises air slots in Aerodrome district and carriers. Various adjustments to some unique units.</Description>
<Authors>Cerkoryn</Authors>
</Properties>
<!-- Files included -->
<Files>
<File>BalancedUnitsCode.sql</File>
<File>BalancedUnitsText.xml</File>
</Files>
<!-- Different parts of the mod -->
<Components>
<UpdateDatabase id="UnitBalanceChanges">
<Items>
<File>BalancedUnitsCode.sql</File>
<File>BalancedUnitsText.xml</File>
</Items>
</UpdateDatabase>
</Components>
</Mod>
The .sql file makes the changes that work fine. The .xml file I made says this:
Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- edited by Cerkoryn as part of the Balanced Units mod. -->
<GameData>
<BaseGameText>
<Row>
<Update>
<Where Tag="LOC_TRAIT_LEADER_KILLER_OF_CYRUS_DESCRIPTION"/>
<Set Text="All units receive +5 [ICON_Strength] Combat Strength when attacking wounded units. When they eliminate a unit, they heal up to 25 hit points."/>
</Update>
</Row>
</BaseGameText>
</GameData>
But it still says 50 in game. What am I doing wrong?