What if you made, say, a nexus give off a power field like a pylon. Then pyllons would act the same, but they would also requier power like other structures. If the nexus goes down, pylons all power down, no?
Yeah, sorry. Just did that and I didn't realize Soul's had actually been what I was thinking of.
I'm checking them out to see if I can do anything, but I'm horrible with the actual editor...
EDIT: Also, yours seems to have the same problem as Souls. If you clump the zerglings up and destroy the pylon, their power will remain even through the main source is dead.
All I can think is that the power source needs to literally have its power expanded by the other pieces, like creep almost. Then, when the main source is destroyed, nothing is left to be expanded upon and everything shuts down.
Just move the lings out of the pylon radius and kill a ling. The zerglings are what is interesting, the pylon is unaltered an any way and just there to get the network going. If you have a chain of zerglings going into the distance and kill one in the chain the network not connected to the pylon disables fine.
That is why you would add a death response to the main power building that does the same thing as the zerglings when they die.
Currently the issue is how to not make it lag up the place with persistent effects if some fool builds a 10x10 solid block of power lines.
The pylon is a generic power source and most certainly not what we will be using. We will also use structures as the intermediates. I only used zerglings because they are near the bottom of the list and can move so you can experiment with junctions and density more easily than having to build them each time.
We want beams to find and go between each tower within range and the only reliable way to do that is to use a persistent effect. If there is alot of towers in a high density that is alot of persistent effects and beam actors.
Would it be possible to apply a behavior to structures that requier the power and make it so the suppliers only shoot the beam at those structures? Perhaps just not having a beam between suppliers themselves?