I checked up on the documentation for family properties, but I still have some questions.
I am trying to make a simple puzzle where turning a light on adds 1 to a counter, and turning a light off removes the addition from the counter
I have a master event that sets the total lights value to be each light's value manually (Light1.value+Lightx.Value-etc.)
Does anyone have better ideas for a system to check through each light and do this without recoding it every time? I can imagine making a puzzle with 10 lights will start making this process annoying
Is there a check every instance in this family type of thing? I've had problems earlier with incorrect addition when I've tried other methods.
I have it working right now but I just want to be more efficient about it.
Alternatively if this would work better with another system I'd love to hear about it.
Code to start process
Code to set values
Code to add values together to global variable