The one that doesn't work fine is the seventh option- the plan is to leave the Six "on" colors on and just activate the Cyan one. However every time it activates, the Cyan is the ONLY one active- the others deactivate. I'm going in circles. Anyone got an idea what I did wrong?
Spoiler
term.clear()
term.setCursorPos(1,1)
while true do
c = colors.combine(colors.green, colors.gray, colors.red, colors.white, colors.black, colors.blue)
rs.setBundledOutput("right",c)
term.clear()
term.setCursorPos(1,1)
print("**************************************************")
print("***** Vault-Tek Radiological Research Lab *****")
print("**************************************************")
i = 4
repeat
term.setCursorPos(1,i)
print("***** *****")
i = 1 + i
until i == 16
print("**************************************************")
print("***** *****")
print("**************************************************")
term.setCursorPos(7,6)
print("[1] Specimen 001 'Creeper'")
term.setCursorPos(7,7)
print("[2] Specimen 002 'Skeleton'")
term.setCursorPos(7,8)
print("[3] Specimen 003 'Zombie'")
term.setCursorPos(7,9)
print("[4] Specimen 004 'Slime'")
term.setCursorPos(7,10)
print("[5] Specimen 005 'Cave Spider'")
term.setCursorPos(7,11)
print("[6] Specimen 006 'Spider'")
term.setCursorPos(7,13)
print("[7] EMERGENCY SPECIMEN PURGE SYSTEM")
term.setCursorPos(6,17)
print(" Enter Selection: ")
term.setCursorPos(24,17)
input = read()
if input == "7" then
rs.setOutput("top", true)
c = colors.combine(colors.cyan)
rs.setBundledOutput("right",c)
sleep (15)
rs.setOutput("top", false)
c = colors.subtract(colors.cyan)
rs.setBundledOutput("right",c)
end
if input == "1" then
c = colors.subtract(colors.green)
rs.setBundledOutput("right",c)
sleep (12)
end
if input == "2" then
c = colors.subtract(colors.red)
rs.setBundledOutput("right",c)
sleep (10)
end
if input == "3" then
c = colors.subtract(colors.gray)
rs.setBundledOutput("right",c)
sleep (10)
end
if input == "4" then
c = colors.subtract(colors.white)
rs.setBundledOutput("right",c)
sleep (10)
end
if input == "5" then
c = colors.subtract(colors.blue)
rs.setBundledOutput("right",c)
sleep (10)
end
if input == "6" then
c = colors.subtract(colors.black)
rs.setBundledOutput("right",c)
sleep (10)
end
end