This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
thebeatles8371's profile picture

Code not working

Started by thebeatles8371, 11 February 2013 - 09:20 AM
thebeatles8371 #1
Posted 11 February 2013 - 10:20 AM
So I'm building a machine for my friend and have come across a few issues, either it says "end" is needed, "end" is not needed or immediately executes the "else".

Spoiler

term.clear()
term.setCursorPos(1,1)
print("Enter Aspect:")
input = read
if input == "Aer" then
	for a=1, 9 do
		rs.setBundledOutput("bottom",colors.white)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for b=1, 46 do
		rs.setBundledOutput("bottom",colors.black)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for c=1, 1 do
		rs.setBundledOutput("bottom",colors.grey)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for d=1, 9 do
		rs.setBundledOutput("bottom",colors.blue)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
os.reboot()
end
if input == "Alenis" then
	for a=1, 9 do
		rs.setBundledOutput("bottom",colors.white)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for b=1, 46 do
		rs.setBundledOutput("bottom",colors.black)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for c=1, 2 do
		rs.setBundledOutput("bottom",colors.grey)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for d=1, 9 do
		rs.setBundledOutput("bottom",colors.blue)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
os.reboot()
end
if input == "Animus" then
	for a=1, 9 do
		rs.setBundledOutput("bottom",colors.white)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for b=1, 46 do
		rs.setBundledOutput("bottom",colors.black)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for c=1, 3 do
		rs.setBundledOutput("bottom",colors.grey)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for d=1, 9 do
		rs.setBundledOutput("bottom",colors.blue)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
os.reboot()
end
if input == "Aqua" then
	for a=1, 9 do
		rs.setBundledOutput("bottom",colors.white)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for b=1, 46 do
		rs.setBundledOutput("bottom",colors.black)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for c=1, 4 do
		rs.setBundledOutput("bottom",colors.grey)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for d=1, 9 do
		rs.setBundledOutput("bottom",colors.blue)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
os.reboot()
end
if input == "Aura" then
	for a=1, 9 do
		rs.setBundledOutput("bottom",colors.white)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for b=1, 46 do
		rs.setBundledOutput("bottom",colors.black)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for c=1, 5 do
		rs.setBundledOutput("bottom",colors.grey)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for d=1, 9 do
		rs.setBundledOutput("bottom",colors.blue)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
os.reboot()
end
if input == "Bestia" then
	for a=1, 9 do
		rs.setBundledOutput("bottom",colors.white)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for b=1, 46 do
		rs.setBundledOutput("bottom",colors.black)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for c=1, 5 do
		rs.setBundledOutput("bottom",colors.grey)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for d=1, 9 do
		rs.setBundledOutput("bottom",colors.blue)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
os.reboot()
end
if input == "Bestiola" then
	for a=1, 9 do
		rs.setBundledOutput("bottom",colors.white)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for b=1, 46 do
		rs.setBundledOutput("bottom",colors.black)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for c=1, 6 do
		rs.setBundledOutput("bottom",colors.grey)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for d=1, 9 do
		rs.setBundledOutput("bottom",colors.blue)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
os.reboot()
end
if input == "Carus" then
	for a=1, 9 do
		rs.setBundledOutput("bottom",colors.white)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for b=1, 46 do
		rs.setBundledOutput("bottom",colors.black)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for c=1, 7 do
		rs.setBundledOutput("bottom",colors.grey)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for d=1, 9 do
		rs.setBundledOutput("bottom",colors.blue)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
os.reboot()
end
if input == "Cognito" then
	for a=1, 9 do
		rs.setBundledOutput("bottom",colors.white)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for b=1, 46 do
		rs.setBundledOutput("bottom",colors.black)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for c=1, 8 do
		rs.setBundledOutput("bottom",colors.grey)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for d=1, 9 do
		rs.setBundledOutput("bottom",colors.blue)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
