Adding a New Trait

PTM

Chieftain
Joined
Nov 9, 2005
Messages
93
Hey, I had a quick question and I can't find any discussion about it here -

Is there a way to add new leader traits? I know how to add traits that have similar characteristics as those that already exist (ie health benefits) but how do I add traits that do things like modify happiness per city? I also can't figure out how to add traits that mess with production speed for certain buildings (a la the way Spiritual gives double production speed of temples).

I tried to create a trait that gave 1 happiness per city. I used <iHappiness>1</iHappiness>, which I derived by looking at the way bonuses worker (like gold). I can get the game to load fine. The problem is that the bonus doesn't work. It shows up under the leader, but it doesn't nothing and the pop-up help on it is blank (it just says "Autocratic" in green with nothing below it).

Any ideas on how to make this work? I looked into the python but can't seem to find what I need.

Thanks.
 
I think in order to add new xml tag definitions, you need to dig a little deeper. My feeling is that you'd have to have the SDK, but I really don't know.
 
I think you can only use the tags that are already present. For now. Just mix and match what the other traits use to get your own one, that's what I'm doing.
 
Back
Top Bottom