Creating a unique civ trait

Gigglehugz

Chieftain
Joined
Nov 7, 2010
Messages
2
I'm new to modding, but my brother and I thought it might be fun to create some races. After brainstorming for a couple hours and getting all the traits/units/buildings in a balanced state we got started.

I've been following Kael's modding guide which has been ridiculously helpful but ran into a wall when it came to creating traits. My hope was to come up with some unique traits instead of piggy backing off of what was already there, but I can't seem to find any way to do this.

For example, race A would gain extra attack power (say 25%) when attacking a city that's located on the coast. For some other races we'd like to add additional yield to specific improvements (+1 food from camps, +1 gold from luxury's, etc.)

What would be the best way to approach creating these?
 
G'day,

I think I have an idea for the second part of your example, the specific improvements part.



Spoiler :



<GameData>
<Traits>
<Row>
<Type>TRAIT_SPECIFIC_RES_YIELD_INCREASE</Type>
<Description>TXT_KEY_TRAIT_SPECIFIC_RES_YIELD_INCREASE</Description>
<ShortDescription>TXT_KEY_TRAIT_SPECIFIC_RES_YIELD_INCREASE_SHORT</ShortDescription>
</Row>
</Traits>


<Trait_YieldChangesSpecificStratRes>
<Row>
<TraitType>TRAIT_SPECIFIC_RES_YIELD_INCREASE</TraitType>
<Resource_YieldChanges>
<Update>
<Set Yield="2"/>
<Where ResourceType="RESOURCE_WHALE" YieldType="YIELD_FOOD"/>
</Update>
</Resource_YieldChanges>
</Row>
</Trait_YieldChangesSpecificStratRes>


</GameData>



I haven't tested the above yet, but I think I've set it to set the food output from a whale resource to 2. I've used this because it's the example I was working from in Kael's guide.

I'm still new to this so I don't know how the update will affect other civilizations, it may increase food for everyone. I also feel that the conditional where may not work when used in a trait and assume there's a way to create Trait_YieldChangesSpecificStratRes differently to do this.

Let me know how if this works, I'll give it a shot myself when I get home.

Cheers,
Jason
 
Didn't get a chance to try this out until today but couldn't seem to get it to work for me. If you tried it out, did you have any luck?
 
Back
Top Bottom