Advertisement
Guest User

BGO - MPGH

a guest
Aug 1st, 2014
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.89 KB | None | 0 0
  1. @echo off
  2. Title BGO Alpha v1.0
  3. setlocal enabledelayedexpansion
  4.  
  5. :start
  6. cls
  7. echo.
  8. echo ::::::::: :::::::: ::::::::
  9. echo :+: :+: :+: :+: :+: :+:
  10. echo +:+ +:+ +:+ +:+ +:+
  11. echo +#++:++#+ :#: +#+ +:+
  12. echo +#+ +#+ +#+ +#+# +#+ +#+
  13. echo #+# #+# #+# #+# #+# #+#
  14. echo ######### ######## ########
  15. echo.
  16. echo Welcome to Batch Game Offline.
  17. echo.
  18. echo [1] Start Game
  19. echo [2] Info
  20. echo [3] Exit
  21. choice /c 123 /n /m "Where would you like to go?"
  22. if errorlevel 3 goto exit
  23. if errorlevel 2 goto information
  24. if errorlevel 1 goto game.load
  25.  
  26. :exit
  27. cls
  28. echo Are you 100% sure you wish to exit? This will delete all character data.
  29. echo [1] I'm Positive.
  30. echo [2] Ehh I'm not too sure.
  31. echo.
  32. choice /c 12 /n
  33. if errorlevel 2 goto start
  34. if errorlevel 1 exit
  35.  
  36. :information
  37. cls
  38. echo Ah yes, looking for information I see?
  39. echo This game is the first ever game made by Raple.
  40. echo I am obviously the console, but you may call me Stan.
  41. echo This game was started some time around July of 2014.
  42. echo It was coded over time, and a lot of effort was pooled into this.
  43. echo Suggestions came from MPGH and from a few friends of Raple, Zach and Trollaux.
  44. echo Even though some of you may think this is easy, it really isn't.
  45. echo Batch is simple, but difficult to get it to do what you want.
  46. echo Batch is not nearly as flexible as languages like C++ and Lua.
  47. echo Anyways, I'll let you get back to playing.
  48. pause
  49. goto start
  50.  
  51. ::#################################BACKGROUND GAME INFO#################################
  52. :game.load
  53. cls
  54. echo Loading up basic character data.
  55. ping localhost -n 3 >nul
  56. set hp=10
  57. set maxhp=10
  58. set dmg=1
  59. set arm=0
  60. set lvl=1
  61. set money=0
  62. set currloc=Base Camp
  63. set carm=Peasant Clothing
  64. set cwep=Just your fists
  65. set expneed=10
  66. set exp=0
  67. set statpoints=0
  68. set str=0
  69. set tog=0
  70. set vit=0
  71. echo.
  72. echo Keep in mind: Closing or exiting the game will delete ALL
  73. echo character data. You have been warned.
  74. pause
  75. cls
  76. echo Please enter your Username.
  77. echo.
  78. set /p user=
  79. goto basecamp
  80.  
  81. :exit.warn.basecamp
  82. cls
  83. echo Wait! If you exit now all data will be deleted.
  84. echo Are you sure? Type exit if you are sure.
  85. echo.
  86. set /p c=
  87. if "!c!" == "exit" (
  88. goto start
  89. )
  90. goto basecamp
  91.  
  92. :premain
  93. cls
  94. echo You awaken to the sound of burning wood, and the scent of smoke.
  95. ping localhost -n 4 >nul
  96. echo This is unlike any normal day. "This is not right," you tell yourself.
  97. ping localhost -n 4 >nul
  98. echo You open your eyes to see your home in flames.
  99. ping localhost -n 4 >nul
  100. echo The only exit is the window to your right. Otherwise, you will be killed.
  101. ping localhost -n 4 >nul
  102. echo Jumping to your feet, only grabbing what you can, you jump.
  103. ping localhost -n 4 >nul
  104. echo As you land, the wind is knocked completely out of you.
  105. ping localhost -n 4 >nul
  106. echo You look around you to see that more than just your house is on fire.
  107. ping localhost -n 4 >nul
  108. echo The town is being attacked, by what you do not know.
  109. ping localhost -n 4 >nul
  110. echo Just as you are trying to comprehend what is happen, you are struck.
  111. ping localhost -n 4 >nul
  112. echo A falling piece of supporting wood has knocked onto your head.
  113. ping localhost -n 4 >nul
  114. echo After you come to moments later, a thought passes your mind.
  115. ping localhost -n 4 >nul
  116. echo "Mother is still inside."
  117. ping localhost -n 4 >nul
  118. echo Rushing back into the front door, you manage to hear the screams.
  119. ping localhost -n 4 >nul
  120. echo The screams of your Mother dying.
  121. ping localhost -n 4 >nul
  122. echo You search, but to no avail. The house begins to colapse around you.
  123. ping localhost -n 4 >nul
  124. echo You are hit, and hard. The debree falling around you has engulfed your body.
  125. ping localhost -n 4 >nul
  126. echo The last thing you remember is your house being entirely destroyed.
  127. ping localhost -n 4 >nul
  128. echo.
  129. echo Press any key to continue.
  130. pause >nul
  131. goto premain2
  132.  
  133. :premain2
  134. cls
  135. echo Your eyes blink open. The surroundings have changed, and you are alright.
  136. ping localhost -n 4 >nul
  137. echo Someone or something has gotten you out, and alive as well.
  138. ping localhost -n 4 >nul
  139. echo However, you are alone. You have nothing more than your wits,
  140. ping localhost -n 4 >nul
  141. echo your clothes, and your locket. The locket contains a picture of your mother.
  142. ping localhost -n 4 >nul
  143. echo Whoever saved you has left your belongings alone.
  144. ping localhost -n 4 >nul
  145. echo All you know now is you must know who has done this to your town.
  146. ping localhost -n 4 >nul
  147. echo Getting up and walking across the hill, you see the destruction.
  148. ping localhost -n 4 >nul
  149. echo Most of the building have burned down, all of the people are gone.
  150. ping localhost -n 4 >nul
  151. echo What is left, is not much.
  152. ping localhost -n 4 >nul
  153. echo Turning back, you notice you are in a small camp. Good for one person.
  154. ping localhost -n 4 >nul
  155. echo There is wood, a firepit, a fire starter, a tent, and a ready made bed.
  156. ping localhost -n 4 >nul
  157. echo "This seems like a base camp," you say to yourself.
  158. ping localhost -n 4 >nul
  159. echo After searching the bed, you find a small, unmarked map.
  160. ping localhost -n 4 >nul
  161. echo It seems whoever brought you here wants you to figure it out as well.
  162. ping localhost -n 4 >nul
  163. echo You prepare yourself, and get ready to traverse through this world.
  164. ping localhost -n 4 >nul
  165. echo You are ready to avenge your people.
  166. ping localhost -n 4 >nul
  167. echo.
  168. echo Press any key to continue.
  169. pause >nul
  170. goto basecamp
  171.  
  172.  
  173. ::#######################ALL CAMPS####################
  174. :basecamp
  175. cls
  176. echo Current location: %currloc%
  177. echo Name: %user%
  178. echo HP: %hp%
  179. echo DMG: !dmg! [+!str!]
  180. echo ARM: !arm! [+!tog!]
  181. echo $: %money%
  182. echo Level: %lvl%
  183. echo EXP: !exp! / !expneed!
  184. echo Weapon: %cwep%
  185. echo Armor: %carm%
  186. echo.
  187. echo You are at your small, premade base camp. Not much is here.
  188. echo.
  189. echo What would you like to do?
  190. echo [1] Go out into the forest.
  191. echo [2] Look at the map.
  192. echo [3] Sleep.
  193. echo [4] Check my inventory.
  194. echo [5] Exit to the menu.
  195. echo.
  196. set /p c=
  197. if "!c!" == "1" goto Forest.entry
  198. if "!c!" == "3" goto sleep.basecamp
  199. if "!c!" == "4" goto inventory.basecamp
  200. if "!c!" == "5" goto exit.warn.basecamp
  201.  
  202. :sleep.basecamp
  203. cls
  204. echo You lie down for a quick sleep.
  205. if !statpoints! GEQ 1 (
  206. goto spendpoints.basecamp
  207. )
  208. pause
  209. set hp=!maxhp!
  210. goto basecamp
  211.  
  212. :spendpoints.basecamp
  213. cls
  214. if "!statpoints!" == "0" (
  215. goto basecamp
  216. )
  217. echo It seems you have some stat points to spend!
  218. echo ==strength== =vita=lity= =toughness=
  219. echo =========== =========== ===========
  220. echo =====!str!===== =====!vit!===== =====!tog!=====
  221. echo =========== =========== ===========
  222. echo =========== =========== ===========
  223. echo.
  224. echo Available points: !statpoints!
  225. echo.
  226. echo [1] Increase strength
  227. echo [2] Increase vitality
  228. echo [3] Increase toughness
  229. set /p c=
  230. if "!c!" == "1" (
  231. set /a str+=1
  232. set /a statpoints-=1
  233. )
  234. if "!c!" == "2" (
  235. set /a vit+=1
  236. set /a statpoints-=1
  237. set /a maxhp+=5
  238. )
  239. if "!c!" == "3" (
  240. set /a tog+=1
  241. set /a statpoints-=1
  242. )
  243. goto spendpoints.basecamp
  244.  
  245.  
  246. :inventory.basecamp
  247. cls
  248. echo You open your storage up, and check out what you have.
  249. echo.
  250. echo Weapon: %cwep%
  251. echo Armor: %carm%
  252. echo.
  253. echo [1] Check Weapons
  254. echo [2] Check Armor
  255. echo [3] Check Magical Items
  256. echo [4] Check Misc.
  257. echo [5] Close Storage
  258. echo.
  259. set /p c=
  260. if "!c!" == "1" goto inv.wep.basecamp
  261. if "!c!" == "2" goto inv.arm.basecamp
  262. if "!c!" == "3" goto inv.mag.basecamp
  263. if "!c!" == "4" goto inv.misc.basecamp
  264. if "!c!" == "5" goto basecamp
  265.  
  266. :inv.wep.basecamp
  267. cls
  268. echo You check the weapons compartment of your storage.
  269. echo.
  270. echo Weapon: %cwep%
  271. echo.
  272. echo [1] Just your fists.
  273. if "!shortsword!" == "true" (
  274. echo [2] Short Sword
  275. )
  276. echo [B] Back to main storage
  277. echo.
  278. set /p c=
  279. if "!c!" == "1" (
  280. set cwep=Just your fists.
  281. )
  282. if "!c!" == "2" (
  283. if "!shortsword!" == "true" (
  284. set cwep=Short Sword
  285. )
  286. )
  287. if "!c!" == "b" (
  288. goto inventory.basecamp
  289. )
  290.  
  291. :inv.arm.basecamp
  292. cls
  293. echo You check the armor compartment of your storage.
  294. echo.
  295. echo Armor: %carm%
  296. echo.
  297. echo [1] Peasant Clothing
  298. if "!leatherarmor!" == "true" (
  299. echo [2] Leather Armor
  300. )
  301. echo [B] Back to main storage
  302. echo.
  303. set /p c=
  304. if "!c!" == "1" (
  305. set carm=Peasant Clothing
  306. )
  307. if "!c!" == "2" (
  308. if "!leatherarmor!" == "true" (
  309. set carm=Leather Armor
  310. )
  311. )
  312. if "!c!" == "b" (
  313. goto inventory.basecamp
  314. )
  315.  
  316. :inv.mag.basecamp
  317. cls
  318. echo You check the magical compartment of your storage.
  319. echo.
  320. if "!healthpotion!" GEQ 1 (
  321. echo [1] Health Potion x!healthpotion!
  322. )
  323. echo [B] Back to main storage
  324. echo.
  325. set /p c=
  326. if "!c!" == "1" (
  327. if "!healthpotion!" GEQ 1 (
  328. echo You drink a health potion.
  329. set /a hp+=10
  330. pause
  331. goto inv.mag.basecamp
  332. )
  333. )
  334. if "!c!" == "b" (
  335. goto inventory.basecamp
  336. )
  337.  
  338. :inv.misc.basecamp
  339. cls
  340. echo You check the misc. compartment of your storage.
  341. echo.
  342. echo [B] Back to main storage
  343. echo.
  344. set /p c=
  345. if "!c!" == "b" (
  346. goto inventory.basecamp
  347. )
  348.  
  349.  
  350.  
  351.  
  352.  
  353. ::############################MOB INDEX#########################
  354. :mob.index
  355. cls
  356. if "!mobname!" == "Snake Beast" (
  357. set mobhp=4
  358. set mobdmg=1
  359. goto forest.fight
  360. )
  361. if "!mobname!" == "Giant Rat" (
  362. set mobhp=2
  363. set mobdmg=1
  364. goto forest.fight
  365. )
  366. if "!mobname!" == "Goblin" (
  367. set mobhp=5
  368. set mobdmg=1
  369. goto forest.fight
  370. )
  371. if "!mobname!" == "Ent" (
  372. set mobhp=6
  373. set mobdmg=2
  374. goto forest.fight
  375. )
  376.  
  377.  
  378.  
  379.  
  380. ::#######################BASECAMP FOREST#################
  381. :Forest.entry
  382. if !exp! GEQ !expneed! goto forest.levelup
  383. cls
  384. ping localhost -n 1 >nul
  385. echo You make your way to the pine needle covered entryway.
  386. echo.
  387. echo What would you like to do?
  388. echo.autism
  389. echo [1] Go hunting.
  390. echo [2] Go back to camp.
  391. echo.
  392. set /p c=
  393. if "!c!" == "2" goto basecamp
  394. if "!c!" == "1" goto forest.mobroll
  395.  
  396. :forest.mobroll
  397. cls
  398. set /a forestmob=%random% %%100
  399. if !forestmob! GEQ 75 (
  400. set mobname=Snake Beast
  401. goto mob.index
  402. )
  403. if !forestmob! GEQ 50 (
  404. set mobname=Giant Rat
  405. goto mob.index
  406. )
  407. if !forestmob! GEQ 25 (6
  408. set mobname=Goblin
  409. goto mob.index
  410. )
  411. if !forestmob! GEQ 0 (
  412. set mobname=Ent
  413. goto mob.index
  414. )
  415.  
  416. :forest.fight
  417. cls
  418. echo You are fighting a %mobname%!
  419. echo.
  420. echo Their HP: %mobhp%
  421. echo Their DMG: %mobdmg%
  422. echo.
  423. echo Your HP: %hp%
  424. echo Your DMG: %dmg% [+!str!]
  425. echo.
  426. echo What will you do?
  427. echo.
  428. echo [1] Attack
  429. echo [2] Run
  430. echo.
  431. set /p c=
  432. if "!c!" == "1" goto forest.att
  433. if "!c!" == "2" goto forest.run
  434.  
  435. :forest.att
  436. set /a mobhp-="(!dmg!+!str!)"
  437. set /a hp-="((!mobdmg!-!arm!)-!tog!)"
  438. if !hp! GEQ !maxhp! (
  439. set /a hp="!maxhp!"
  440. )
  441. if !mobhp! LEQ 0 goto forest.victory
  442. goto forest.fight
  443.  
  444. :forest.victory
  445. cls
  446. echo You have triumphed over the !mobname!!
  447. echo.
  448. if "!mobname!" == "Snake Beast" (
  449. set /a moneygain=%random% %%15
  450. set /a money+="!moneygain!"
  451. set /a expgain=2
  452. set /a exp+="!expgain!"
  453. echo You recieve !moneygain! money!
  454. echo You recieve !expgain! EXP!
  455. pause
  456. goto Forest.entry
  457. )
  458. if "!mobname!" == "Giant Rat" (
  459. set /a moneygain=%random% %%10
  460. set /a money+="!moneygain!"
  461. set /a expgain=1
  462. set /a exp+="!expgain!"
  463. echo You recieve !moneygain! money!
  464. echo You recieve !expgain! EXP!
  465. pause
  466. goto Forest.entry
  467. )
  468. if "!mobname!" == "Ent" (
  469. set /a moneygain=%random% %%25
  470. set /a money+="!moneygain!"
  471. set /a expgain=4
  472. set /a exp+="!expgain!"
  473. echo You recieve !moneygain! money!
  474. echo You recieve !expgain! EXP!
  475. pause
  476. goto Forest.entry
  477. )
  478. if "!mobname!" == "Goblin" (
  479. set /a moneygain=%random% %%20
  480. set /a money+="!moneygain!"
  481. set /a expgain=3
  482. set /a exp+="!expgain!"
  483. echo You recieve !moneygain! money!
  484. echo You recieve !expgain! EXP!
  485. pause
  486. goto Forest.entry
  487. )
  488. goto Forest.entry
  489.  
  490. :forest.levelup
  491. cls
  492. echo Congratulations, you have leveled up.
  493. echo.
  494. set /a lvl+=1
  495. set exp=0
  496. set /a expneed+=%random% %%15
  497. set /a statpoints+=1
  498. echo You have been awarded a skill point.
  499. echo Spend it by sleeping.
  500. pause
  501. goto basecamp
  502.  
  503. ::#############################BASE CAMP MAP AREAS#############################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement