wv1106

russian roulette installer read for more info on how to use

Apr 15th, 2021 (edited)
866
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.88 KB | None | 0 0
  1. ----------------------------------------------------------------
  2. --to start this file make sure there are no other files on the computer
  3. --and when you install this file don't give it the name startup.lua
  4. ----------------------------------------------------------------
  5. --      manual
  6. --
  7. -- when you use this place your computer on a disk drive for Mcards from the cashier (one of my previous scripts)
  8. -- to control it use your up and down arrow keys to change the bidding amount and enter to confirm your amount
  9. -- when you are blaying you can klick on the chamber where you think there is no bullet (you can't klick twice on te same place)
  10. -- when you press enter you will spin the chamber of the revolver (like in rusian roulette)
  11. -- when you spin the gun you can klick on all places again
  12. -- if you have anymore questions please contact me wv116#1224 on discord
  13. -----------------------------------------------------------------------------------
  14.  
  15. local confirm = false
  16. local install = false
  17. function text()
  18.     term.setCursorPos(13, 7)
  19.     print("this will create a startup.")
  20.     term.setCursorPos(14, 8)
  21.     print("do you want to continue?")
  22. end
  23. function confirmation()
  24.     term.setCursorPos(18, 10)
  25.     local event, key, isHeld = os.pullEvent("key")
  26.     if key == keys.left then
  27.         write(">Yes<     No ")
  28.         confirm = true
  29.     elseif key == keys.right then
  30.         write(" Yes     >No<")
  31.         confirm = false
  32.     end
  33.  
  34. end
  35.  
  36. term.clear()
  37. term.setCursorPos(18, 10)
  38. print(" Yes     >No<")
  39. while install == false do
  40.     text()
  41.     confirmation()
  42.     local event, key, isHeld = os.pullEvent("key")
  43.     if confirm and key == keys.enter then
  44.         install = true
  45.     end
  46. end
  47. term.clear()
  48. term.setCursorPos(1, 1)
  49. shell.run("pastebin get Jr34bN1V startup.lua")
  50. shell.run("pastebin get 2wmTXThB images/chamber.nfp")
  51. shell.run("pastebin get 9wPaCvmq images/revolver.nfp")
Add Comment
Please, Sign In to add comment