Posted 23 December 2012 - 08:01 AM
I'm not the best at LUA but I thought someone might use this, its a lot longer than it could be, I am aware i could have made a function that did the long parts for me, but this one works.
It lights up each colour of lamp, then turns it off again, with a half second delay between each one
Again, probably more compact ways to set up a computer to do this, but this is how i did it;
while true do
print ("Activated...")
rs.setBundledOutput("bottom",1)
sleep(.5)
rs.setBundledOutput("bottom",0)
sleep(.5)
rs.setBundledOutput("bottom",2)
sleep(.5)
rs.setBundledOutput("bottom",4)
sleep(.5)
rs.setBundledOutput("bottom",0)
sleep(.5)
rs.setBundledOutput("bottom",8)
sleep(.5)
rs.setBundledOutput("bottom",0)
sleep(.5)
rs.setBundledOutput("bottom",16)
sleep(.5)
rs.setBundledOutput("bottom",0)
sleep(.5)
rs.setBundledOutput("bottom",32)
sleep(.5)
rs.setBundledOutput("bottom",0)
sleep(.5)
rs.setBundledOutput("bottom",64)
sleep(.5)
rs.setBundledOutput("bottom",0)
sleep(.5)
rs.setBundledOutput("bottom",128)
sleep(.5)
rs.setBundledOutput("bottom",0)
sleep(.5)
rs.setBundledOutput("bottom",256)
sleep(.5)
rs.setBundledOutput("bottom",0)
sleep(.5)
rs.setBundledOutput("bottom",512)
sleep(.5)
rs.setBundledOutput("bottom",0)
sleep(.5)
rs.setBundledOutput("bottom",1024)
sleep(.5)
rs.setBundledOutput("bottom",0)
sleep(.5)
rs.setBundledOutput("bottom",2048)
sleep(.5)
rs.setBundledOutput("bottom",0)
sleep(.5)
rs.setBundledOutput("bottom",4096)
sleep(.5)
rs.setBundledOutput("bottom",0)
sleep(.5)
rs.setBundledOutput("bottom",8192)
sleep(.5)
rs.setBundledOutput("bottom",0)
sleep(.5)
rs.setBundledOutput("bottom",16384)
sleep(.5)
rs.setBundledOutput("bottom",0)
sleep(.5)
rs.setBundledOutput("bottom",32768)
sleep(.5)
rs.setBundledOutput("bottom",0)
sleep(1)
rs.setBundledOutput("bottom",65535)
sleep(.5)
rs.setBundledOutput("bottom",0)
end
It lights up each colour of lamp, then turns it off again, with a half second delay between each one
Again, probably more compact ways to set up a computer to do this, but this is how i did it;