Want to change leader traits

sanjay_111

Warlord
Joined
Mar 20, 2007
Messages
138
Hi,

I have absolutely no idea how a mod is created. I tried going through the video demo posted by Kael but there is too much lag between audio and video and I was not able to figure out what was being told.

ALL I want to do is - change the trait of Gandhi from Spiritual / Philosophical to Spiritual / Creative in BTS. I could play another Spiritual / Creative leader (Hatsheptsut) but then I will miss the Indian UU which I do want.

Can it be done ?

If so, can anyone tell me how to do it ? I am completely ignorant about modding - won't even know where to start !

Thanks
 
Thats easy. You need to create a folder in the mods directory in

C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\

The directory could be named "Ghandi" with a subdirectory Assets, XML under that and Civilizations under that:

C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\Ghandi\Assets\XML\Civilizations\

In that directory you copy the file

C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Assets\XML\Civilizations\CIV4LeaderHeadInfos.xml

from the regular Beyond the Swords set.

Open the copied file in notepad:

You will see something like this:

<?xml version="1.0"?>
<!-- edited with XMLSPY v2004 rel. 2 U (http://www.xmlspy.com) by Alex Mantzaris (Firaxis Games) -->
<!-- Sid Meier's Civilization 4 -->
<!-- Copyright Firaxis Games 2005 -->
<!-- -->
<!-- Leader Infos and AI Settings -->
<Civ4LeaderHeadInfos xmlns="x-schema:CIV4CivilizationsSchema.xml">
<LeaderHeadInfos>
<LeaderHeadInfo>
<Type>LEADER_BARBARIAN</Type>
<Description>TXT_KEY_LEADER_BARBARIAN</Description>
<Civilopedia>TXT_KEY_LEADER_BARBARIAN_PEDIA</Civilopedia>
<ArtDefineTag>ART_DEF_LEADER_BARBARIAN</ArtDefineTag>
<iWonderConstructRand>0</iWonderConstructRand>

etc.

Find LEADER_GANDHI and inside this entry there is a tag called traits that looks like this:

<Traits>
<Trait>
<TraitType>TRAIT_SPIRITUAL</TraitType>
<bTrait>1</bTrait>
</Trait>
<Trait>
<TraitType>TRAIT_PHILOSOPHICAL</TraitType>
<bTrait>1</bTrait>
</Trait>
</Traits>

Now to change Philosophical for Creative, you change the second trait: TRAIT_PHILOSOPHICAL to TRAIT_CREATIVE . Thats all there is to it!

Good luck!
 
Thanks a ton !

Will try at home tonight. Meantime, may I also ask another query - how exactly will I load this new mod ? Will it appear as an option in the custom game menu when I load the game ?

Really appreciate your help. Will get back to you with results today.

Sanjay
 
Thanks a ton once again, Mercury !

I am already playing it and it goes much better than other traits. It is soo good to see the cities expand fast and no need to build stonehenge for early city expansions.

Creativity is also a key trait of India so it feels more "India" if you will.

Sanjay
 
Back
Top Bottom