http://pastebin.com/Cdn9wJCK
Raw Paste Data:
local function clearScreen()
term.clear()
term.setCursorPos(1, 1)
end
while true do
clearScreen()
passone = ("weapons")
passtwo = ("equipped")
passthree = ("armor")
print("Password One:")
if read("*") == passone then
clearScreen()
print("Password Two:")
if read("*") == passtwo then
clearScreen()
print("Password Three:")
if read("*") == passthree then
clearScreen()
print("Accepted")
redstone.setOutput("left", true)
redstone.setOutput("back", true)
redstone.setOutput("right", true)
sleep(8)
clearScreen()
redstone.setOutput("left", false)
redstone.setOutput("back", false)
redstone.setOutput("right", false)
else
clearScreen()
print("Denied")
sleep(3)
end
end
end
end
Sidenotes:
1) In the passone, passtwo, and passthree slots, the passwords are, expectably, customizable.
2) This does, indeed, keep your doors triple-locked, and also supports making three doors open one-by-one, as detailed with the three redstone.setOutput functions.
3) I do like feedback. Not because I'm narcisistic, but because I actually care about other people's opinions (to an extent). If you like it, say you like it. If there's problems (which I tried my best to fix), then tell me so I can improve.
4) Thanks very much to Casper7526's Interactive Computercraft Tutorial. Couldn't have done this without you!