os.reboot()
end
if input == "Corpus" then
	for a=1, 9 do
		rs.setBundledOutput("bottom",colors.white)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for b=1, 46 do
		rs.setBundledOutput("bottom",colors.black)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for c=1, 9 do
		rs.setBundledOutput("bottom",colors.grey)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for d=1, 9 do
		rs.setBundledOutput("bottom",colors.blue)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
os.reboot()
end
if input == "Fabrico" then
	for a=1, 9 do
		rs.setBundledOutput("bottom",colors.white)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for b=1, 46 do
		rs.setBundledOutput("bottom",colors.black)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for c=1, 10 do
		rs.setBundledOutput("bottom",colors.grey)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for d=1, 9 do
		rs.setBundledOutput("bottom",colors.blue)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
os.reboot()
end
if input == "Flos" then
	for a=1, 9 do
		rs.setBundledOutput("bottom",colors.white)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for b=1, 46 do
		rs.setBundledOutput("bottom",colors.black)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for c=1, 11 do
		rs.setBundledOutput("bottom",colors.grey)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for d=1, 9 do
		rs.setBundledOutput("bottom",colors.blue)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
os.reboot()
end
if input == "Fractus" then
	for a=1, 9 do
		rs.setBundledOutput("bottom",colors.white)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for b=1, 46 do
		rs.setBundledOutput("bottom",colors.black)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for c=1, 12 do
		rs.setBundledOutput("bottom",colors.grey)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for d=1, 9 do
		rs.setBundledOutput("bottom",colors.blue)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
os.reboot()
end
if input == "Fungus" then
	for a=1, 9 do
		rs.setBundledOutput("bottom",colors.white)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for b=1, 46 do
		rs.setBundledOutput("bottom",colors.black)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for c=1, 13 do
		rs.setBundledOutput("bottom",colors.grey)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for d=1, 9 do
		rs.setBundledOutput("bottom",colors.blue)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
os.reboot()
end
if input == "Gelum" then
	for a=1, 9 do
		rs.setBundledOutput("bottom",colors.white)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for b=1, 46 do
		rs.setBundledOutput("bottom",colors.black)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for c=1, 14 do
		rs.setBundledOutput("bottom",colors.grey)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for d=1, 9 do
		rs.setBundledOutput("bottom",colors.blue)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
os.reboot()
end
if input == "Herba" then
	for a=1, 9 do
		rs.setBundledOutput("bottom",colors.white)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for b=1, 46 do
		rs.setBundledOutput("bottom",colors.black)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for c=1, 15 do
		rs.setBundledOutput("bottom",colors.grey)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for d=1, 9 do
		rs.setBundledOutput("bottom",colors.blue)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
os.reboot()
end
if input == "Ignis" then
	for a=1, 9 do
		rs.setBundledOutput("bottom",colors.white)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for b=1, 46 do
		rs.setBundledOutput("bottom",colors.black)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for c=1, 16 do
		rs.setBundledOutput("bottom",colors.grey)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for d=1, 9 do
		rs.setBundledOutput("bottom",colors.blue)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
os.reboot()
end
if input == "Imperito" then
	for a=1, 9 do
		rs.setBundledOutput("bottom",colors.white)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for b=1, 46 do
		rs.setBundledOutput("bottom",colors.black)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for c=1, 17 do
		rs.setBundledOutput("bottom",colors.grey)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for d=1, 9 do
		rs.setBundledOutput("bottom",colors.blue)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
os.reboot()
end
if input == "Instrumentum" then
	for a=1, 9 do
		rs.setBundledOutput("bottom",colors.white)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for b=1, 46 do
		rs.setBundledOutput("bottom",colors.black)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for c=1, 18 do
		rs.setBundledOutput("bottom",colors.grey)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for d=1, 9 do
		rs.setBundledOutput("bottom",colors.blue)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
os.reboot()
end
if input == "Lignum" then
	for a=1, 9 do
		rs.setBundledOutput("bottom",colors.white)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for b=1, 46 do
		rs.setBundledOutput("bottom",colors.black)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for c=1, 19 do
		rs.setBundledOutput("bottom",colors.grey)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for d=1, 9 do
		rs.setBundledOutput("bottom",colors.blue)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
