# Instant Gameplay Effect with Backing Attribute set in same Effect leads to 'unexpected results'

**URL:** <https://forums.unrealengine.com/t/instant-gameplay-effect-with-backing-attribute-set-in-same-effect-leads-to-unexpected-results/1390424>\
**Category:** Feedback & Requests\
**Tags:** Gameplay-Effects, unreal-engine\
**Created:** [November 14, 2023, 7:09pm UTC](https://forums.unrealengine.com/t/instant-gameplay-effect-with-backing-attribute-set-in-same-effect-leads-to-unexpected-results/1390424 "2023-11-14T19:09:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![herb64](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@herb64](https://forums.unrealengine.com/u/herb64)\
**Post date:** [November 14, 2023, 7:09pm UTC](https://forums.unrealengine.com/t/instant-gameplay-effect-with-backing-attribute-set-in-same-effect-leads-to-unexpected-results/1390424/1 "2023-11-14T19:09:04Z")

</div>

With Gameplay Ability System, having an Attribute Based modifier with a Backing Attribute that is set in the same chain of modifiers with Instanced Gameplay Effects leads to _‘unexpected’_ results.  
Here’s a simple screenshot trying to explain what I mean:

 ![ge-modifer-chain-with-attribute-based-fails-in-instant-effect](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/7/6/d767c7f999f3561b2f9defcdd46f093aca5169b3.png)

The calculation in such case is _expected_ to return 6.4375, but with _instant_ GE, the Armor in this case is simply skipped and BlockChance is calculated _wrong_, at least in what one would _expect_ as a result from a logical point of view. Sure, setting _Infinite_ solves this, but…

Either do some better handing of Attribute Backed modifiers, or at least have the editor maybe throw some warning in case of having such dependencies in a modifier chain in an _Instant_ GE.

---

<div class="post-metadata">

**Author:** ![herb64](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@herb64](https://forums.unrealengine.com/u/herb64)\
**Post date:** [February 10, 2024, 11:56am UTC](https://forums.unrealengine.com/t/instant-gameplay-effect-with-backing-attribute-set-in-same-effect-leads-to-unexpected-results/1390424/2 "2024-02-10T11:56:02Z")

</div>

Quite some time with no response. But in the meantime, here’s a solution of how to use an Instant effect for this. Credits go to @mss10001 who did point this out at another place on Discord.

Lets have these effects

```
Resilience
    Armor
        BlockChance
        CriticalHitResistance

    ArmorPenetration
        CriticalHitDamage
        CriticalHitChance

```

The 4 modifiers Blockchance, CriticalHitresistance, CriticalHitDamage and CriticalHitChance are those depending on Armor respectively ArmorPenetration, which rely on Resilience - causing the trouble with these interdependencies.

**Solution:** Create a separate Instant GameplayEffect, e.g. _GE\_Dependencies\_Level1_.

Move these 4 depending Modifiers from the Original Effect into this new effect.

Add an _ **Additional Effects Gameplay Effect Component** _ into to the original GE, here referencing the Dependencies Effect, thus replacing the 4 modifiers.

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/9/b/89b6f76600d2a32cafa6ec47053d3297cea69d24.png)

All calculations are now done perfectly.

I’ll need to experiment more to test, if this can even make up a hierarchy.

Just a TIP: Moving modifiers is really easy, because of the nice Cut&Paste feature, so just copy complete Modifiers and paste into another Gameplay Effect. Just in case, because this is a huge timesaver and avoids errors.

---

<div class="post-metadata">

**Author:** ![VoiDTimo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VoiDTimo](https://forums.unrealengine.com/u/VoiDTimo)\
**Post date:** [October 30, 2024, 6:59pm UTC](https://forums.unrealengine.com/t/instant-gameplay-effect-with-backing-attribute-set-in-same-effect-leads-to-unexpected-results/1390424/3 "2024-10-30T18:59:12Z")

</div>

Just ran into this same issue although I’m not really picking up what you’re putting down.  
In my case I just want 1 set of attributes to depend on another…and I thought this was the way to do that. And it simply just does not work.
