Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function SystemStart()
- term.setBackgroundColour(2)
- term.setTextColour(1)
- term.clear
- term.write("Reactor Control")
- term.setCursorPos(1,3)
- term.write("Please Select Option\n")
- if isIgnited() == false then
- term.write("1-Start reactor\n")
- else
- term.write("1-Stop reactor\n")
- end
- term.write("2-Show System Status\n")
- term.write("3-Shutdown Computer\n")
- Menu()
- end
- function Menu()
- while true do
- t = read()
- if t == 1 then
- if isIgnited() == true then
- print("Stopping Reactor\n")
- ReactorShutoff()
- else
- print("Starting Reactor\n")
- ReactorStartup()
- end
- elseif t == 2 then
- elseif t == 3 then
- end
- end
- end
- function CheckOrders()
- end
- function ReactorStartup()
- speechBox.say("Reactor Starting")
- setOutput("bottom", true)
- sleep(4)
- while getProducing() < 700000000 do
- print("Waiting")
- end
- end
- function ReactorShutoff()
- end
- SystemStart()
Advertisement
Add Comment
Please, Sign In to add comment