os.reboot()
end
if input == "Lux" then
	for a=1, 9 do
		rs.setBundledOutput("bottom",colors.white)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for b=1, 46 do
		rs.setBundledOutput("bottom",colors.black)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for c=1, 20 do
		rs.setBundledOutput("bottom",colors.grey)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for d=1, 9 do
		rs.setBundledOutput("bottom",colors.blue)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
os.reboot()
end
if input == "Machina" then
	for a=1, 9 do
		rs.setBundledOutput("bottom",colors.white)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for b=1, 46 do
		rs.setBundledOutput("bottom",colors.black)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for c=1, 21 do
		rs.setBundledOutput("bottom",colors.grey)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for d=1, 9 do
		rs.setBundledOutput("bottom",colors.blue)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
os.reboot()
end
if input == "Malum" then
	for a=1, 9 do
		rs.setBundledOutput("bottom",colors.white)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for b=1, 46 do
		rs.setBundledOutput("bottom",colors.black)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for c=1, 22 do
		rs.setBundledOutput("bottom",colors.grey)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for d=1, 9 do
		rs.setBundledOutput("bottom",colors.blue)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
os.reboot()
end
if input == "Messis" then
	for a=1, 9 do
		rs.setBundledOutput("bottom",colors.white)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for b=1, 46 do
		rs.setBundledOutput("bottom",colors.black)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for c=1, 23 do
		rs.setBundledOutput("bottom",colors.grey)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for d=1, 9 do
		rs.setBundledOutput("bottom",colors.blue)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
os.reboot()
end
if input == "Metallum" then
	for a=1, 9 do
		rs.setBundledOutput("bottom",colors.white)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for b=1, 46 do
		rs.setBundledOutput("bottom",colors.black)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for c=1, 24 do
		rs.setBundledOutput("bottom",colors.grey)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for d=1, 9 do
		rs.setBundledOutput("bottom",colors.blue)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
os.reboot()
end
if input == "Mortuus" then
	for a=1, 9 do
		rs.setBundledOutput("bottom",colors.white)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for b=1, 46 do
		rs.setBundledOutput("bottom",colors.black)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for c=1, 25 do
		rs.setBundledOutput("bottom",colors.grey)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for d=1, 9 do
		rs.setBundledOutput("bottom",colors.blue)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
os.reboot()
end
if input == "Motus" then
	for a=1, 9 do
		rs.setBundledOutput("bottom",colors.white)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for b=1, 46 do
		rs.setBundledOutput("bottom",colors.black)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for c=1, 26 do
		rs.setBundledOutput("bottom",colors.grey)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for d=1, 9 do
		rs.setBundledOutput("bottom",colors.blue)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
os.reboot()
end
if input == "Mutatio" then
	for a=1, 9 do
		rs.setBundledOutput("bottom",colors.white)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for b=1, 46 do
		rs.setBundledOutput("bottom",colors.black)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for c=1, 27 do
		rs.setBundledOutput("bottom",colors.grey)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for d=1, 9 do
		rs.setBundledOutput("bottom",colors.blue)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
os.reboot()
end
if input == "Pannus" then
	for a=1, 9 do
		rs.setBundledOutput("bottom",colors.white)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for b=1, 46 do
		rs.setBundledOutput("bottom",colors.black)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for c=1, 28 do
		rs.setBundledOutput("bottom",colors.grey)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for d=1, 9 do
		rs.setBundledOutput("bottom",colors.blue)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
os.reboot()
end
if input == "Permutatio" then
	for a=1, 9 do
		rs.setBundledOutput("bottom",colors.white)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for b=1, 46 do
		rs.setBundledOutput("bottom",colors.black)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for c=1, 29 do
		rs.setBundledOutput("bottom",colors.grey)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for d=1, 9 do
		rs.setBundledOutput("bottom",colors.blue)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
