how to put an xml change into a mod?

bladex

Emperor
Joined
Oct 29, 2010
Messages
1,358
I changed it so siege worms never appear anymore and want to put it into a mod.

I changed values in the GlobalDefines file but how do i put these changes into a mod i can turn on and off in the game? I took one look at the SDK and didn't have a clue what to do. when i tried reading the guides in it i get cannot view errors.
 
The most useful guide to start with is probably Kael's Modders Guide to Civilization V, which explains how to use ModBuddy as well as how to make your mod change values of XML tables and suchlike. (not much has changed in the modding system between Civ V and BE, so most of the guide is still relevant)

To answer your question specifically, you'll want your mod to add a new XML file containing an Update command to change the value the variable in the global defines table. E.g.


Code:
<GameData>
   <Defines>
       <Update>
           <Where Name="ALIEN_SPAWN_COLOSSAL_START_TURN_MIN"/>
           <Set Value="500"/>
       </Update>
   </Defines>
</GameData>

That way when your mod is loaded in the game it runs your new XML file, and that changes the value of the variable you want changed.
 
Back
Top Bottom