owlman

Pub Quiz | Batch File

Dec 2nd, 2015
136
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2. title Pub Quiz
  3. color 0a
  4.  
  5. :menustartgame
  6. cls
  7. echo Welcome to Pub Quiz
  8. echo ***************************************
  9. echo.
  10. echo From here you can:
  11. echo.
  12. echo 1. Start the Game
  13. echo 2. Info
  14. echo 3. Exit
  15. echo 4. Nothing
  16. set /p menuchoie=">"
  17.  
  18. if %menuchoie% == 1 goto startgame
  19. if %menuchoie% == 2 goto info
  20. if %menuchoie% == 3 goto exit
  21. goto menustartgame
  22.  
  23. :info
  24. cls
  25. title Information on the Quiz
  26. color 0b
  27. pause
  28. echo This quiz is the best quiz ever!!!11!1
  29. echo.
  30. echo 1. Start the quiz
  31. echo 2. Exit
  32.  
  33.  
  34. set /p menuchoie=">"
  35.  
  36. if %menuchoie% == 1 goto startgamePUBQUIX
  37. if %menuchoie% == 2 goto exitDodgemsAD
  38.  
  39.  
  40. :startgame
  41. cls
  42. title Please enter your name
  43. color 1a
  44. echo Please enter your name...
  45. echo.
  46.  
  47. set /p player=
  48. echo.
  49. echo Press any key to start, the quiz
  50. pause >nul
  51. goto q1
  52.  
  53. :q1
  54. cls
  55. title Question one
  56. cls
  57. echo Question one
  58. echo ***************************************
  59. echo.
  60. echo The national animal of Scotland is...
  61. echo.
  62. echo 1. A Bald eagle
  63. echo 2. A Duck
  64. echo 3. A Unicorn
  65. echo 4. A Wolf
  66.  
  67. echo.
  68. set /p ans1=
  69.  
  70. if %ans1% == 1 goto wr1
  71. if %ans1% == 2 goto wr1
  72. if %ans1% == 3 goto cr1
  73. if %ans1% == 4 goto wr1
  74. goto q1
  75.  
  76. :wr1
  77. cls
  78. title Wrong
  79. color 8b
  80. echo Sorry m8, that's not the national animal of Scotland
  81. pause >nul
  82. goto menustartgame
  83.  
  84. :cr1
  85. cls
  86. title Corret!
  87. color 9a
  88. echo Corret, %player%! The national animal of Scotland is the unicorn
  89. echo.
  90. echo Press any key to continue
  91. pause >nul
  92. goto q2
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104. :q2
  105. cls
  106. title Question two
  107. cls
  108. echo Question two
  109. echo ***************************************
  110. echo.
  111. echo The World's Oldest Newspaper that is still running is...
  112. echo.
  113. echo 1. The Times
  114. echo 2. Berrow's Worcester Journal
  115. echo 3. Play Boy
  116. echo 4. The King's Boy
  117. echo.
  118. set /p ans2=
  119.  
  120. if %ans2% == 1 goto wr2
  121. if %ans2% == 2 goto cr2
  122. if %ans2% == 3 goto wr2
  123. if %ans2% == 4 goto wr2
  124. goto q2
  125.  
  126. :wr2
  127. cls
  128. title Wrong
  129. color 8b
  130. echo Nope, that's wrong
  131. echo.
  132. echo Press any key to return to the menu
  133. pause >nul
  134. goto menustartgame
  135.  
  136. :cr2
  137. cls
  138. title Corret!
  139. color 9a
  140. echo Well done, %player%, the oldest newspaper is indeed the Worcester Journal
  141. echo.
  142. echo Press any key to continue
  143. pause >nul
  144. goto q3
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163. :q3
  164. cls
  165. title Question three
  166. cls
  167. echo Question three
  168. echo ***************************************
  169. echo.
  170. echo How long was The 100 Year war between England and France?
  171. echo.
  172. echo 1. 100 years
  173. echo 2. 99 years
  174. echo 3. 116 years
  175. echo 4. 101 years
  176. echo.
  177. set /p ans3=
  178.  
  179. if %ans3% == 1 goto wr3
  180. if %ans3% == 2 goto wr3
  181. if %ans3% == 3 goto cr3
  182. if %ans3% == 4 goto wr3
  183. goto q5
  184.  
  185. :wr3
  186. cls
  187. title Wrong
  188. color 8b
  189. echo I would of said that too
  190. echo.
  191. echo Press any key to return to the menu
  192. pause >nul
  193. goto menustartgame
  194.  
  195. :cr3
  196. cls
  197. title Corret!
  198. color 9a
  199. echo Well done, %player%! The 100 Year War really did last 116 years
  200. echo.
  201. echo Press any key to continue
  202. pause >nul
  203. goto q4
  204.  
  205.  
  206.  
  207.  
  208.  
  209.  
  210.  
  211.  
  212.  
  213. :q4
  214. cls
  215. title Question fore
  216. cls
  217. echo Question fore
  218. echo ***************************************
  219. echo.
  220. echo Paul McCartney, "Weird Al" Yankovic and 50 Cent
  221. echo have all been on what show?
  222. echo.
  223. echo 1. The Simpsons
  224. echo 2. Family Guy
  225. echo 3. The Flintstones
  226. echo 4. Space 1999
  227. echo.
  228. set /p ans4=
  229.  
  230. if %ans4% == 1 goto cr4
  231. if %ans4% == 2 goto wr4
  232. if %ans4% == 3 goto wr4
  233. if %ans4% == 4 goto wr4
  234. goto q5
  235.  
  236. :wr4
  237. cls
  238. title Wrong
  239. color 8b
  240. echo Oh man! your're wrong!
  241. echo.
  242. echo Press any key to return to the menu
  243. pause >nul
  244. goto menustartgame
  245.  
  246. :cr4
  247. cls
  248. title Corret!
  249. color 9a
  250. echo Corret, many, many guest stars have been on The Simpsons
  251. echo.
  252. echo Press any key to continue
  253. pause >nul
  254. goto q5
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264. :q5
  265. cls
  266. title Question five
  267. cls
  268. echo Question five
  269. echo ***************************************
  270. echo.
  271. echo Is this a good quiz?
  272. echo.
  273. echo 1. No
  274. echo 2. No
  275. echo 3. No
  276. echo 4. No
  277. echo.
  278. set /p ans5=
  279.  
  280. if %ans5% == goto cr5
  281. if %ans5% == goto cr5
  282. if %ans5% == goto cr5
  283. if %ans5% == goto cr5
  284. goto win
  285.  
  286.  
  287. :cr5
  288. cls
  289. title Corret!
  290. color 9a
  291. echo Well done, %player%, we agree!
  292. echo.
  293. echo Press any key to continue
  294. pause >nul
  295. goto win
  296.  
  297.  
  298.  
  299.  
  300. :win
  301. cls
  302. title Welldone, you have won!
  303. coloe 0a
  304. ping localhost -n 1
  305. color 0b
  306. ping localhost -n 1
  307. color 0c
  308. ping localhost -n 1
  309. color 0d
  310. ping localhost -n 1
  311. color 0e
  312. ping localhost -n 1
  313. color 0f
  314. cls
  315. echo.
  316. echo A winner is you!
  317. echo.
  318. echo I hope you liked this quiz!
  319. echo Thank's for playing this dumb game!
  320. echo.
  321. pause
  322. cls
  323. echo Return to menu? (Y/N)
  324. set /p rtrn2menu=
  325.  
  326. if %rtrn2menu% == y goto menu
  327. if %rtrn2menu% == n exit
  328. goto win
  329.  
  330.  
  331. echo
RAW Paste Data