Advertisement
Guest User

PASTEBIN; holy shit

a guest
Apr 19th, 2015
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. ::pin_enter::
  2. print("Please enter the correct PIN to unlock door.") -- Display text.
  3. local inputvar = term.read()
  4. term.write("pin| '"..pin.."', input='"..inputvar.."'")
  5. if inputvar == pin then -- If input is equal to the PIN, goto "correct"
  6. goto correct
  7. else
  8. print("Incorrect.") -- Display text.
  9. goto pin_enter -- Goto "pin_enter"
  10. end
  11. ::correct::
  12. print("Correct.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement