+1 Movement to Units

SocialMechanic

Chieftain
Joined
May 11, 2019
Messages
97
I have a mod that changes many of the existing policies in the game. I added +1 movement to Recon units in the Survey policy but it isn't working and I'm not sure why.
Code:
    <PolicyModifiers>
        <Row PolicyType="POLICY_SURVEY" ModifierId="SM_SURVEY_ALTBONUS"/>
    </PolicyModifiers>
    <Modifiers>
        <Row ModifierId="SM_SURVEY_ALTBONUS" ModifierType="MODIFIER_PLAYER_UNIT_ADJUST_MOVEMENT" SubjectRequirementSetId="SM_RECON_UNIT_REQUIREMENTS"/>
    </Modifiers>
    <ModifierArguments>
        <Row ModifierId="SM_SURVEY_ALTBONUS" Name="Amount" Value="1" />
    </ModifierArguments>
    <RequirementSets>
        <Row RequirementSetId="SM_RECON_UNIT_REQUIREMENTS" RequirementSetType="REQUIREMENTSET_TEST_ANY"/>
    </RequirementSets>
    <RequirementSetRequirements>
        <Row RequirementSetId="SM_RECON_UNIT_REQUIREMENTS" RequirementId="SM_UNIT_IS_RECON1"/>
        <Row RequirementSetId="SM_RECON_UNIT_REQUIREMENTS" RequirementId="SM_UNIT_IS_RECON2"/>
        <Row RequirementSetId="SM_RECON_UNIT_REQUIREMENTS" RequirementId="SM_UNIT_IS_RECON3"/>
        <Row RequirementSetId="SM_RECON_UNIT_REQUIREMENTS" RequirementId="SM_UNIT_IS_RECON4"/>
    </RequirementSetRequirements>
    <Requirements>
        <Row RequirementId="SM_UNIT_IS_RECON1" RequirementType="REQUIREMENT_UNIT_TYPE_MATCHES"/>
        <Row RequirementId="SM_UNIT_IS_RECON2" RequirementType="REQUIREMENT_UNIT_TYPE_MATCHES"/>
        <Row RequirementId="SM_UNIT_IS_RECON3" RequirementType="REQUIREMENT_UNIT_TYPE_MATCHES"/>
        <Row RequirementId="SM_UNIT_IS_RECON4" RequirementType="REQUIREMENT_UNIT_TYPE_MATCHES"/>
    </Requirements>
    <RequirementArguments>
        <Row RequirementId="SM_UNIT_IS_RECON1" Name="UnitType" Value="UNIT_SCOUT" />
        <Row RequirementId="SM_UNIT_IS_RECON2" Name="UnitType" Value="UNIT_SKIRMISHER" />
        <Row RequirementId="SM_UNIT_IS_RECON3" Name="UnitType" Value="UNIT_RANGER" />
        <Row RequirementId="SM_UNIT_IS_RECON4" Name="UnitType" Value="UNIT_SPEC_OPS" />
    </RequirementArguments>
Any idea why its not working?
 
Doesn't really make sense to me[table=head]ModifierType | CollectionType | EffectType
MODIFIER_PLAYER_UNIT_ADJUST_MOVEMENT | COLLECTION_OWNER | EFFECT_ADJUST_UNIT_MOVEMENT[/table]
In this ModifierType I would expect the "Owner" of the modifier to be a unit. But you are not attaching the modifier to a unit, you are attaching the modifier to a player. So the ModifierType needs to be one that affects all of the player's units subject to the Requirements.


I would think you would want[table=head]ModifierType | CollectionType | EffectType
MODIFIER_PLAYER_UNITS_ADJUST_MOVEMENT | COLLECTION_PLAYER_UNITS | EFFECT_ADJUST_UNIT_MOVEMENT[/table]
 
Back
Top Bottom