Phoenix5002

Fun text adventure!

Aug 16th, 2020 (edited)
3,561
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.39 KB | None | 0 0
  1. Paste this into a .txt file and change the file extension to .bat!
  2.  
  3. @echo off
  4. title Test adventure! [Version 1.2]
  5. color f
  6. cls
  7. echo Here are the rules for this game!
  8. pause
  9. cls
  10. echo I can only write the code once then I am not allowed to change it!!!
  11. pause
  12. cls
  13. echo But I already broke that rule
  14. pause
  15. cls
  16. echo But I already broke that rule.
  17. pause
  18. cls
  19. echo But I already broke that rule..
  20. pause
  21. cls
  22. echo But I already broke that rule...
  23. pause
  24. cls
  25. echo Eh. Lets play!
  26. pause
  27. cls
  28. pause
  29. :ColorLoop
  30. cls
  31. echo What text color do you like?
  32. echo.
  33. echo 0 = Black 8 = Gray
  34. echo 1 = Blue 9 = Light Blue
  35. echo 2 = Green A = Light Green
  36. echo 3 = Aqua B = Light Aqua
  37. echo 4 = Red C = Light Red
  38. echo 5 = Purple D = Light Purple
  39. echo 6 = Yellow E = Light Yellow
  40. echo 7 = White F = Bright White
  41. echo.
  42. set /p color=
  43. :LoopQuestion
  44. cls
  45. color %color%
  46. echo Do you like this color? (Y/N)
  47. set /p option=
  48. if %option%==Y goto name
  49. if %option%==N goto ColorLoop
  50. if %option%==y goto name
  51. if %option%==n goto ColorLoop
  52. goto LoopQuestion
  53. :name
  54. cls
  55. echo Whats your name?
  56. set /p name=
  57. cls
  58. echo Ok lets get into the game %name%!!!
  59. pause
  60. :replay
  61. cls
  62. echo You wake up in a forest...
  63. echo Your options are
  64. echo.
  65. echo a. Find flint
  66. echo b. Find tree's
  67. echo c. Find a town
  68. echo.
  69. set /p option=
  70. if %option%==c goto fail_a
  71. if %option%==b goto fail_b
  72. if %option%==a goto win_a
  73. cls
  74. echo .
  75. pause
  76. cls
  77. echo ..
  78. pause
  79. cls
  80. echo ...
  81. pause
  82. cls
  83. echo Say (a/b/c)
  84. pause
  85. goto replay
  86. :fail_a
  87. cls
  88. echo YOU DIE
  89. pause
  90. cls
  91. echo You fell into a hole you didnt notice
  92. pause
  93. cls
  94. echo Retry? (Y/N)
  95. echo.
  96. set /p retry=
  97. if %retry%==Y goto replay
  98. if %retry%==N exit
  99. if %retry%==y goto replay
  100. if %retry%==n exit
  101. cls
  102. echo Write (Y/N)
  103. pause
  104. cls
  105. echo Eh ill just restart it for you
  106. pause
  107. goto replay
  108. :fail_b
  109. cls
  110. echo YOU DIE
  111. pause
  112. cls
  113. echo You met a pack of wolves that didnt like you
  114. pause
  115. cls
  116. echo Retry? (Y/N)
  117. set /p retry=
  118. if %retry%==Y goto replay
  119. if %retry%==N exit
  120. if %retry%==y goto replay
  121. if %retry%==n exit
  122. cls
  123. echo Write (Y/N)
  124. pause
  125. cls
  126. echo Eh ill just restart it for you
  127. pause
  128. goto replay
  129. :win_a
  130. :replay2
  131. cls
  132. echo You find flint!
  133. echo You sharpend the flint into tools!
  134. echo What now?
  135. echo.
  136. echo a. Find a forest
  137. echo b. Find a town
  138. echo.
  139. set /p option=
  140. if %option%==b goto fail_a
  141. if %option%==a goto win_b
  142. cls
  143. echo .
  144. pause
  145. cls
  146. echo ..
  147. pause
  148. cls
  149. echo ...
  150. pause
  151. cls
  152. echo Dude just say (a/b/c)
  153. pause
  154. echo you did it before...
  155. pause
  156. goto replay2
  157. :win_b
  158. :replay3
  159. cls
  160. echo You find a pack of wolves but you kill them.
  161. echo What now?
  162. echo.
  163. echo a. Find a town
  164. echo b. Make a house
  165. echo.
  166. set /p option=
  167. if %option%==a goto fail_a
  168. if %option%==b goto win_3
  169. cls
  170. echo .
  171. pause
  172. cls
  173. echo ..
  174. pause
  175. cls
  176. echo ...
  177. pause
  178. cls
  179. echo Dude just say (a/b/c)
  180. pause
  181. echo you did it before...
  182. pause
  183. goto replay3
  184. :win_3
  185. cls
  186. echo YOU WIN!
  187. pause
  188. cls
  189. echo You live the rest of your life in your small hut.
  190. pause
  191. cls
  192. echo Play again %name%? (Y/N)
  193. echo.
  194. set /p option=
  195. if %option%==Y goto replay
  196. if %option%==N exit
  197. if %option%==y goto replay
  198. if %option%==n exit
  199. cls
  200. echo ...
  201. pause
  202. cls
  203. echo ...
  204. echo ...
  205. pause
  206. cls
  207. echo ...
  208. echo ...
  209. echo ...
  210. pause
  211. cls
  212. echo This is the final secret
  213. pause
  214. cls
  215. echo Welp this secret got boring.
  216. pause
  217. cls
  218. echo kicking you now!
  219. pause
  220. exit
  221.  
  222.  
  223.  
Advertisement
Add Comment
Please, Sign In to add comment