Advertisement
GamingAsAGirl

eodomo's FULL code from his tutorial! You can edit it too!

Aug 27th, 2016
542
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. @echo off
  2. TITLE Adventure
  3.  
  4. :startup
  5. cls
  6. echo What would you like to do?
  7. echo.
  8. echo 1. Start the game!
  9. echo 2. Exit the game :(
  10. echo.
  11. set /p input0=Enter:
  12.  
  13. If %input0% equ 1 goto begin
  14. If %input0% equ 2 exit
  15. goto startup
  16.  
  17. :begin
  18. cls
  19. set hp=100
  20. set gold=0
  21. set dmg=1
  22. set armor=10
  23.  
  24. goto naming
  25.  
  26. :naming
  27. echo Hello...
  28. echo.
  29. echo What is your name?
  30. echo.
  31. set /p input1=Enter:
  32. goto welcome
  33.  
  34. :welcome
  35. cls
  36. echo Welcome to the game!
  37. echo Here are your stats right now...
  38. echo Health = %hp%
  39. echo Gold = %gold%
  40. echo Attack Power = %dmg%
  41. echo Armor Class = %armor%
  42. echo.
  43. echo Press any key to continue...
  44. pause >nul
  45. goto home
  46.  
  47. :home
  48. echo Hello, %name%!
  49. echo ------------
  50. echo Stats
  51. echo.
  52. echo Health = %hp% Gold = %gold%
  53. echo Attack Power = %dmg% Armor Class = %armor%
  54.  
  55. echo Press any key to continue...
  56. pause >nul
  57. Exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement