Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- p = peripheral.wrap ("bottom")
- monitor = peripheral.wrap ("top")
- monitor.clear()
- monitor.setCursorPos(1,1)
- monitor.setTextScale(1)
- monitor.write ("Systems Active")
- while true do
- evt, msg = os.pullEvent()
- if evt == "chat_command" and msg == "help" then
- p.addText (1, 1, "Displaying Commands", 0xFF0000)
- p.addText (1, 10, "Garage - Bunker - Passage", 0x0020C2)
- p.addText (1, 20, "Computer - Armor - Lasers", 0x0020C2)
- p.addText (1, 30, "Power - Chamber - Reactor", 0x0020C2)
- sleep (5)
- p.clear()
- end
- if evt == "chat_command" and msg == "garage" then
- rs.setBundledOutput ("back", colors.orange)
- sleep (2)
- rs.setBundledOutput ("back",rs.getBundledOutput ("back")-colors.orange)
- end
- if evt == "chat_command" and msg == "bunker" then
- rs.setBundledOutput ("back", colors.magenta)
- sleep (2)
- rs.setBundledOutput ("back",rs.getBundledOutput ("back")-colors.magenta)
- end
- if evt == "chat_command" and msg == "passage" then
- rs.setBundledOutput ("back", colors.lightBlue)
- sleep (2)
- rs.setBundledOutput ("back" ,rs.getBundledOutput ("back")-colors.lightBlue)
- end
- if evt == "chat_command" and msg == "computer" then
- rs.setBundledOutput ("back", colors.yellow)
- sleep (2)
- rs.setBundledOutput ("back" ,rs.getBundledOutput ("back")-colors.yellow)
- end
- if evt == "chat_command" and msg == "armor" then
- rs.setBundledOutput ("back", colors.lime)
- sleep (2)
- rs.setBundledOutput ("back" ,rs.getBundledOutput ("back")-colors.lime)
- end
- if evt == "chat_command" and msg == "lasers" then
- rs.setBundledOutput ("back", colors.pink)
- sleep (2)
- rs.setBundledOutput ("back" ,rs.getBundledOutput ("back")-colors.pink)
- end
- if evt == "chat_command" and msg == "power" then
- rs.setBundledOutput ("back", colors.gray)
- sleep (2)
- rs.setBundledOutput ("back" ,rs.getBundledOutput ("back")-colors.gray)
- end
- if evt == "chat_command" and msg == "chamber" then
- rs.setBundledOutput ("back", colors.lightGray)
- sleep (2)
- rs.setBundledOutput ("back" ,rs.getBundledOutput ("back")-colors.lightGray)
- end
- if evt == "chat_command" and msg == "reactor" then
- rs.setBundledOutput ("back", colors.cyan)
- sleep (2)
- rs.setBundledOutput ("back" ,rs.getBundledOutput ("back")-colors.cyan)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement