Logo Platform
logo amplifiers simplified

Enabling a DiplomaticTermPressureEffectDefinition for a single affinity

Reply
Copied to clipboard!
5 years ago
May 9, 2020, 5:05:50 AM

How would I enable this diplomacy action for only the AffinitySophons?


<DiplomaticTermPressureEffectDefinition Name="GeneratePressure" PropositionMethod="Declaration" ApplicationMethod="ProviderOnly" Category="CategoryTreaty" Alignment="Bad">

        <DiplomaticRelationStateEmpirePrerequisite Flags="Prerequisite,Discard" Responsible="RelationOfEmpireWhichProvides">

            <PathPrerequisite Inverted="true">ClassDiplomaticEmpire,GeneratePressureTermActivate</PathPrerequisite>

            <!-- This line can be used and tweaked if you need to count the number of generate pressure currently occurring -->

            <!--<InterpreterPrerequisite>Property(Context,@ClassDiplomaticEmpire,GeneratePressureTermActive) lt 1</InterpreterPrerequisite>-->

        </DiplomaticRelationStateEmpirePrerequisite>        

        <DiplomaticRelationStatePrerequisite Inverted="true" Flags="Prerequisite,Discard" Responsible="EmpireWhichReceives">DiplomaticRelationStateUnknown</DiplomaticRelationStatePrerequisite>

        <DiplomaticMetaPrerequisite Flags="Prerequisite,Discard" Operator="OR">

            <DiplomaticRelationStatePrerequisite>DiplomaticRelationStateColdWar</DiplomaticRelationStatePrerequisite>

            <DiplomaticRelationStatePrerequisite>DiplomaticRelationStatePeace</DiplomaticRelationStatePrerequisite>

            <DiplomaticRelationStatePrerequisite>DiplomaticRelationStateAlliance</DiplomaticRelationStatePrerequisite>

        </DiplomaticMetaPrerequisite>

        <DiplomaticCustomCost Responsible="EmpireWhichProposes" ResourceName="EmpireEmpirePoint">500 * Property(EmpireWhichProposes,@ClassEmpire,DiplomacyCostReduction) * Property(Relation,@ClassDiplomaticEmpire,AggressiveTreatyCostReduction) * Property(Relation,@ClassDiplomaticEmpire,AggressiveTreatyCostReduction) * Property(OtherSideOfRelation,@ClassDiplomaticEmpire,ReceivedAggressiveTreatyCostReduction)</DiplomaticCustomCost>

        <DiplomaticPressureEffectDefinitionReference Name="PressureIncreaseFromDiplomacy"/>

    </DiplomaticTermPressureEffectDefinition>

0Send private message
5 years ago
May 9, 2020, 5:08:08 AM

I *think* I figured it out.  I added the line:


<PathPrerequisite Flags="Prerequisite,Discard">AffinitySophons</PathPrerequisite>


Right under the first.  Is this the correct method?

0Send private message
5 years ago
May 9, 2020, 5:18:19 AM

        <DiplomaticRelationStateEmpirePrerequisite Flags="Prerequisite,Discard" Responsible="EmpireWhichProvides">

            <PathPrerequisite Inverted="false" Flags="Prerequisite,Discard" >EmpireTypeMajor,AffinityGameplaySophons</PathPrerequisite>

        </DiplomaticRelationStateEmpirePrerequisite>

(add that into the empirewhichprovides section)

Updated 5 years ago.
0Send private message
0Send private message
?

Click here to login

Reply
Comment