# Dynamically Set Buff Values

**URL:** <https://forums.unrealengine.com/t/dynamically-set-buff-values/116587>\
**Category:** ARK: Survival Evolved\
**Tags:** unreal-engine, Ark:-Survival-Evolved, Modding\
**Created:** [September 21, 2018, 8:04pm UTC](https://forums.unrealengine.com/t/dynamically-set-buff-values/116587 "2018-09-21T20:04:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Buckethead\_Slunk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Buckethead\_Slunk](https://forums.unrealengine.com/u/Buckethead_Slunk)\
**Post date:** [September 21, 2018, 8:04pm UTC](https://forums.unrealengine.com/t/dynamically-set-buff-values/116587/1 "2018-09-21T20:04:19Z")

</div>

I have a custom buff based off the Focal Chilli Buff

However, I cannot simply set the “Character Status Value Modifiers” in the defaults - I need to set one of them (Damage Multiplier Amount To Add) dynamically via a calculation, which looks at the specific dino involved etc

Ive tried the following approach:

- call a function from the Event Begin Play
- the function loops through Character Status Value Modifiers array, and calls SetMembersInDamagePrimalCharacterStatusValueModifier and sets the node in question based from the formula
- however, testing shows that this value remains as per defaults, it is not being set by my function

how would I go about setting these values dynamically?

---

<div class="post-metadata">

**Author:** ![dreyn74](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dreyn74](https://forums.unrealengine.com/u/dreyn74)\
**Post date:** [September 22, 2018, 3:33pm UTC](https://forums.unrealengine.com/t/dynamically-set-buff-values/116587/2 "2018-09-22T15:33:17Z")

</div>

Make sure to check “BP Adjust Status Value Modification” in the defaults tab. If that doesn’t work. Try making a custom event which is set to “run on server”.

---

<div class="post-metadata">

**Author:** ![Buckethead\_Slunk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Buckethead\_Slunk](https://forums.unrealengine.com/u/Buckethead_Slunk)\
**Post date:** [September 23, 2018, 10:45am UTC](https://forums.unrealengine.com/t/dynamically-set-buff-values/116587/3 "2018-09-23T10:45:39Z")

</div>

Thank you @dreyn74

I decided to ignore the built in buff effects that use the defaults, and instead used a custom logic from the “Event Begin Play”. It seems to work correctly, pending some proper testing.

---

<div class="post-metadata">

**Author:** ![SkyeEden](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/skyeeden/32/1116094_2.png) [@SkyeEden](https://forums.unrealengine.com/u/SkyeEden)\
**Post date:** [March 9, 2022, 9:34pm UTC](https://forums.unrealengine.com/t/dynamically-set-buff-values/116587/4 "2022-03-09T21:34:31Z")

</div>


