How to create class instances in ue4 blueprints

Hi,

I am an experienced developer that recently picked up blueprints. I am creating a game where I have a class and I want to create instances of that class. These objects are logical parts and are not supposed to be spawned in the game.

for example, in python:

class Element():
    def __init__(self, id, name, combination):
        self.id = id
        self.name = name
        self.combination = combination
        self.value = combine(self)

I have this as a class and I would make a class object like this:

mud = Element(1,"Mud", [water, ground])

Is there a way to do this with blueprints? I tried creating an Actor and then using the “Construct object from class” but that doesn’t seem to work.

You can create children from a blueprint. Then inherit code from the parent on run or begin play or functions.

That seems rather ugly. That means that if I have 100 elements defined I will have 100 child blueprints and I will have to make them by hand