os.reboot()
end
if input == "Potentia" then
	for a=1, 9 do
		rs.setBundledOutput("bottom",colors.white)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for b=1, 46 do
		rs.setBundledOutput("bottom",colors.black)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for c=1, 30 do
		rs.setBundledOutput("bottom",colors.grey)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for d=1, 9 do
		rs.setBundledOutput("bottom",colors.blue)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
os.reboot()
end
if input == "Praecantio" then
	for a=1, 9 do
		rs.setBundledOutput("bottom",colors.white)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for b=1, 46 do
		rs.setBundledOutput("bottom",colors.black)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for c=1, 31 do
		rs.setBundledOutput("bottom",colors.grey)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for d=1, 9 do
		rs.setBundledOutput("bottom",colors.blue)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
os.reboot()
end
if input == "Purus" then
	for a=1, 9 do
		rs.setBundledOutput("bottom",colors.white)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for b=1, 46 do
		rs.setBundledOutput("bottom",colors.black)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for c=1, 32 do
		rs.setBundledOutput("bottom",colors.grey)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for d=1, 9 do
		rs.setBundledOutput("bottom",colors.blue)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
os.reboot()
end
if input == "Sano" then
	for a=1, 9 do
		rs.setBundledOutput("bottom",colors.white)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for b=1, 46 do
		rs.setBundledOutput("bottom",colors.black)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for c=1, 33 do
		rs.setBundledOutput("bottom",colors.grey)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for d=1, 9 do
		rs.setBundledOutput("bottom",colors.blue)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
os.reboot()
end
if input == "Saxum" then
	for a=1, 9 do
		rs.setBundledOutput("bottom",colors.white)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for b=1, 46 do
		rs.setBundledOutput("bottom",colors.black)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for c=1, 34 do
		rs.setBundledOutput("bottom",colors.grey)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for d=1, 9 do
		rs.setBundledOutput("bottom",colors.blue)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
os.reboot()
end
if input == "Solum" then
	for a=1, 9 do
		rs.setBundledOutput("bottom",colors.white)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for b=1, 46 do
		rs.setBundledOutput("bottom",colors.black)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for c=1, 35 do
		rs.setBundledOutput("bottom",colors.grey)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for d=1, 9 do
		rs.setBundledOutput("bottom",colors.blue)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
os.reboot()
end
if input == "Sonus" then
	for a=1, 9 do
		rs.setBundledOutput("bottom",colors.white)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for b=1, 46 do
		rs.setBundledOutput("bottom",colors.black)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for c=1, 36 do
		rs.setBundledOutput("bottom",colors.grey)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for d=1, 9 do
		rs.setBundledOutput("bottom",colors.blue)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
os.reboot()
end
if input == "Telum" then
	for a=1, 9 do
		rs.setBundledOutput("bottom",colors.white)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for b=1, 46 do
		rs.setBundledOutput("bottom",colors.black)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for c=1, 37 do
		rs.setBundledOutput("bottom",colors.grey)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for d=1, 9 do
		rs.setBundledOutput("bottom",colors.blue)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
os.reboot()
end
if input == "Tenebris" then
	for a=1, 9 do
		rs.setBundledOutput("bottom",colors.white)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for b=1, 46 do
		rs.setBundledOutput("bottom",colors.black)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for c=1, 38 do
		rs.setBundledOutput("bottom",colors.grey)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for d=1, 9 do
		rs.setBundledOutput("bottom",colors.blue)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
os.reboot()
end
if input == "Tutamen" then
	for a=1, 9 do
		rs.setBundledOutput("bottom",colors.white)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for b=1, 46 do
		rs.setBundledOutput("bottom",colors.black)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for c=1, 39 do
		rs.setBundledOutput("bottom",colors.grey)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for d=1, 9 do
		rs.setBundledOutput("bottom",colors.blue)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
os.reboot()
end
if input == "Vacuos" then
	for a=1, 9 do
		rs.setBundledOutput("bottom",colors.white)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for b=1, 46 do
		rs.setBundledOutput("bottom",colors.black)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for c=1, 40 do
		rs.setBundledOutput("bottom",colors.grey)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for d=1, 9 do
		rs.setBundledOutput("bottom",colors.blue)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
