Advertisement
Glampkoo

Game I'm making

Oct 13th, 2013
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2. cls
  3. title "Dungeon X"
  4. echo Dungeon X
  5. echo.
  6. echo Copyright Glampkoo.inc
  7. pause
  8.  
  9. :menu
  10. cls
  11. echo 1. Start
  12. echo 2. Instructions
  13. echo 3. Codes
  14. echo 4. Exit
  15. set /p answer=Select the option by typing the respective number and press enter.
  16. if %answer%==1 goto start
  17. if %answer%==2 goto instr
  18. if %answer%==3 goto codes
  19. if %answer%==4 goto exit
  20. goto menu
  21.  
  22. :codes
  23. cls
  24. echo WIP!
  25. echo.
  26. pause
  27. goto menu
  28.  
  29. :exit
  30. cls
  31. echo Do you really want to exit? [y/n]
  32. set /p answer=
  33. if %answer%==y goto exitreally
  34. if %answer%==n goto menu
  35. goto exit
  36.  
  37. :exitreally
  38. cls
  39. echo Thanks for playing!
  40. pause
  41. exit
  42.  
  43. :instr
  44. cls
  45. echo Instructions
  46. echo.
  47. echo The game gives you options (for example):
  48. echo 1.Run
  49. echo 2.Grab it.
  50. echo Just select the respective number and press Enter.
  51. echo.
  52. echo Sometimes the game can give hints to do certain things in certain places. Be cautious!
  53. echo.
  54. echo During the game you can leave the game by typping "quit" (then enter) to exit the game and "menu" (then enter) to go to menu
  55. pause
  56. goto Menu
  57.  
  58. :start
  59. cls
  60. echo You are about to enter the Dungeon.
  61. echo Until now, no explorers/adventurers haven't returned.
  62. echo.
  63. echo 1. Enter
  64. echo 2. Leave
  65. set /p answer=
  66. if %answer%==1 goto dungeon_entrance
  67. if %answer%==2 goto coward
  68. if %answer%==quit goto exitreally
  69. if %answer%==menu goto menu
  70. goto start
  71.  
  72. :coward
  73. cls
  74. echo You little coward.
  75. exit
  76.  
  77. :dungeon_entrance
  78. cls
  79. echo You entered the dungeon, and you see two doors.
  80. echo.
  81. echo 1. Right room
  82. echo 2. Left room
  83. echo 3. Go straight
  84. set /p answer=ÿÿ
  85. if %answer%==1 goto room1
  86. if %answer%==2 goto room2
  87. if %answer%==3 goto door1
  88. if %answer%==quit goto exitreally
  89. if %answer%==menu goto menu
  90. goto dungeon_entrance
  91.  
  92. :dungeon_entrance_leave
  93. cls                                                  
  94. echo You left the room and you return to the entrance.
  95. echo.
  96. echo 1. Right room
  97. echo 2. Left room
  98. echo 3. Go straight
  99. set /p answer=ÿÿ
  100. if %answer%==1 goto room1
  101. if %answer%==2 goto room2
  102. if %answer%==3 goto door3
  103. if %answer%==quit goto exitreally
  104. if %answer%==menu goto menu
  105. goto dungeon_entrance_leave
  106.  
  107.  
  108. :room1
  109. cls
  110. echo You see a desk, a bed, a painting of an old man, and a bookshelf.
  111. echo What do you want to examine?
  112. echo.
  113. echo 1. Desk
  114. echo 2. Bed
  115. echo 3. Painting
  116. echo 4. Bookshelf
  117. echo 5. Leave
  118. set /p answer=
  119. if %answer%==1 goto room1_desk
  120. if %answer%==2 goto room1_bed
  121. if %answer%==3 goto room1_painting
  122. if %answer%==4 goto room1_shelf
  123. if %answer%==5 goto dungeon_entrance_leave
  124. if %answer%==quit goto exitreally
  125. if %answer%==menu goto menu
  126. goto room1
  127.  
  128. :room1_desk
  129. cls
  130. echo You examined everything and you only found a bunch of papers. Read them?[y/n]
  131. set /p answer=
  132. if %answer%==y goto paper1
  133. if %answer%==n goto room1
  134. if %answer%==quit goto exitreally
  135. if %answer%==menu goto menu
  136. goto room1_desk
  137.  
  138. :paper1
  139. cls
  140. echo "More 26 prisoners were added to the dungeon. One of the is very strong and doesn't want to be bothered."
  141. pause
  142. echo "Our total amount of prisoners is 272."
  143. pause
  144. echo I can't read what's next. Probably the papers belong to the dungeon's Warden.
  145. pause
  146. goto room1
  147.  
  148. :room1_bed
  149. cls
  150. echo It's just a bed.
  151. echo.
  152. echo 1. Sleep
  153. echo 2. Leave the bed
  154. set /p answer=
  155. if %answer%==1 goto sleep
  156. if %answer%==2 goto room1
  157. if %answer%==quit goto exitreally
  158. if %answer%==menu goto menu
  159. goto room1_bed
  160.  
  161. :sleep
  162. cls
  163. echo You slept nicely but it's time to move on.
  164. pause
  165. goto room1
  166.  
  167. :room1_painting
  168. cls
  169. echo It's a painting of an old man. Probably father of the Warden.
  170. echo.
  171. echo 1. Take a close look.
  172. echo 2. Leave it.
  173. set /p answer=
  174. if %answer%==1 goto painting
  175. if %answer%==2 goto room1
  176. if %answer%==quit goto exitreally
  177. if %answer%==menu goto menu
  178. goto room1_painting
  179.  
  180. :painting
  181. cls
  182. echo You throughly examined the picture and there was some numbers in it: 25b9
  183. pause
  184. goto room1
  185.  
  186. :room1_shelf
  187. cls
  188. echo There are a lot of books about prisons/dungeons and their managment.
  189. echo.
  190. echo 1. Read them?
  191. echo 2. Leave them.
  192. set /p answer=
  193. if %answer%==1 goto books
  194. if %answer%==2 goto room1
  195. if %answer%==quit goto exitreally
  196. if %answer%==menu goto menu
  197.  
  198. :books
  199. cls
  200. echo Don't waste your time, just play the game!
  201. pause
  202. goto room1
  203.  
  204. :room2
  205. cls
  206. echo It's a bathroom. There's nothing to do here.
  207. pause
  208. goto dungeon_entrance_leave
  209.  
  210. :door1
  211. cls
  212. echo There are some stairs down. Want to go down? [y/n]
  213. set /p answer=
  214. if %answer%==y goto stairsdown1
  215. if %answer%==n goto dungeon_entrance_leave
  216. if %answer%==quit goto exitreally
  217. if %answer%==menu goto menu
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement