Modding social policies?

Thalassicus

Bytes and Nibblers
Joined
Nov 9, 2005
Messages
11,057
Location
Texas
The first test below takes effect in game, but the second has no effect. The project is otherwise identical.

Code:
<GameData>
    <Buildings>
        <Update>
            <Where Type="BUILDING_GRANARY" />
            <Set GoldMaintenance="0" />
        </Update>
    </Buildings>
</GameData>

Code:
<GameData>
    <Policies>
        <Update>
            <Where Type="POLICY_CITIZENSHIP" />
            <Set WorkerSpeedModifier="50" />
        </Update>
    </Policies>
</GameData>

Does anyone know what I may be doing wrong? I've carefully been checking every tag to make sure it's correct...

The latter is located in GameInfo/CIV5Policies.xml
 
does it matter if the <Set tag comes before the <Where tag? In Kael's guild the Set always comes first, and thats what I've had success with. just a guess though.

also, i didn't use the space at the end, try it like this:

Code:
<GameData>
    <Buildings>
        <Update>
            <Set GoldMaintenance="0"/>
            <Where Type="BUILDING_GRANARY"/>
        </Update>
    </Buildings>
</GameData>
Code:
<GameData>
    <Policies>
        <Update>
            <Set WorkerSpeedModifier="50"/>
            <Where Type="POLICY_CITIZENSHIP"/>
        </Update>
    </Policies>
</GameData>
 
Back
Top Bottom