Advertisement
tcl1

[Minigame] Batch adventure game v1

Oct 31st, 2013
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.32 KB | None | 0 0
  1. @echo off
  2. cls
  3. title MiniAdventure
  4. goto misc
  5. :misc
  6. set comp1=No
  7. set comp2=No
  8. set invslot1=
  9. set invslot2=
  10. set b1=No
  11. set b2=No
  12. set b3=No
  13. set vis1=
  14. set vis2=No
  15. set vis3=No
  16. set /a money+=15
  17. goto menu
  18. :menu
  19. color 00
  20. cls
  21. echo MiniAdv v1
  22. echo Type "play" to play
  23. set /p op=
  24. if %op% equ play goto select
  25. :select
  26. cls
  27. echo Select a place to go to.
  28. echo Type in a place's name to go to it.
  29. echo ------------------------
  30. echo Town
  31. echo Completed:%comp1%
  32. echo ------------------------
  33. set /p place=
  34. if %place% equ town goto town
  35. :town
  36. cls
  37. echo Welcome to the town!
  38. pause
  39. cls
  40. set /p name=What is your name?
  41. cls
  42. echo Well, %name%, come to my shop!
  43. pause
  44. cls
  45. goto shop
  46. :shop
  47. cls
  48. set vis2=Yes
  49. echo ----
  50. echo SHOP
  51. echo ----
  52. echo Money: $%money%
  53. echo Type "exit" to exit store
  54. echo ----
  55. echo Bottle of Water [Cost: $1, Bought: %b1%]
  56. echo Type "water" to buy this item
  57. echo ----
  58. echo Apple [Cost: $1, Bought: %b2%]
  59. echo Type "apple" to buy this item
  60. echo ----
  61. set /p storeop=Item to buy:
  62. if %storeop% equ water goto buybottle
  63. if %storeop% equ apple goto buyapple
  64. if %storeop% equ exit goto townrest
  65. :buybottle
  66. set invslot1=Water Bottle
  67. set /a money-=1
  68. set b1=Yes
  69. goto shop
  70. :buyapple
  71. set /a money-=1
  72. set b2=Yes
  73. goto shop
  74. :townrest
  75. cls
  76. echo NAME: %name% ^| MONEY: $%money%
  77. echo Where would you like to go next?
  78. echo --------------------------------
  79. echo Type in a place's name to go to it
  80. echo --------------------------------
  81. echo Shop
  82. echo Visited: %vis2%
  83. echo --------------------------------
  84. echo Bar
  85. echo Visited: %vis3%
  86. echo --------------------------------
  87. set /p place2=
  88. if %place2% equ shop goto shop
  89. if %place2% equ bar goto bar
  90. :bar
  91. cls
  92. echo Hello! You must be %name%, right?
  93. pause
  94. cls
  95. echo Well then, what would you like?
  96. pause
  97. goto barop
  98. :barop
  99. cls
  100. echo ---
  101. echo BAR
  102. echo ---
  103. echo Money: $%money%
  104. echo Type "exit" to exit
  105. echo ---
  106. echo Vodka [Cost: $5, Bought: %b3%]
  107. echo Type "vodka" to buy this item
  108. echo ---
  109. echo Beer [Cost: $10, Bought: UNAVAILIBLE]
  110. echo OUT OF STOCK
  111. echo ---
  112. set /p op3=
  113. if %op3% equ vodka goto buyvodka
  114. if %op3% equ exit goto win
  115. :buyvodka
  116. cls
  117. set /a money-=5
  118. set b3=Yes
  119. goto barop
  120. :win
  121. cls
  122. color 2a
  123. echo YOU WIN
  124. echo GAME 100% COMPLETE
  125. set comp1=Yes
  126. echo Type "return" to return to the menu.
  127. set /p ret=
  128. if %ret% equ return goto menu
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement