Diplomacy Trait

extinction555

Chieftain
Joined
Mar 5, 2017
Messages
2
The basic premise is I'm trying to create a mod that makes my custom Civ (Canada) appear more friendly to other Civs and therefore deters others from declaring war to a degree.

I can achieve this globally by editing the STANDARD_DIPLOMACY_PEACE modifier, but this affects ALL civ relationships not just ones with Canada.

Essentially this is an agenda that is always fulfilled and applies to other people, at least that's how I see it.

Here's the abridged version of my XML...

HTML:
<?xml version="1.0" encoding="utf-8"?>
<GameData>
     <Types>
        <Row Type="TRAIT_CIVILIZATION_TEST" Kind="KIND_TRAIT" />
    </Types>

    <CivilizationTraits>
        <Row CivilizationType="CIVILIZATION_FELINE" TraitType="TRAIT_CIVILIZATION_TEST"/>
    </CivilizationTraits>

    <Traits>
        <Row TraitType="TRAIT_CIVILIZATION_TEST"   Name="LOC_TRAIT_CIVILIZATION_TEST_NAME" Description="LOC_TRAIT_CIVILIZATION_TEST_DESCRIPTION" />
    </Traits>

    <TraitModifiers>
        <Row>
            <TraitType>TRAIT_CIVILIZATION_TEST</TraitType>
            <ModifierId>TRAIT_CANADA_FRIENDLY</ModifierId>
        </Row>
    </TraitModifiers>

    <Modifiers>
        <Row>
            <ModifierId>TRAIT_CANADA_FRIENDLY</ModifierId>
            <ModifierType>MODIFIER_PLAYER_DIPLOMACY_SIMPLE_MODIFIER</ModifierType>
        </Row>
    </Modifiers>

    <ModifierArguments>
        <Row>
            <ModifierId>TRAIT_CANADA_FRIENDLY</ModifierId>
            <Name>InitialValue</Name>
            <Value>100</Value>
        </Row>
        <Row>
            <ModifierId>TRAIT_CANADA_FRIENDLY</ModifierId>
            <Name>MaxValue</Name>
            <Value>120</Value>
        </Row>
        <Row>
            <ModifierId>TRAIT_CANADA_FRIENDLY</ModifierId>
            <Name>IncrementValue</Name>
            <Value>10</Value>
        </Row>
        <Row>
            <ModifierId>TRAIT_CANADA_FRIENDLY</ModifierId>
            <Name>IncrementTurns</Name>
            <Value>1</Value>
        </Row>
        <Row>
            <ModifierId>TRAIT_CANADA_FRIENDLY</ModifierId>
            <Name>SimpleModifierDescription</Name>
            <Value>LOC_TOOLTIP_SAMPLE_DIPLOMACY_PEACE</Value>
        </Row>
    </ModifierArguments>
</GameData>


Any help is appreciated!
 
Back
Top Bottom