Editing Existing Units

Chamale

Chieftain
Joined
Sep 12, 2013
Messages
6
edit: I see I've placed this thread in the wrong place, please move it to Creation & Customization. Sorry.
edit2: This is embarrassing. I hadn't seen LeeS's Common Novice-Modder Mistakes thread until now, and it helped me figure out the problem with my XML that was making this mod not work.

I haven't been able to find any tutorials on editing units that already exist in Civ V. I've tried following the instructions on the wiki, Kaal's Modding Guide and LuvToBuild's guide, but my mods aren't working and I don't know why. Let's say I want to change the combat strength of the Archer to 4.

First, I tried creating a copy of CivVUnits.xml in the mod's folder with the appropriate values changed, set "Import into VFS" to true, set the mod properties to include "OnModActivated UpdateDatabase - CivVUnits.xml" and ran the mod. Nothing.

Thanks to LeeS, I got this to work by creating a new xml file and telling the mod to update that:

<?xml version="1.0" encoding="utf-8"?>
<GameData>
<Units>
<Update>
<Set Combat="4"/>
<Where Type="UNIT_ARCHER"/>
</Update>
</Units>
</GameData>
 
Top Bottom