I want to edit PAU, need help please!

System32.exe

Chieftain
Joined
Oct 26, 2014
Messages
6
I want to modify the People's African Union so that they get 15% food growth (instead of 10%) and receive +1 food yield from farms, plantations, and biowells, the problem is that I have no idea what code I need to add or modify to do this, help please?

P.S. I've got the SDK installed and know the basics of how to use it
 
For the first part, it's:

With SQL:
Code:
UPDATE Traits SET HealthyEmpireGrowthModifier = 15
    WHERE Type = 'TRAIT_GROWTH_FROM_HEALTH';

Or with XML:
Code:
<GameData>
    <Traits>
        <Update>
            <Set HealthyEmpireGrowthModifier="15"/>
            <Where Type="TRAIT_GROWTH_FROM_HEALTH"/>
        </Update>
    </Traits>
</GameData>

EDIT:
The second part, with SQL:
Code:
INSERT INTO Trait_ImprovementYieldChanges (TraitType, ImprovementType, YieldType, Yield) VALUES
    ('TRAIT_GROWTH_FROM_HEALTH', 'IMPROVEMENT_FARM', 'YIELD_FOOD', 1),
    ('TRAIT_GROWTH_FROM_HEALTH', 'IMPROVEMENT_PLANTATION', 'YIELD_FOOD', 1),
    ('TRAIT_GROWTH_FROM_HEALTH', 'IMPROVEMENT_BIOWELL', 'YIELD_FOOD', 1);

With XML (before </GameData>):
Code:
    <Trait_ImprovementYieldChanges>
        <Row>
            <TraitType>TRAIT_GROWTH_FROM_HEALTH</TraitType>
            <ImprovementType>IMPROVEMENT_FARM</ImprovementType>
            <YieldType>YIELD_FOOD</YieldType>
            <Yield>1</Yield>
        </Row>
        <Row>
            <TraitType>TRAIT_GROWTH_FROM_HEALTH</TraitType>
            <ImprovementType>IMPROVEMENT_PLANTATION</ImprovementType>
            <YieldType>YIELD_FOOD</YieldType>
            <Yield>1</Yield>
        </Row>
        <Row>
            <TraitType>TRAIT_GROWTH_FROM_HEALTH</TraitType>
            <ImprovementType>IMPROVEMENT_BIOWELL</ImprovementType>
            <YieldType>YIELD_FOOD</YieldType>
            <Yield>1</Yield>
        </Row>
    </Trait_ImprovementYieldChanges>
 
For the first part, it's:

With SQL:
Code:
UPDATE Traits SET HealthyEmpireGrowthModifier = 15
    WHERE Type = 'TRAIT_GROWTH_FROM_HEALTH';

Or with XML:
Code:
<GameData>
    <Traits>
        <Update>
            <Set HealthyEmpireGrowthModifier="15"/>
            <Where Type="TRAIT_GROWTH_FROM_HEALTH"/>
        </Update>
    </Traits>
</GameData>
Thank you, that's a huge help, I'll try it right now.

EDIT: It worked! I appreciate this a lot, thank you!
 
Back
Top Bottom