Multiple traits for Leaders

Jenno

Chieftain
Joined
Oct 10, 2010
Messages
4
Hello every1,

I have a question, I hope I am posting it in the right forum; the question is, how do add multiple traits to leaders. When you edit the 'leaders' xml file at the base of the file is the area for their traits. Can you add more than one trait in there and is it preceeded by a <Row> and ended with a </Row> for every trait entry? I have tried researching this topic throughout the forum and even read the detail pdf on modding (maybe too detailed for this brain of mine).
Any help would be greatly appreciated,

Cheers from Aus,
Jenno
 
You can create new traits in the Civ5Traits.xml located in the Assets\Gameplay\XML\Civilizations folder. They look like this:

<Row>
<Type>TRAIT_LAND_TRADE_GOLD</Type>
<Description>TXT_KEY_TRAIT_LAND_TRADE_GOLD</Description>
<ShortDescription>TXT_KEY_TRAIT_LAND_TRADE_GOLD_SHORT</ShortDescription>
<TradeRouteChange>1</TradeRouteChange>
</Row>
<Row>
<Type>TRAIT_WONDER_BUILDER</Type>
<Description>TXT_KEY_TRAIT_WONDER_BUILDER</Description>
<ShortDescription>TXT_KEY_TRAIT_WONDER_BUILDER_SHORT</ShortDescription>
<WonderProductionModifier>20</WonderProductionModifier>
</Row>

The different changable variables are listed at the top, though just going through the list will give you a pretty good idea of what the trait capabilities are.
 
This isn't the right forum.. but you add multiple traits by creating a new one and attaching the types. In the above example, if you wanted to add those 2, you would type the following code:

Spoiler :
Code:
<Gamedata>
	<Traits>
		<Row>
			<Type>NEW_TRAIT_DOUBLE_TEST</Type>
			<Description>TXT_KEY_NEW_TRAIT_DOUBLE_TEST</Description>
			<ShortDescription>TXT_KEY_NEW_TRAIT_DOUBLE_TEST_SHORT</ShortDescription>
			<TradeRouteChange>1</TradeRouteChange>
			<WonderProductionModifier>20</WonderProductionModifier>
		</Row>
	</Traits>
</Gamedata>

There are other traits that follow their own rules and need to be placed within their given tree. Trait_ResourceQuantityModifiers would be one of those. Also don't forget to create the text tag(s) in the Language_en_US bracket.
 
Back
Top Bottom