Having an enum modify variable types inside a struct (is it possible)

Hello, I was wondering if it is possible to modify which values are available inside a structure, depending on the current enum value.
An example in the image (from the old wc3 editor), where under the Data - Effect enum, the left image has “hit point bonus” selected that gives off two int variables, but the right one that has “defense type changed” gives an enum of “defense type” instead of the two int variables

My guess is that a similar effect could be achieved with using BP actors and having children act as the different enums which contain the variables necessary but I am not sure if that is a good solution in the first place.

I am sorry if such a question exist somewhere, I haven’t been able to find
Thank you for your time

1 Like