Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Total lines of code: 67")
- os.sleep(2)
- term.clear()
- term.setCursorPos(1, 1)
- os.sleep(1)
- print("You enter a shop, the owner looks into your eyes and realizes you are special.")
- os.sleep(3)
- print("He says you may have a choice of two weapons, sword or bow.")
- os.sleep(3)
- term.clear()
- term.setCursorPos(1, 1)
- os.sleep(1)
- print("What shall you pick?")
- write("Choice Console: ")
- input = read()
- if input == "sword" or input == "Sword" then
- print("You chose sword")
- os.sleep(1)
- term.clear()
- term.setCursorPos(1, 1)
- elseif input == "bow" or input == "Bow" then
- print("You chose bow")
- os.sleep(1)
- term.clear()
- term.setCursorPos(1, 1)
- else
- print("You can not choose "..input)
- os.reboot()
- end
- print("You exit the shop to find a mysterious man on a bench.")
- os.sleep(3)
- print("He says that he will not let you murder him.")
- os.sleep(3)
- print("A hole starts forming in the ground, you fall in.")
- os.sleep(3)
- print("You wake up and smell flowers. You go left or right.")
- os.sleep(3)
- write("Choice Console: ")
- input = read()
- if input == "left" or input == "Left" then
- print("You move left and walk into a monster. Attack of run?")
- input = read()
- if input == "attack" or input == "Attack" then
- print("You one shot the monster! 0/10 health.")
- print("Level up!")
- print("Attack damage +5")
- print("You continue on that path to a dead end. You turn around and walk into a building.")
- print("You find a treasure chest. You open it and find a map inside.")
- print("THAT'S THE END OF DA DEMO!")
- elseif input == "run" or input == "Run" then
- print("You attempt to run and fail, he attacks you and you die.")
- end
- elseif input == "right" or input == "Right" then
- print("You walk infront of a door to a building. Open or turn around?")
- input = read()
- if input == "open" or input == "Open" then
- print("You walk in.")
- print("You are infront of a treasure chest. You find a map inside")
- print("That's the end of the demo!")
- elseif input == "turn around" or input == "Turn around" then
- print("You walk into a monster and decide to attack, you kill the monster 0/10 health.")
- print("Level up!")
- print("Attack damage +5")
- print("You continue on that path and walk into a dead end, you go to the right path.")
- print("You're infront of a door to a building.")
- print("You walked in.")
- print("You are infront of a treasure chest. You find a map inside")
- print("That's the end of the demo!")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment