Advertisement
Guest User

Quick code of new game

a guest
Oct 11th, 2017
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 8.96 KB | None | 0 0
  1. @echo off
  2. cls
  3. cd directoryForscreed
  4. title Forscreed
  5. color 07
  6. goto premenu
  7.  
  8. :premenu
  9. cls
  10. echo.
  11. type premenupicture.txt
  12. echo.
  13. set /p pmselection=Please type in your choice number:
  14. if %pmselection% == 1 goto newgame
  15. if %pmselection% == 2 goto loadgame
  16. if %pmselection% == 3 goto credits
  17. goto premenu
  18.  
  19. :newgame
  20. cls
  21. set key=0
  22. set chest=0
  23. set health=100
  24. set level=0
  25. set rank=0
  26. set gold=0
  27. set playwon=0
  28. set playloss=0
  29. set enwon=0
  30. set enloss=0
  31. set atk=1
  32. set def=1
  33. set int=1
  34. set vit=1
  35. set dice=0
  36. set prestige=0
  37. cls
  38. goto prologue
  39.  
  40. :prologue
  41. cls
  42. echo Wake up..
  43. ping localhost -n 2>nul
  44. cls
  45. echo Wake up!
  46. ping localhost -n 2>nul
  47. cls
  48. echo The sea is glimmering.. A broken boat seems to have
  49. echo crashed against a huge wooden rod. A spiritual tomb of
  50. echo some sort! You remember now. The Queen of Walkers
  51. echo sent you on a mission to save the kingdom by finding
  52. echo an artifact on the other side of the world, but you faced
  53. echo a storm and crashed into this wooden tomb.
  54. echo.
  55. echo Night is falling quick, what will you do?
  56. echo 1. Go to the boat.
  57. echo 2. Scavenge for resources.
  58. echo 3. Look around that cave nearby, looks fishy.
  59. echo 4. I already did all of these.
  60. set /p choice1=
  61. if %choice1% == 1 goto prologueboat
  62. if %choice1% == 2 goto scavengeprologue
  63. if %choice1% == 3 goto caveprologue
  64. if %choice1% == 4 goto tutorialfinish1
  65. goto prologue
  66.  
  67. :prologueboat
  68. cls
  69. echo You walk to the boat. It's broken at the side, so it can't be used.
  70. echo The material is also weak. It's been thrashed by heavy waves and can't
  71. echo sail. Where do you search on the boat?
  72. echo 1. The deck
  73. echo 2. The captain's cabin
  74. echo 3. The mast
  75. echo 4. Get off boat
  76. set /p choice2=
  77. if %choice2% == 1 goto prologuedeck
  78. if %choice2% == 2 goto prologuecaptaincabin
  79. if %choice2% == 3 goto prologuemast
  80. if %choice2% == 4 goto prologue
  81. goto prologueboat
  82.  
  83. :prologuedeck
  84. cls
  85. echo The deck is empty, except for a satchel. You reach inside
  86. echo and find a Rusty Pistol and equip it.
  87. echo You walk out off the deck.
  88. pause
  89. goto prologueboat2
  90.  
  91. :prologueboat2
  92. cls
  93. echo You walk to the boat. It's broken at the side, so it can't be used.
  94. echo The material is also weak. It's been thrashed by heavy waves and can't
  95. echo sail. Where do you search on the boat?
  96. echo 1. The deck
  97. echo 2. The captain's cabin
  98. echo 3. The mast
  99. echo 4. Get off boat
  100. set /p choice3=
  101. if %choice3% == 1 goto prologuedeck2
  102. if %choice3% == 2 goto prologuecaptaincabin
  103. if %choice3% == 3 goto prologuemast
  104. if %choice3% == 4 goto prologue
  105. goto prologueboat2
  106.  
  107. :prologuedeck2
  108. cls
  109. echo Nothing here!
  110. pause
  111. goto prologueboat2
  112.  
  113. :prologuecaptaincabin
  114. cls
  115. echo The captain's cabin is tiny. Cramped up, you walk
  116. echo into the room. There is a bag of gold, a magazine for
  117. echo a pistol, and an old pair of boots.
  118. echo You walk out of the captain's cabin.
  119. pause
  120. goto prologueboat3
  121.  
  122. :prologueboat3
  123. cls
  124. echo You walk to the boat. It's broken at the side, so it can't be used.
  125. echo The material is also weak. It's been thrashed by heavy waves and can't
  126. echo sail. Where do you search on the boat?
  127. echo 1. The deck
  128. echo 2. The captain's cabin
  129. echo 3. The mast
  130. echo 4. Get off boat
  131. set /p choice4=
  132. if %choice4% == 1 goto prologuedeck2
  133. if %choice4% == 2 goto prologuecaptaincabin2
  134. if %choice4% == 3 goto prologuemast
  135. if %choice4% == 4 goto prologue
  136. goto prologueboat3
  137.  
  138. :prologuecaptaincabin2
  139. cls
  140. echo Nothing here!
  141. pause
  142. goto prologueboat3
  143.  
  144. :prologuemast
  145. cls
  146. echo You climb up the mast.
  147. echo Nothing here! You can use the ropes though,
  148. echo so you take it off.
  149. pause
  150. goto prologueboat4
  151.  
  152. :prologueboat4
  153. cls
  154. echo You walk to the boat. It's broken at the side, so it can't be used.
  155. echo The material is also weak. It's been thrashed by heavy waves and can't
  156. echo sail. Where do you search on the boat?
  157. echo 1. The deck
  158. echo 2. The captain's cabin
  159. echo 3. The mast
  160. echo 4. Get off boat
  161. set /p choice5=
  162. if %choice5% == 1 goto prologuedeck2
  163. if %choice5% == 2 goto prologuecaptaincabin2
  164. if %choice5% == 3 goto prologuemast2
  165. if %choice5% == 4 goto prologue
  166. goto prologueboat4
  167.  
  168. :scavengeprologue
  169. cls
  170. echo A dice appeared!
  171. echo What do you do with it?
  172. echo Shrugging, you put it in your pocket.
  173. echo (You can't scavenge anymore after this until you finish the tutorial!)
  174. set dice = %dice% + 1
  175. pause
  176. goto prologue2
  177.  
  178. :prologue2
  179. cls
  180. echo The sea is glimmering.. A broken boat seems to have
  181. echo crashed against a huge wooden rod. A spiritual tomb of
  182. echo some sort! You remember now. The Queen of Walkers
  183. echo sent you on a mission to save the kingdom by finding
  184. echo an artifact on the other side of the world, but you faced
  185. echo a storm and crashed into this wooden tomb.
  186. echo.
  187. echo Night is falling quick, what will you do?
  188. echo 1. Go to the boat.
  189. echo 2. Scavenge for resources.
  190. echo 3. Look around that cave nearby, looks fishy.
  191. echo 4. I did all this already.
  192. set /p choice6=
  193. if %choice6% == 1 goto prologueboat
  194. if %choice6% == 2 goto scavengeprologue2
  195. if %choice6% == 3 goto caveprologue
  196. if %choice6% == 4 goto tutorialfinish1
  197. goto prologue2
  198.  
  199. :scavengeprologue2
  200. cls
  201. echo Can't scavenge in the tutorial!
  202. echo Complete the tutorial first, then you can
  203. echo scavenge again.
  204. pause
  205. goto prologue2
  206.  
  207. :caveprologue
  208. cls
  209. echo You walk to the cave and find a warm fire lit up.
  210. echo How was it lit? You don't know. You quickly scramble to near
  211. echo the fire for warmth, satisfied.
  212. pause
  213. goto prologue
  214.  
  215. :tutorialfinish1
  216. cls
  217. echo You pull out what you found from your pockets.
  218. echo A rusty gun, a magazine for the gun, and a dice.
  219. echo I wonder what the dice does?
  220. pause
  221. cls
  222. echo The dice rolls in your hand, and you accidentally drop it.
  223. echo It glows golden!
  224. pause
  225. cls
  226. ping localhost -n 1 >nul
  227. type dice.txt
  228. echo.
  229. echo Rolling...
  230. PING localhost -n 2 >NUL
  231. set /a roll=(%random% %% 7) + 1
  232. echo You landed a %roll%!
  233. echo This %roll% is based upon a 7-sided die.
  234. pause
  235. cls
  236. echo Your objective is to build up a boat to go find the
  237. echo artifacts which end the game. The game is frequently
  238. echo updated, so check on the website for more quests and
  239. echo islands, plus new artifacts.
  240. echo The main playing style is fighting, equipping, trading,
  241. echo buying, leveling, and surviving as best as you can.
  242. pause
  243. cls
  244. type atkmenusample.txt
  245. echo This is what you'll get upon questing or fighting in the woods!
  246. echo Monsters drop food, which is what you need to survive. You lose
  247. echo health every time do you a task, an estimated 0.712 health taken.
  248. echo You can regain the health with food.
  249. echo To fight, you will normally type in 1 and attack. The golden dice will
  250. echo do everything for you! The formula consists of your strength, weapons,
  251. echo and the dice rolled.
  252. pause
  253. cls
  254. echo Then, the enemy takes his turn to attack! The computer
  255. echo will calculate all of this for you, and deal in the damage.
  256. echo Press 2 to use a health potion, and press 3 to your gold.
  257. echo If you're feeling it, you can also pass your turn, allowing the enemy to go.
  258. echo Other that fighting, the game is really mainly about a mystery
  259. echo storyline, which often requires equipment, gold, and equipment from
  260. echo quests. You can level up tools this way too.
  261. echo One of the special things about Forscreed is that there are no "different"
  262. echo swords. It simply levels up your swords to deal more damage.
  263. pause
  264. cls
  265. echo Let's give attacking a try!
  266. echo Travel to the main menu:
  267. pause
  268. cls
  269. goto mainmenututorial
  270.  
  271. :mainmenututorial
  272. cls
  273. echo Here we are, at the tutorial.
  274. echo When this tutorial ends, it should look a bit like this:
  275. echo.
  276. type mainmenuforscreed.txt
  277. echo.
  278. echo Above is the main menu. You're going to want to
  279. echo attack, so let's hit 1.
  280. set /p choice7=
  281. if %choice7% == 1 goto foresttutorial else goto invalidmainmenututorial1
  282.  
  283. :invalidmainmenututorial1
  284. cls
  285. echo Invalid answer. You can try the other options soon,
  286. echo for now just press 1.
  287. pause
  288. goto mainmenututorial
  289.  
  290. :foresttutorial
  291. cls
  292. echo.
  293. echo   __________________________
  294. echo  |                          |
  295. echo  | An enemy appeared!       |
  296. echo  | Enemy health: %enhealth% |
  297. echo  | Your health: %yourhealth%|
  298. echo  |                          |
  299. echo  | 1. ATK    2. USE POT     |
  300. echo  | 3. GOLD   4. PASS        |
  301. echo  | _________________________|
  302. echo.
  303. echo Here appears an attack screen!
  304. echo Quick, press 1 and enter!
  305. set /p choice8
  306. if %choice8% == 1 goto atkforesttutorial1 else goto invalidforesttutorial1
  307.  
  308. :invalidforesttutorial1
  309. cls
  310. echo Invalid answer. You can try the other options soon,
  311. echo for now just press 1.
  312. pause
  313. goto foresttutorial
  314.  
  315. :atkforesttutorial1
  316. set /a roll=(%random% %% 7) + 1
  317. set enhealth = %enhealth% - %roll%
  318. echo You attacked the enemy!
  319. echo.
  320. echo   __________________________
  321. echo  |                          |
  322. echo  | An enemy appeared!       |
  323. echo  | Enemy health: %enhealth% |
  324. echo  | Your health: %yourhealth%|
  325. echo  |                          |
  326. echo  | 1. ATK    2. USE POT     |
  327. echo  | 3. GOLD   4. PASS        |
  328. echo  | _________________________|
  329. echo.
  330. pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement