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

How can I modify France's trait?

Discussion in 'Mod Creation Help' started by Narvana, Apr 6, 2017.

  1. Narvana

    Narvana Chieftain

    Joined:
    Nov 20, 2016
    Messages:
    48
    Gender:
    Female
    Please, aid poor noob.

    Let's say that I would want to modify France's trait and add more wonders to the "20% faster" thingy. Or that I would want to change 20% to 30%. How can I do that?

    That's how it looks in Civilization.xml:

    Code:
    <Row>
                <TraitType>TRAIT_CIVILIZATION_WONDER_TOURISM</TraitType>
                <ModifierId>TRAIT_WONDER_DOUBLETOURISM</ModifierId>
            </Row>
            <Row>
                <TraitType>TRAIT_CIVILIZATION_WONDER_TOURISM</TraitType>
                <ModifierId>TRAIT_ALHAMBRAPRODUCTION</ModifierId>
            </Row>
            <Row>
                <TraitType>TRAIT_CIVILIZATION_WONDER_TOURISM</TraitType>
                <ModifierId>TRAIT_CHICHENITZAPRODUCTION</ModifierId>
            </Row>
            <Row>
                <TraitType>TRAIT_CIVILIZATION_WONDER_TOURISM</TraitType>
                <ModifierId>TRAIT_FORBIDDENCITYPRODUCTION</ModifierId>
            </Row>
            <Row>
                <TraitType>TRAIT_CIVILIZATION_WONDER_TOURISM</TraitType>
                <ModifierId>TRAIT_GREATZIMBABWEPRODUCTION</ModifierId>
            </Row>
    So we have the double-tourism thingy and all wonders from mid game eras which production time is shortened...

    The problem is, I couldn't find any extension to this "TRAIT_ALHAMBRAPRODUCTION", where I could change 20% --> 30%. Also, I doubt that adding modifierld "TRAIT_STONEHENGEPRODUCTION" will magically work. So, what would I have to do?
     
  2. kantorr

    kantorr Chieftain

    Joined:
    Mar 1, 2017
    Messages:
    51
    Look further down in the XML for the ModifierArguments table. You will find something there that I would imagine says
    Code:
    <Row>
     <ModifierId>TRAIT_ALHAMBRAPRODUCTION</ModifierId>
    <Name>ScalingFactor</Name>
    <Value>120</Value>
    </Row>
    
    Instead of ScalingFactor the argument might be amount and the value 20. You just never know, there is no consistency at all for production bonus modifier argument names...

    Implementing the change via a mod would require a modinfo and all that then updating base game tables, which I'm sure you can find how-to's on that somewhere here.
     
    Narvana likes this.

Share This Page