Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function clear()
- term.clear()
- term.setCursorPos(1,1)
- end
- function getAction()
- write("Please enter: ")
- ask = read()
- end
- function done()
- local ask = 0
- end
- function key()
- bRead = true
- print(" ")
- print(" ")
- print("Press any Key to Continue")
- while(bRead) do
- local sEvent, param = os.pullEvent("key")
- if(sEvent == "key") then
- clear()
- done()
- talk()
- getAction()
- break
- end
- end
- end
- function talk()
- 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(" ")
- end
- clear()
- done()
- print("To Ask Villager #4 a Question, type in the Number of the Question.")
- print(" ")
- talk()
- getAction()
- while true do
- if ask == "1" then
- clear()
- print("We are on the Sphere called Nasci. Once it was supposed to hold Flora and Fauna, but due to the missing maintaining of the Humanity, not everything was able to survive.")
- print("But still, i am happy that some Animals and Plants survived...")
- key()
- elseif ask == "2" then
- clear()
- print("Shouldn't you know that, Captain?")
- print("Whatever. We need Resources to rebuild Humanity and to repair the Jumpgate.")
- print("You can see what we need on the Monitor.")
- key()
- elseif ask == "3" then
- clear()
- print("Well... We brought some Resources with us, but only with that, it could get hard to gather everything we need.")
- print("I think you should search for some more stuff in this Sphere. I bet here is more than we can see.")
- key()
- elseif ask == "4" then
- clear()
- print("Out arriving here, destroyed the very old and already damaged Parts of the Jumpgate. We can repair it, but we need a bit time and Resources.")
- key()
- elseif ask == "5" then
- clear()
- print("Like Secondary targets. When you gather more then we need, we can Achieve more, or when you find something special we can use, could it help us in a different way.")
- print("But we don't have time to waste. When you do thing that is not good for our targets, it can damage us too.")
- key()
- else
- clear()
- print("What did you say?")
- key()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment