Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Jailcont 1.1--
- term.clear()
- term.setCursorPos(1,1)
- print ("Loading: JailCont")
- sleep(6)
- print ("Done")
- sleep(1)
- term.clear()
- term.setCursorPos(1,1)
- print ("On the wall to the left of the computer")
- print ("is a panel of sixteen buttons. These")
- print ("control the jail.")
- print ("")
- print ("+----------------------------+")
- print ("| Black Red Green Brown |")
- print ("| Blue Purple Cyan LGray |")
- print ("| DGray Pink LGreen Yellow |")
- print ("| LBlue Magent Orange White |")
- print ("+----------------------------+")
- print ("")
- print ("Type the color name for it's function or Exit.")
- term.setCursorPos(1,13)
- local Color =read("")
- term.clearLine()
- while color != "Exit" do
- colorcheck
- end
- function colorcheck ()
- - -row 1--
- if Color == "Black" then
- print ("Black turns on and off the light in cell red.")
- goto = 23
- end
- if Color == "Red" then
- print ("Red opens and closes door to cell red.")
- goto = 23
- end
- if Color == "Green" then
- print ("Green opens and closes door to cell green.")
- goto = 23
- end
- if Color == "Brown" then
- print ("Brown turns on and off the light in cell green.")
- goto = 23
- end
- --row 2--
- if Color == "Blue" then
- print ("Blue turns on and off the light in cell purple.")
- goto = 23
- end
- if Color == "Purple" then
- print ("Purple opens and closes door to cell purple.")
- goto = 23
- end
- if Color == "Cyan" then
- print ("Cyan opens and closes door to cell cyan.")
- goto = 23
- end
- if Color == "LGray" then
- print ("LGray turns on and off the light in cell cyan.")
- goto = 23
- end
- --row 3--
- if Color == "DGray" then
- print ("DGray turns on and off the light in cell pink.")
- goto = 23
- end
- if Color == Pink then
- print ("Pink opens and closes door to cell pink.")
- goto = 23
- end
- if Color == "LGreen" then
- print ("LGreen opens and closes door to cell lgreen.")
- goto = 23
- end
- if Color == "Yellow" then
- print ("Yellow turns on and off the light in cell lgreen.")
- goto = 23
- end
- --row 4--
- if Color == "LBlue" then
- print ("LBlue turns on and off the light in hallway.")
- goto = 23
- end
- if Color == "Magent" then
- print ("Unused.")
- goto = 23
- end
- if Color == "Orange" then
- print ("Unused.")
- goto = 23
- end
- if Color == "White" then
- print ("White opens and closes the door to the hallway.")
- goto = 23
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement