Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function clear()
- term.setCursorPos(1,1)
- term.clear()
- end
- function getAction()
- write("Please enter: ")
- ask = read()
- end
- function done()
- local ask = 0
- end
- function key()
- bRead = true
- while(bRead) do
- local sEvent, param = os.pullEvent("key")
- if(sEvent == "key") then
- clear()
- done()
- getAction()
- break
- end
- end
- end
- clear()
- done()
- print("To Ask Villiger #4 a Question, type in the Number of the Question.")
- print(" ")
- print("1 Where are we now?")
- print("2 What i am supposed to do?")
- print("3 How am i supposed to do something?")
- print("4 Can't i go back?")
- print("5 What do you mean with Bonus?")
- print(" ")
- getAction()
- while true do
- if ask == "1" then
- print("1111.")
- print("1111")
- key()
- elseif ask == "2" then
- print("2222")
- print("2222")
- print("2222")
- key()
- elseif ask == "3" then
- print("3333")
- print("3333")
- key()
- elseif ask == "4" then
- print("4444")
- key()
- elseif ask == "5" then
- print("5555")
- print("5555")
- key()
- else
- print("What did you say?")
- key()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement