Hello everyone, I am trying to create an agenda for a new leader, this leader likes you when you declare joint wars, protectorate wars, defensive pact wars and liberation wars and in turn dislikes you if you did not do any of these.
This is what I have so far:
There are several issues with how things are:
Firstly: the debuff modifier is not removed even if you get the positive modifier, which is weird to me since it is just using inversion, but in Firaxis Live Tuner I get that both of these are met at the same time, why does this happen when they are supposed to be the opposite?
The second issue is that for some reason when I declare Surprise War, all of these Requirements which I added are going to Met, even though the WarType in RequirementArguments does not match any of them. This does not happen with Joint war which is present in default civ, but is working properly. As far as I can tell my requirements are exactly the same, except the WarType RequirementArgument, but for some reason it triggers for other war types.
Can anyone point out what might be wrong here? I feel like I made a miniscule mistake and I am stuck because of it.
This is what I have so far:
XML:
<?xml version="1.0" encoding="utf-8"?>
<GameData>
<Types>
<Row Type="TRAIT_AGENDA_BROTHERS_IN_ARMS" Kind="KIND_TRAIT"/>
</Types>
<Traits>
<Row TraitType="TRAIT_AGENDA_BROTHERS_IN_ARMS"/>
</Traits>
<ExclusiveAgendas>
<Row AgendaOne="AGENDA_BROTHERS_IN_ARMS" AgendaTwo="AGENDA_PARANOID"/>
</ExclusiveAgendas>
<AgendaTraits>
<Row AgendaType="AGENDA_BROTHERS_IN_ARMS" TraitType="TRAIT_AGENDA_BROTHERS_IN_ARMS"/>
</AgendaTraits>
<TraitModifiers>
<Row TraitType="TRAIT_AGENDA_BROTHERS_IN_ARMS" ModifierId="AGENDA_BROTHERS_IN_ARMS_LOYAL"/>
<Row TraitType="TRAIT_AGENDA_BROTHERS_IN_ARMS" ModifierId="AGENDA_BROTHERS_IN_ARMS_DISLOYAL"/>
</TraitModifiers>
<Modifiers>
<Row>
<ModifierId>AGENDA_BROTHERS_IN_ARMS_LOYAL</ModifierId>
<ModifierType>MODIFIER_PLAYER_DIPLOMACY_SIMPLE_MODIFIER</ModifierType>
<SubjectRequirementSetId>PLAYER_BROTHERS_IN_ARMS</SubjectRequirementSetId>
</Row>
<Row>
<ModifierId>AGENDA_BROTHERS_IN_ARMS_DISLOYAL</ModifierId>
<ModifierType>MODIFIER_PLAYER_DIPLOMACY_SIMPLE_MODIFIER</ModifierType>
<SubjectRequirementSetId>PLAYER_NOT_BROTHERS_IN_ARMS</SubjectRequirementSetId>
</Row>
</Modifiers>
<ModifierArguments>
<Row>
<ModifierId>AGENDA_BROTHERS_IN_ARMS_LOYAL</ModifierId>
<Name>InitialValue</Name>
<Value>8</Value>
</Row>
<Row>
<ModifierId>AGENDA_BROTHERS_IN_ARMS_LOYAL</ModifierId>
<Name>ReductionTurns</Name>
<Value>20</Value>
</Row>
<Row>
<ModifierId>AGENDA_BROTHERS_IN_ARMS_LOYAL</ModifierId>
<Name>ReductionValue</Name>
<Value>0</Value>
</Row>
<Row>
<ModifierId>AGENDA_BROTHERS_IN_ARMS_LOYAL</ModifierId>
<Name>StatementKey</Name>
<Value>LOC_DIPLO_KUDO_LEADER_SOMELEADER_REASON_ANY</Value>
</Row>
<Row>
<ModifierId>AGENDA_BROTHERS_IN_ARMS_LOYAL</ModifierId>
<Name>SimpleModifierDescription</Name>
<Value>LOC_DIPLO_MODIFIER_BROTHERS_IN_ARMS_LOYAL</Value>
</Row>
<Row>
<ModifierId>AGENDA_BROTHERS_IN_ARMS_DISLOYAL</ModifierId>
<Name>InitialValue</Name>
<Value>-5</Value>
</Row>
<Row>
<ModifierId>AGENDA_BROTHERS_IN_ARMS_DISLOYAL</ModifierId>
<Name>StatementKey</Name>
<Value>LOC_DIPLO_WARNING_LEADER_SOMELEADER_REASON_ANY</Value>
</Row>
<Row>
<ModifierId>AGENDA_BROTHERS_IN_ARMS_DISLOYAL</ModifierId>
<Name>SimpleModifierDescription</Name>
<Value>LOC_DIPLO_MODIFIER_BROTHERS_IN_ARMS_DISLOYAL</Value>
</Row>
</ModifierArguments>
<ModifierStrings>
<Row ModifierId="AGENDA_BROTHERS_IN_ARMS_LOYAL" Context="Sample" Text="LOC_TOOLTIP_SAMPLE_DIPLOMACY_ALL"/>
<Row ModifierId="AGENDA_BROTHERS_IN_ARMS_DISLOYAL" Context="Sample" Text="LOC_TOOLTIP_SAMPLE_DIPLOMACY_ALL"/>
</ModifierStrings>
<RequirementSets>
<Row>
<RequirementSetId>PLAYER_BROTHERS_IN_ARMS</RequirementSetId>
<RequirementSetType>REQUIREMENTSET_TEST_ALL</RequirementSetType>
</Row>
<Row>
<RequirementSetId>PLAYER_DECLARED_ALLIED_WAR</RequirementSetId>
<RequirementSetType>REQUIREMENTSET_TEST_ANY</RequirementSetType>
</Row>
<Row>
<RequirementSetId>PLAYER_NOT_BROTHERS_IN_ARMS</RequirementSetId>
<RequirementSetType>REQUIREMENTSET_TEST_ALL</RequirementSetType>
</Row>
</RequirementSets>
<RequirementSetRequirements>
<Row>
<RequirementSetId>PLAYER_BROTHERS_IN_ARMS</RequirementSetId>
<RequirementId>REQUIRES_MAJOR_CIV_OPPONENT</RequirementId>
</Row>
<Row>
<RequirementSetId>PLAYER_BROTHERS_IN_ARMS</RequirementSetId>
<RequirementId>REQUIRES_DECLARED_ALLIED_WAR</RequirementId>
</Row>
<Row>
<RequirementSetId>PLAYER_BROTHERS_IN_ARMS</RequirementSetId>
<RequirementId>REQUIRES_MET_10_TURNS_AGO</RequirementId>
</Row>
<Row>
<RequirementSetId>PLAYER_BROTHERS_IN_ARMS</RequirementSetId>
<RequirementId>REQUIRES_PLAYER_AT_PEACE</RequirementId>
</Row>
<Row>
<RequirementSetId>PLAYER_DECLARED_ALLIED_WAR</RequirementSetId>
<RequirementId>REQUIRES_PLAYER_DECLARED_JOINT_WAR</RequirementId>
</Row>
<Row>
<RequirementSetId>PLAYER_DECLARED_ALLIED_WAR</RequirementSetId>
<RequirementId>REQUIRES_PLAYER_DECLARED_LIBERATION_WAR</RequirementId>
</Row>
<Row>
<RequirementSetId>PLAYER_DECLARED_ALLIED_WAR</RequirementSetId>
<RequirementId>REQUIRES_PLAYER_DECLARED_PROTECTORATE_WAR</RequirementId>
</Row>
<Row>
<RequirementSetId>PLAYER_DECLARED_ALLIED_WAR</RequirementSetId>
<RequirementId>REQUIRES_PLAYER_DECLARED_DEFENSIVE_PACT</RequirementId>
</Row>
<Row>
<RequirementSetId>PLAYER_NOT_BROTHERS_IN_ARMS</RequirementSetId>
<RequirementId>REQUIRES_MAJOR_CIV_OPPONENT</RequirementId>
</Row>
<Row>
<RequirementSetId>PLAYER_NOT_BROTHERS_IN_ARMS</RequirementSetId>
<RequirementId>REQUIRES_NOT_BROTHERS_IN_ARMS</RequirementId>
</Row>
<Row>
<RequirementSetId>PLAYER_NOT_BROTHERS_IN_ARMS</RequirementSetId>
<RequirementId>REQUIRES_MET_10_TURNS_AGO</RequirementId>
</Row>
</RequirementSetRequirements>
<Requirements>
<Row>
<RequirementId>REQUIRES_DECLARED_ALLIED_WAR</RequirementId>
<RequirementType>REQUIREMENT_REQUIREMENTSET_IS_MET</RequirementType>
</Row>
<Row>
<RequirementId>REQUIRES_PLAYER_DECLARED_LIBERATION_WAR</RequirementId>
<RequirementType>REQUIREMENT_PLAYER_DECLARED_WAR</RequirementType>
</Row>
<Row>
<RequirementId>REQUIRES_PLAYER_DECLARED_PROTECTORATE_WAR</RequirementId>
<RequirementType>REQUIREMENT_PLAYER_DECLARED_WAR</RequirementType>
</Row>
<Row>
<RequirementId>REQUIRES_PLAYER_DECLARED_DEFENSIVE_PACT</RequirementId>
<RequirementType>REQUIREMENT_PLAYER_DECLARED_WAR</RequirementType>
</Row>
<Row>
<RequirementId>REQUIRES_NOT_BROTHERS_IN_ARMS</RequirementId>
<RequirementType>REQUIREMENT_REQUIREMENTSET_IS_MET</RequirementType>
<Inverse>true</Inverse>
</Row>
</Requirements>
<RequirementArguments>
<Row>
<RequirementId>REQUIRES_DECLARED_ALLIED_WAR</RequirementId>
<Name>RequirementSetId</Name>
<Value>PLAYER_DECLARED_ALLIED_WAR</Value>
</Row>
<Row>
<RequirementId>REQUIRES_PLAYER_DECLARED_LIBERATION_WAR</RequirementId>
<Name>WarType</Name>
<Value>LIBERATION_WAR</Value>
</Row>
<Row>
<RequirementId>REQUIRES_PLAYER_DECLARED_PROTECTORATE_WAR</RequirementId>
<Name>WarType</Name>
<Value>PROTECTORATE_WAR</Value>
</Row>
<Row>
<RequirementId>REQUIRES_PLAYER_DECLARED_DEFENSIVE_PACT</RequirementId>
<Name>WarType</Name>
<Value>DEFENSIVE_PACT</Value>
</Row>
<Row>
<RequirementId>REQUIRES_NOT_BROTHERS_IN_ARMS</RequirementId>
<Name>RequirementSetId</Name>
<Value>PLAYER_BROTHERS_IN_ARMS</Value>
</Row>
</RequirementArguments>
</GameData>
Firstly: the debuff modifier is not removed even if you get the positive modifier, which is weird to me since it is just using inversion, but in Firaxis Live Tuner I get that both of these are met at the same time, why does this happen when they are supposed to be the opposite?
The second issue is that for some reason when I declare Surprise War, all of these Requirements which I added are going to Met, even though the WarType in RequirementArguments does not match any of them. This does not happen with Joint war which is present in default civ, but is working properly. As far as I can tell my requirements are exactly the same, except the WarType RequirementArgument, but for some reason it triggers for other war types.
Can anyone point out what might be wrong here? I feel like I made a miniscule mistake and I am stuck because of it.