Modifier
Last updated
Last updated
A modifier describes how to alter the value of an Attribute when its GameplayEffect is applied.
Modifiers can execute three distinct operations:
All the addition modifiers are applied to the base value before any multiplication.
The simplest modifier. A constant value that is not altered.
A modifier that scaled its value based on a AnimationCurve. The X axis, or how much to scale, is defined by the level of the GameplayEffect applying it. So a curve with point {1,1} and {10,20} will gradually scale the modifier between 1 and 20 depending on the value of ge.level.
A modifier that uses a simple .csv file to scale its value. Useful if you want designer to set exactly what value it'll output at what ge.level.
A modifier that uses an attribute from the ASC as its value (e.g. value 2 with baseAttribute Health, would mean 200% of currenct ASC's health). It also has an optional ge.level scaling AnimationCurve.
To add the modifier via Editor, scroll down the GE scriptable object and click the "ADD MODIFIER WITH TYPE" button. (Modifiers need to be instantiated with their type, otherwise they'll inherit the base class that does nothing (It always return 0))