Shared electric use between objects

Hi I am trying to learn how blueprint coding works as I want to try to create some gamecomponents to slowly get into making my own minigame.

Now I have watched multiple tutorials and guides but I cant seem to find the right one for my current struggle/wish, could any1 help me out?

My wish (question);

  • I want to make a re-usable blueprint for a power source (generating xxx power)

  • followed by a way to connect an array of power connectors (splitters)

  • followed by energy cunsuming environment assets (lights, computers, …) which are each using xxx ammount of power

  • The struggle I have atm is that I made a source with an power int. which I can toggle on or off if it is <= 0 . But I dont know how to create and talk to an unkown array. As I want to make it so that I can easily add or remove objects while making and playing the game. And I just dont seem to understand how I can get the powersource its int value, substract the power used by the items blueprint, sending back the reducted value by time.

Think of it as I make 1 powersource generating 10 power per second. I attach 12 computers to the source (somehow?) while making the level. Each computer drains 1 power per second. So gues it has to be in the computer blueprint itself. And each computer can be toggled on or off by the player. But when all power is being drained I want to be able to do something like a total shutdown or something, but for that I need to have a loop of data between the powersource and all power users. Any idea?