Jump to content

StatusEffect activates when Flanked


Recommended Posts

Is it possible to make a Status Effect that activates when the character it's affecting has the Flanked affliction, and deactivates when they're no longer Flanked? I know it's totally possible to do this using Abilities (i.e. Tactical Dilemma), but can't find the method for this to work with only the Status Effect code.

  • Hmmm 1
Link to comment
Share on other sites

Only thing I can think of is adding the Flanked keyword to the AttackTargetFilter, but this would only work if the StatusEffectType is something like Deflection or EnemyDamageMultiplier where the effect owner would be the attack target.

{
    "$type": "Game.GameData.StatusEffectComponent, Assembly-CSharp",
    "AttackTargetFilter": {
        "KeywordsIDs": [
            "8ca098ca-731e-481d-b958-a337064afd6c"
        ],
        "KeywordLogic": "Or",
        "Race": "None",
        "IsKith": "false",
        "HealthPercentage": 0,
        "HealthOperator": "EqualTo",
        "Distance": 0,
        "DistanceOperator": "EqualTo",
        "HasDOT": "false",
        "IsMarked": "false",
        "TargetHostility": "Default"
    }
}

 

  • Hmmm 1
Link to comment
Share on other sites

Wait, that works? I didn't realize that AttackTarget could include the status owner as a target, but rather that it would only function as a filter for the status owner's attacks.

In any case, what I'm trying to do is to create a status that causes its owner to have -5 All Defenses when Flanked. Will give this implementation a shot when I get the time, thanks!

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...