os.reboot()
end
if input == "Venenum" then
	for a=1, 9 do
		rs.setBundledOutput("bottom",colors.white)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for b=1, 46 do
		rs.setBundledOutput("bottom",colors.black)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for c=1, 41 do
		rs.setBundledOutput("bottom",colors.grey)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for d=1, 9 do
		rs.setBundledOutput("bottom",colors.blue)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
os.reboot()
end
if input == "Victus" then
	for a=1, 9 do
		rs.setBundledOutput("bottom",colors.white)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for b=1, 46 do
		rs.setBundledOutput("bottom",colors.black)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for c=1, 42 do
		rs.setBundledOutput("bottom",colors.grey)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for d=1, 9 do
		rs.setBundledOutput("bottom",colors.blue)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
os.reboot()
end
if input == "Vinculum" then
	for a=1, 9 do
		rs.setBundledOutput("bottom",colors.white)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for b=1, 46 do
		rs.setBundledOutput("bottom",colors.black)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for c=1, 43 do
		rs.setBundledOutput("bottom",colors.grey)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for d=1, 9 do
		rs.setBundledOutput("bottom",colors.blue)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
os.reboot()
end
if input == "Visum" then
	for a=1, 9 do
		rs.setBundledOutput("bottom",colors.white)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for b=1, 46 do
		rs.setBundledOutput("bottom",colors.black)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for c=1, 44 do
		rs.setBundledOutput("bottom",colors.grey)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for d=1, 9 do
		rs.setBundledOutput("bottom",colors.blue)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
os.reboot()
end
if input == "Vitreus" then
	for a=1, 9 do
		rs.setBundledOutput("bottom",colors.white)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for b=1, 46 do
		rs.setBundledOutput("bottom",colors.black)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for c=1, 45 do
		rs.setBundledOutput("bottom",colors.grey)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for d=1, 9 do
		rs.setBundledOutput("bottom",colors.blue)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
os.reboot()
end
if input == "Volito" then
	for a=1, 9 do
		rs.setBundledOutput("bottom",colors.white)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for b=1, 46 do
		rs.setBundledOutput("bottom",colors.black)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for c=1, 46 do
		rs.setBundledOutput("bottom",colors.grey)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
	for d=1, 9 do
		rs.setBundledOutput("bottom",colors.blue)
		sleep(0.5)
		rs.setBundledOutput("bottom",0)
		sleep(0.5)
	end
os.reboot()
else
	print("Invalid Aspect")
	os.reboot()
end
LBPHacker #2
Posted 11 February 2013 - 10:28 AM
read is a function. When you use
 input = read 
you just copy its reference to "input". Use
 input = read() 
Kingdaro #3
Posted 11 February 2013 - 10:38 AM
Make a copy of that code and it'll be only a little bigger than the disk space of google's servers. That long list of ifs can be fixed with some table magic, and you could probably make a nice color pulsing function within those ifs. Here's how to shorten that:

-- make a table and set all of your aspect names to true
local aspescts = {
  Aer = true;
  Alenis = true;
  Animus = true;
  -- the rest here because I do not feel like sifting through and picking them all out
}

-- function for pulsing a color a number of times
local function pulseColor(color, times)
  for a=1, times do
    rs.setBundledOutput("bottom", color)
    sleep(0.5)
    rs.setBundledOutput("bottom", 0)
    sleep(0.5)
  end
end

term.clear()
term.setCursorPos(1,1)
print("Enter Aspect:")
input = read()

-- then simply check if the input is in the aspect table.
if aspects[input] then
  -- pulse all of the colors
  pulseColor(colors.white, 9)
  pulseColor(colors.black, 46)
  pulseColor(colors.grey, 1)
  pulseColor(colors.blue, 9)
end

-- rebooooot
os.reboot()

See? Much less typing.
Zambonie #4
Posted 11 February 2013 - 11:31 AM
also,instead of "if input == "Something" then" put "elseif input == "something" then" after the first input code.