#Add for loops to breadboard

4 messages · Page 1 of 1 (latest)

hard jetty
#

Let's say you're making an aircraft carrier with... 20 drones. Well, you want to dock those drones out of combat and whenever they need repair, so you need 20 GBGs reading the drones' health, then 20 equations calculating if the drones are above or below the heath threshold to dock and repair, then you need 20 GBSs to tell the docking stations what to do. And that is only basic functionality- if you want to do anything fancy and have other docking/undocking conditions, you need to multiply that by 20, and if you make any changes, they need to be done 20 times.

Whereas, if you were to do this in Lua, you would simply need a for loop reading the IDs of every docking station and then use a few lines of code to create your docking criteria inside that for loop.

I think this could be done in breadboard by doing a system similar to missile breadboards, where there is a breadboard component that, when opened, reveals a new, miniature breadboard that repeats its code like a for loop would

ashen flame
#

you should use Lua, by the way

hard jetty
#

oh i didn't know that was there