Posted 01 August 2015 - 05:18 PM
So I've got a very simple door lock set up.
What I'd like to do is put in an "Override" circuit. Basically if this thing is getting a signal from another terminal- redstone in through the back- it'll refuse any password and stay LOCKED. How would I go about doing that?
while true do
term.clear()
term.setCursorPos(1,1)
print("+-------------------------------------------------+")
term.setCursorPos(1,2)
print("| AIRLOCK SECURITY CONTROLS |")
term.setCursorPos(1,3)
print("+-------------------------------------------------+")
term.setCursorPos(1,4)
print("| Enter Password: |")
term.setCursorPos(19, 4)
input = read("*")
if input == "password" then
redstone.setOutput("left", true)
redstone.setOutput("top", true)
sleep(5)
redstone.setOutput("left", false)
redstone.setOutput("top", false)
else
term.setCursorPos(19,4)
print("INVALID PASSWORD")
sleep(5)
end
end
What I'd like to do is put in an "Override" circuit. Basically if this thing is getting a signal from another terminal- redstone in through the back- it'll refuse any password and stay LOCKED. How would I go about doing that?