Advertisement
JackHaxor

Game notepad

Jul 15th, 2017
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. @echo off
  2. color b0
  3. :menu
  4. cls
  5. echo Hey! Welcome to the game!
  6. echo 1) start!
  7. echo 2) how to play
  8. echo 3) Exit :-(
  9. set /p number=
  10.  
  11. if %number% == 1 goto StartGame
  12. if %number% == 2 goto help
  13. if %number% == 3 goto exit
  14.  
  15. :startgame
  16. cls
  17. echo Type Your Name:
  18. set /p name=
  19. echo Hello %name%!
  20. echo Do you want to start the quiz? (y/n)
  21. set /p start=
  22. if %start% == y goto level1
  23. if %start% == n goto menu
  24. goto startgame
  25.  
  26. :help
  27. cls
  28. echo Press the number of the answer then hit enter.
  29. echo go back? (y/n)
  30. set /p menugoto=
  31. if %menugoto% == y goto menu
  32. if %menugoto% == n goto exit
  33. goto help
  34.  
  35. :exit
  36. goto exit
  37.  
  38. :level1
  39. cls
  40. echo Okay, Let's Start.
  41. echo
  42. echo 1)
  43. echo 2)
  44. echo 3)
  45.  
  46. set /p answer1=
  47. if %answer1% == 1 goto correct1
  48. if %answer1% == 2 goto wrong1
  49. if %answer1% == 3 goto wrong1
  50. goto level1
  51.  
  52. :correct1
  53. echo You are right! Next Level? (y/n)
  54. set /p NL1=
  55.  
  56. if %NL1% == y goto level2
  57. if %NL1% == n goto menu
  58. goto correct1
  59.  
  60. :Wrong1
  61. Echo Sadly, you were wrong. Retry? (y/n)
  62. set /p WA1=
  63. if %WA1% == y goto level1
  64. if %WA1% == n goto menu
  65. goto wrong1
  66.  
  67. :level2
  68.  
  69. cls
  70. echo
  71. echo 1)
  72. echo 2)
  73. echo 3)
  74. echo 4)
  75. set /p aa=
  76. if %aa% == 1 goto correct2
  77. if %aa% == 1 goto wrong2
  78. if %aa% == 1 goto wrong2
  79. if %aa% == 1 goto wrong2
  80. goto level2
  81.  
  82. :correct2
  83. cls
  84. echo YOU WIN THE GAME!
  85. goto correct2
  86.  
  87. :wrong2
  88. cls
  89. echo YOU LOST! RETRY GAME? (y/n)
  90. set/p retry=
  91. if %retry% == y goto level1
  92. if %retry% == n goto exit
  93. goto wrong2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement