Customize leader traits

Jeppson

Warlord
Joined
Jun 11, 2005
Messages
107
Location
Sweden
Is it possible to add an option were you can choose two traits for your leader and wich two of (the starting techs) techs to start with.
 
There's a couple things you can do here. But in a broad answer to what I think you are trying to ask... there is no "utility" for changing these traits in a simple and easy fashion.

The good news is, it's not very difficult if you do the following:

1) Backup any files that you are going to alter. Personally, I suggest downloading the "Leaders" mod and just doing this to that one first (since it's easy to navigate).

2) If possible, open the following files in an html editor (or other text editor) that has a search function.
-- Assets > XML > CIV4CivilizationInfos
-- Assets > XML > CIV4LeaderHeadInfos

3) In Civilization Infos, search for (or find) the civilization you are looking to alter (search for "CIVILIZATION_CIVNAME" where CIVNAME is the name of the civ, in all caps, that you are looking for. Ex.: CIVILIZATION_AMERICA).

4a) After you find the one you are looking for, alter the following Tags:
-- <TechType>TECH_TECH</TechType>
There will be two of them, a few lines apart between other tags. DO NOT ALTER ANYTHING ELSE. (unless you know what you are doing).

4b) Change TECH_TECH (whichever one is there) to TECH_YOURTECH (the tech that you want. Ex.: TECH_HUNTING).

4c) Do this for both tags.

Techs are now changed. To change the traits of leaders, go to the other file. In Leader Head Infos:

1) Search for (or find) the leader you want to alter. Search for "LEADER_LEADERNAME" where LEADERNAME is the name of the leader. (Ex.: LEADER_TOKUGAWA)

2) Scroll down just below the primary block of tags/code, and you will see the traits tags. <TraitType>

3) Alter the traits within these tags, in a similar fashion as you did with the Civilization techs. The trait names are formatted as TRAIT_TRAITNAME (Ex.: TRAIT_INDUSTRIOUS).

and so on... you get the idea.

Now, if you took my advice at the beginning and downloaded the leaders mod first, you A) have a cool mod that I actually like using, and B) don't have to worry about screwing up your primary files to play around with this and see what you like best before settling on a combination.

Any other questions, I suggest checking the guide to modding in the forums, and posting your question where it will normally be responded to more quickly.
 
I think he's asking if you can select them when the game starts rather than having pre-defined ones.

The starting techs are easy to customize through either XML or Python. It's more graceful if done in python. One way through XML only is to have each player start with a "great leader" or something similar that creates a unique building and that building grants two free techs. The building can also, to a degree, grant traits. The techs work well enough, you build the building and select your starting techs, but the traits can't be exactly like the "normal" leader traits. Right now I'm playing around with custom techs that can't be researched normally, those techs will "unlock" specific civics that will be used to define traits. Of course nothign is working quite right at the mometn but it's getting there :)
 
Back
Top Bottom