Download

Stats modifiers

Hi! i’m working on the stat system for my game and i wanted to make something similar to what i did in unity.

a class (blueprint) of “Stat” that i can attach to any actor i want.

VARIABLES-
Id:
Name:
CurrentValue:
BaseValue:
Modifiers[Array]:

METHODS-
AddModifier:
RemoveModifier:
ReturnBaseValue:
ReturnValueAfterModifiers.

*Modifier is another class with:
VARIABLES-
ModifierNumericValue:
ModifierType: (multiplier, additive)

The problem i’m having is to translate this structure to unreal.

What i’m trying is a

“Stat” structure
“Stats” Blueprint (Stat Array) on the character.

But i cant add the array of stat to the stats Blueprint, any suggestion on how to implement this?.

Thanks in advance!.