1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

Custom Trait Won't Load!!

Discussion in 'Civ5 - Creation & Customization' started by Telecide, Sep 21, 2011.

  1. Telecide

    Telecide Chieftain

    Joined:
    Oct 28, 2005
    Messages:
    29
    Hi. Forgive my frustration here, but I find myself completely unable to accomplish the simplest task in civ 5. I want to make a civ with its own unique trait, but no matter what I do I can't get any civ to a trait other than the default.

    Right now I'm just trying to get this simple bit of code to work to change Napolean's trait, and then I can move on to other stuff.

    Code:
    <Leader_Traits>
    		<Update>
    			<Set TraitType="TRAIT_RIVER_EXPANSION"/>
    			<Where LeaderType="LEADER_NAPOLEON"/>
    		</Update>
    	</Leader_Traits>
    
    I'm assuming if I'm successful I'll be able to see that the description fo the civilization's bonus has changed.

    Seems simple enough, right. What could be going wrong?

    Thanks. :)
     
  2. Telecide

    Telecide Chieftain

    Joined:
    Oct 28, 2005
    Messages:
    29
    Ok, I actually got that part to work. Now what I'm having problems with is changing an existing leaders trait to a custom one.
     
  3. Rhysjudo

    Rhysjudo Chieftain

    Joined:
    Feb 26, 2011
    Messages:
    1
    Are you creating a brand new one from scratch? If so make sure you are looking at the table at the top of the file to see the accepted parameters. Her is an example of one i made that grants + 2 culture to all cultural buildings.


    <Row>
    <Type>TRAIT_CULTURE_FROM_BUILDINGS</Type>
    <Description>TXT_KEY_TRAIT_CULTURE_FROM_BUILDINGS</Description>
    <ShortDescription>TXT_KEY_TRAIT_CULTURE_FROM_BUILDINGS_SHORT</ShortDescription>
    <CultureBuildingYieldChange>2</CultureBuildingYieldChange>
    </Row>


    Now the part that says <Type>TRAIT_CULTURE_FROM_BUILDINGS</Type> can be named anything you want you just have to follow modifiers that are hard coded into the game such as <CultureBuildingYieldChange>

    This part is listed in the "traits" file and then you just change the modifier under the leader file bearing that leaders name. Additionally, if you want the name of the new trait to show up properly in game, you must create an entry for it in the New Text folder under EN_US and the file is TextInfos_Jon.

    Hope that helps and good luck.
     

Share This Page