• Our friends from AlphaCentauri2.info are in need of technical assistance. If you have experience with the LAMP stack and some hours to spare, please help them out and post here.

How can I modify France's trait?

Narvana

Chieftain
Joined
Nov 20, 2016
Messages
62
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?
 
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.
 
Back
Top Bottom