New to Modding/editing - need simple mod

champion7891

Chieftain
Joined
Jul 26, 2012
Messages
5
Hi!

I hope this is the relevant forum to post on. As the title suggests, I am new to "modding" - but the mods that I am interested in / to make should probably not deal with lua files.

What I want is to simple merge 2 civilizations traits into one - e.g I want France/Napolean to also have the wonder builder's trait. I tried figuring out the xml's but I would appreciate it if someone could give me pointers to this.

Thanks!

Moderator Action: Moved to C&C.
 
This is still a great guide for those that are new to modding:

Kael's Modding Guide PDF

And, here ya go :) :

Code:
<Traits>

     <Update>
          <Where Type="TRAIT_ENHANCED_CULTURE"/>
          <Set WonderProductionModifier="20"/>
     </Update>

</Traits>
 
Could you point me to the correct file in which to place this code?

Secondly, does this change the enhanced culture trait or add to it i.e. replaces it with wonder builders or adds wonder builders to it in addition to enhanced culture
 
Ok, so i tried a couple of things...i added these line at the end of the CIV5Traits.xml file
<GameData>
<Traits>
<Update>
<Set WonderProductionModifier="20"/>
<Where Type="TRAIT_ENHANCED_CULTURE"/>
</Update>
</Traits>
</GameData>

and then went to the game and tried onstruting a wonder with France/Napolean to no avail i.e. the 20% modifier is not working - similarly on changing
<Row>
<Type>TRAIT_ENHANCED_CULTURE</Type>
<Description>TXT_KEY_TRAIT_ENHANCED_CULTURE</Description>
<ShortDescription>TXT_KEY_TRAIT_ENHANCED_CULTURE_SHORT</ShortDescription>
<ObsoleteTech>TECH_STEAM_POWER</ObsoleteTech>
<CityCultureBonus>2</CityCultureBonus>
</Row>

to
<Row>
<Type>TRAIT_ENHANCED_CULTURE</Type>
<Description>TXT_KEY_TRAIT_ENHANCED_CULTURE</Description>
<ShortDescription>TXT_KEY_TRAIT_ENHANCED_CULTURE_SHORT</ShortDescription>
<ObsoleteTech>TECH_STEAM_POWER</ObsoleteTech>
<CityCultureBonus>2</CityCultureBonus>
<WonderProductionModifier>20</WonderProductionModifier>
</Row>

made no changes in the actual gameplay....?
 
1. It's better to make a mod than to change the original files.
2. If you changed the vanilla game's file (assets\Gameplay\XML\Civilizations\Civ5Traits.XML) instead of the file used in the expansion (assets\DLC\Expansion\Gameplay\XML\Civilizations\Civ5Traits.XML), it will have no effect when playing the expansion.
 
Back
Top Bottom