Extremely noob question for noob purpose

hitom

Chieftain
Joined
Aug 12, 2016
Messages
4
Hi i just wanted to create my very first mod in CIV5 ModBuddy, however i struggle with it...

Here is my code:

<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 8/12/2016 11:02:19 AM -->
<GameData>
<Update>
<Units>
<Set Moves="3"/>
<Where Type="UNIT_SCOUT"/>
</Units>
</Update>
</GameData>

I already added the action and event which are necessary to start it. I also activated the mod in the game too.


All i want to do is to make the unit globally have 3 moves.... but it doesn't work :(
 
Update should follow Units and /Update should be above /Units.

Yes, thank you for your response! I figured it out by now.. However, now there is a bigger problem....

I want to start with a scout unit instead of a warrior, on the other hand it seems the changes i make to the scout (increase moves and cost) are incompatible with "StartingExplorerUnit".

Code:

<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 8/12/2016 11:02:19 AM -->
<GameData>

<Eras>
<Update>
<Where Type="ERA_ANCIENT"/>
<Set>
<StartingDefenseUnits>0</StartingDefenseUnits>
<StartingExploreUnits>1</StartingExploreUnits>
</Set>
</Update>
</Eras>

<Units>
<Update>
<Where Type="UNIT_SCOUT"/>
<Set>
<Moves>3</Moves>
<Cost>15</Cost>
</Set>
</Update>
</Units>

</GameData>


Using this mod - and nothing else - i start with a Defense unit instead of a Scout, which i don't want. I wonder... do the changes i made to the scout alter the Name or ID of it? Because when i commented out the changes i made to the scout, i started with a scout and no Defense units.

Uncommenting the changes, i start with a Defense unit, but the changes to the scout are applied...
 
Top Bottom