Skip to content

Instantly share code, notes, and snippets.

@valeIT
Created January 12, 2018 20:57
Show Gist options
  • Save valeIT/4ef680a340e098686d5dbb1f075d38f9 to your computer and use it in GitHub Desktop.
Save valeIT/4ef680a340e098686d5dbb1f075d38f9 to your computer and use it in GitHub Desktop.
My first and, quite frankly, rubbish attempt at an RPG.
@echo off
title RPG
/min
color 0a
:Values
cls
set health=500
set dmg=15
set coins=50
set kills=0
set xp=0
set lv=0
set ForgeShards=0
set woodsword=0
set ironsword=0
set steelsword=0
set goldsword=0
set darksword=0
set manastaff=0
set ghoststaff=0
set magicpike=0
set firecaster=0
set implosionsword=0
set InfusedCsword=0
set StarHammer=0
goto Name
:Name
cls
set /p name=What is your name:
if %name%==%name% goto Intro
:Intro
cls
echo @@@@@@@@@@@@@
echo @@@@...........@@@@
echo @@....000000000....@@
echo =======================
echo - RPG -
echo =======================
echo @@....000000000....@@
echo @@@@...........@@@@
echo @@@@@@@@@@@@@
pause>nul
goto Main
:Main
set bunnyhp=100
set ravenhp=250
set elfhp=750
set livingrockhp=1300
set fireycorehp=1825
set boss1hp=2000
set dragonhp=2300
cls
echo ------------------------------
echo Welcome to RPG
echo ------------------------------
echo CHAPTER 1 Health=%health%
echo 1=Southern hills Damage=%dmg%
echo 2=Southern cliff Coins=%coins%
echo 3=Grimey forest Kills=%kills%
echo 4=Volcano EXP=%xp%/10
echo 5=Top of Volcano Level=%lv%
echo 6=BOSS 1 Forge Shards=%ForgeShards%
echo 7=The western entrance
echo 8=Echo cavern
echo 9=Hell Land
echo 10=BOSS 2
echo.
echo PLACES
echo 11=Basic shop
echo 12=Advanced shop
echo 13=Legend shop
echo 14=Tool shop
echo 15=Healing center
echo 16=Exchange
echo 17=Forge
echo.
echo EXTRAS
echo 96=Cheat code
echo 97=Inventory
echo 98=Instructions
echo 99=Exit
echo.
echo n=Page 2
echo.
set /p answer=What would you like to do?
if %answer%==1 goto 1
if %answer%==2 goto 2
if %answer%==3 goto 3
if %answer%==4 goto 4
if %answer%==5 goto 5
if %answer%==6 goto 6
if %answer%==7 goto 7
if %answer%==8 goto 8
if %answer%==9 goto 9
if %answer%==10 goto 10
if %answer%==11 goto Basicshop
if %answer%==12 goto Advancedshop
if %answer%==13 goto Legendshop
if %answer%==14 goto Toolshop
if %answer%==15 goto Healingcenter
if %answer%==16 goto Exchange
if %answer%==17 goto Forge
if %answer%==96 goto Codes
if %answer%==97 goto Inventory
if %answer%==98 goto Instructions
if %answer%==99 goto Exit
if %answer%==n goto Main2
:Main2
cls
echo ------------------------------
echo Welcome to RPG
echo ------------------------------
echo CHAPTER 2 Health=%health%
echo 11=Jungle tombs Damage=%dmg%
echo 12=Forbidden shrine Coins=%coins%
echo 13=BOSS 3 Kills=%kills%
echo 14=Dead castle Exp=%xp%/10
echo 15=Palace core Level=%lv%
echo 16=BOSS 4 Forge Shards=%ForgeShards%
echo 17=Northen cliffs
echo 18=MINIGAME 1
echo 19=Desert
echo 20=The cold forest
echo.
echo b=Page 1
echo.
set /p answer=What would you like to do?
if %answer%==b goto Main
if %answer%==11 goto 11
if %answer%==11 goto 12
if %answer%==11 goto 13
if %answer%==11 goto 14
if %answer%==11 goto 15
if %answer%==11 goto 16
if %answer%==11 goto 17
if %answer%==11 goto 18
if %answer%==11 goto 19
if %answer%==11 goto 20
:Exit
cls
echo Thanks for playing!
pause>nul
exit
:Instructions
cls
echo Type the option of your desired choise and see the outcome.
echo Type 'exit' to exit a shop
echo There are 10 rounds in each level (except lv1 which is 7) and if you do not complete the level by then you will die.
pause>nul
goto Main
:Inventory
cls
echo WEAPONS
echo =========
echo Wooden sword=%woodsword%
echo Iron sword=%ironsword%
echo Steel sword=%steelsword%
echo Gold sword=%goldsword%
echo Dark sword=%darksword%
echo Mana staff=%manastaff%
echo Ghost staff=%ghoststaff%
echo Magic pike=%magicpike%
echo Fire caster=%firecaster%
echo Implosion sword=%implosionsword%
echo Infused Crystal Sword=%InfusedCsword%
echo Star Hammer=%StarHammer%
echo.
echo STATISTICS
echo ============
echo Health=%health%
echo Damage=%dmg%
echo Coins=%coins%
echo Forge Shards=%ForgeShards%
echo Kills=%kills%
echo EXP=%xp%
echo Level=%lv%
pause>nul
goto Main
:Codes
cls
echo Type 'exit' to exit.
set /p answer=Enter a cheat code:
if %answer%==7777 goto cheat777
if %answer%==exit goto Main
else if goto wrong
:wrong
cls
echo This is not a valid cheat code!
pause>nul
goto Main
:cheat777
set /a health=health +50000
set /a dmg=dmg +10000
set /a coins=coins +99999
set /a lv=lv +100
set /a ForgeShards=ForgeShards +5000
goto Main
:Healingcenter
cls
set /a health=500
echo Alexa: All patched up %name%!
pause>nul
goto Main
:Exchange
cls
echo 1=1000 coins to get 1 DMG
echo 2=1 DMG to get 1000 coins
set /p answer=Input:
if %answer%==1 set /a coins=coins -1000 & set /a dmg=dmg +10 && goto Main
if %answer%==2 set /a dmg=dmg -1 & set /a coins=coins +1000 && goto Main
if %answer%==exit goto Main
goto Main
:Forge
cls
echo Jorge: Welcome to me forge, %name%.
echo.
echo You have %ForgeShards% Forge Shards
echo.
echo i=Information
echo.
echo 1=Infused Crystal sword (25 FS, 26 DMG)
echo 2=Star Hammer (50 FS, 53 DMG)
set /p answer=What would you like to do?
if %answer%==exit goto Main
if %answer%==i goto ForgeInfo
if %answer%==1 goto bIFCS
if %answer%==2 goto bSTHM
:ForgeInfo
cls
echo After defeating an enemy, you get a forge shard.
echo Forge shards (or FS) can be used to forge weapons.
pause>nul
goto Forge
:bIFCS
set /a InfusedCsword=InfusedCsword +1
set /a dmg=dmg +26
set /a ForgeShards=ForgeShards -25
goto Main
:bSTHM
set /a StarHammer=StarHammer +1
set /a dmg=dmg +53
set /a ForgeShards=ForgeShards -50
goto Main
:Basicshop
cls
echo Borris: Welcome to my shop...friend.
echo.
echo Coins:%coins%
echo.
echo 1=Wooden sword (100 coins,2 DMG)
echo 2=Iron sword (250 coins,3 DMG)
echo 3=Steel sword (500 coins,4 DMG)
set /p answer=What would you like to buy?
if %answer%==1 goto bWDSD
if %answer%==2 goto bIRNS
if %answer%==3 goto bSLSD
if %answer%==exit goto Main
:bWDSD
cls
set /a woodsword=woodsword +1
set /a dmg=dmg +2
set /a coins=coins -100
goto Main
:bIRNS
cls
set /a ironsword=ironsword +1
set /a dmg=dmg +3
set /a coins=coins -250
goto Main
:bSLSD
cls
set /a steelsword=steelsword +1
set /a dmg=dmg +4
set /a coins=coins -500
goto Main
:Advancedshop
cls
echo Mary: Hello %name%! What would you like dear?
echo.
echo Coins:%Coins%
echo.
echo 1=Gold Sword (750 coins,5 DMG)
echo 2=Dark Sword (1001 coins,7 DMG)
echo 3=Mana Staff (1290 coins,9 DMG)
set /p answer=What would you like to buy?
if %answer%==exit goto Main
if %answer%==1 goto bGDSD
if %answer%==2 goto bDKSD
if %answer%==3 goto bMAST
:bGDSD
set /a goldsword=goldsword +1
set /a dmg=dmg +5
set /a coins=coins -750
goto Main
:bDKSD
set /a darksword=darksword +1
set /a dmg=dmg +7
set /a coins=coins -1001
goto Main
:bMAST
set /a manastaff=manastaff +1
set /a dmg=dmg +9
set /a coins=coins -750
goto Main
:Flee
cls
echo You got away safely!
pause>nul
goto Main
:winbunny
cls
echo You beat the Cursed Bunny
echo You get: 75 coins, 1 EXP, 1 Forge Shard
set /a coins=coins +75
set /a kills=kills +1
set /a xp=xp +1
set /a ForgeShards=ForgeShards +1
if %xp%==10 set /a lv=lv +1 & set xp=0
pause>nul
goto Main
:dead
cls
echo You died!
echo you lose 25 percent of your coins
set /a loscoins=coins / 4
set /a coins=coins -loscoins
set health=150
pause>nul
goto Main
:1
cls
echo ------------------
echo The Southern Hills
echo ------------------
echo Cursed Bunny
echo It has %bunnyhp% health and 12 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a bunnyhp=bunnyhp -%dmg% & set /a health=health -12
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %bunnyhp% LEQ 0 goto winbunny
if %health% LEQ 0 goto dead
else if %bunnyhp% GEQ 1 goto 1p2
:1p2
cls
echo ------------------
echo The Southern Hills
echo ------------------
echo Cursed Bunny
echo It has %bunnyhp% health and 12 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a bunnyhp=bunnyhp -%dmg% & set /a health=health -12
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %bunnyhp% LEQ 0 goto winbunny
if %health% LEQ 0 goto dead
else if %bunnyhp% GEQ 1 goto 1p3
:1p3
cls
echo ------------------
echo The Southern Hills
echo ------------------
echo Cursed Bunny
echo It has %bunnyhp% health and 12 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a bunnyhp=bunnyhp -%dmg% & set /a health=health -12
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %bunnyhp% LEQ 0 goto winbunny
if %health% LEQ 0 goto dead
else if %bunnyhp% GEQ 1 goto 1p4
:1p4
cls
echo ------------------
echo The Southern Hills
echo ------------------
echo Cursed Bunny
echo It has %bunnyhp% health and 12 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a bunnyhp=bunnyhp -%dmg% & set /a health=health -12
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %bunnyhp% LEQ 0 goto winbunny
if %health% LEQ 0 goto dead
else if %bunnyhp% GEQ 1 goto 1p5
:1p5
cls
echo ------------------
echo The Southern Hills
echo ------------------
echo Cursed Bunny
echo It has %bunnyhp% health and 12 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a bunnyhp=bunnyhp -%dmg% & set /a health=health -12
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %bunnyhp% LEQ 0 goto winbunny
if %health% LEQ 0 goto dead
else if %bunnyhp% GEQ 1 goto 1p6
:1p6
cls
echo ------------------
echo The Southern Hills
echo ------------------
echo Cursed Bunny
echo It has %bunnyhp% health and 12 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a bunnyhp=bunnyhp -%dmg% & set /a health=health -12
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %bunnyhp% LEQ 0 goto winbunny
if %health% LEQ 0 goto dead
else if %bunnyhp% GEQ 1 goto 1p7
:1p7
cls
echo ------------------
echo The Southern Hills
echo ------------------
echo Cursed Bunny
echo It has %bunnyhp% health and 12 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a bunnyhp=bunnyhp -%dmg% & set /a health=health -12
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %bunnyhp% LEQ 0 goto winbunny
if %health% LEQ 0 goto dead
else if %bunnyhp% GEQ 1 goto dead
goto dead
:winraven
cls
echo You beat the Posessed Raven
echo You get: 125 coins, 1 EXP, 1 Forge Shard
set /a coins=coins +125
set /a kills=kills +1
set /a xp=xp +1
set /a ForgeShards=ForgeShards +1
if %xp%==10 set /a lv=lv +1 & set xp=0
pause>nul
goto Main
:2
cls
echo ------------------
echo The Southern Cliff
echo ------------------
echo Posessed Raven
echo It has %ravenhp% health and 19 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a ravenhp=ravenhp -%dmg% & set /a health=health -19
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %ravenhp% LEQ 0 goto winraven
if %health% LEQ 0 goto dead
else if %ravenhp% GEQ 1 goto 2p2
:2p2
cls
echo ------------------
echo The Southern Cliff
echo ------------------
echo Posessed Raven
echo It has %ravenhp% health and 19 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a ravenhp=ravenhp -%dmg% & set /a health=health -19
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %ravenhp% LEQ 0 goto winraven
if %health% LEQ 0 goto dead
else if %ravenhp% GEQ 1 goto 2p3
:2p3
cls
echo ------------------
echo The Southern Cliff
echo ------------------
echo Posessed Raven
echo It has %ravenhp% health and 19 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a ravenhp=ravenhp -%dmg% & set /a health=health -19
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %ravenhp% LEQ 0 goto winraven
if %health% LEQ 0 goto dead
else if %ravenhp% GEQ 1 goto 2p4
:2p4
cls
echo ------------------
echo The Southern Cliff
echo ------------------
echo Posessed Raven
echo It has %ravenhp% health and 19 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a ravenhp=ravenhp -%dmg% & set /a health=health -19
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %ravenhp% LEQ 0 goto winraven
if %health% LEQ 0 goto dead
else if %ravenhp% GEQ 1 goto 2p5
:2p5
cls
echo ------------------
echo The Southern Cliff
echo ------------------
echo Posessed Raven
echo It has %ravenhp% health and 19 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a ravenhp=ravenhp -%dmg% & set /a health=health -19
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %ravenhp% LEQ 0 goto winraven
if %health% LEQ 0 goto dead
else if %ravenhp% GEQ 1 goto 2p6
:2p6
cls
echo ------------------
echo The Southern Cliff
echo ------------------
echo Posessed Raven
echo It has %ravenhp% health and 19 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a ravenhp=ravenhp -%dmg% & set /a health=health -19
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %ravenhp% LEQ 0 goto winraven
if %health% LEQ 0 goto dead
else if %ravenhp% GEQ 1 goto 2p7
:2p7
cls
echo ------------------
echo The Southern Cliff
echo ------------------
echo Posessed Raven
echo It has %ravenhp% health and 19 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a ravenhp=ravenhp -%dmg% & set /a health=health -19
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %ravenhp% LEQ 0 goto winraven
if %health% LEQ 0 goto dead
else if %ravenhp% GEQ 1 goto 2p8
:2p8
cls
echo ------------------
echo The Southern Cliff
echo ------------------
echo Posessed Raven
echo It has %ravenhp% health and 19 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a ravenhp=ravenhp -%dmg% & set /a health=health -19
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %ravenhp% LEQ 0 goto winraven
if %health% LEQ 0 goto dead
else if %ravenhp% GEQ 1 goto 2p9
:2p9
cls
echo ------------------
echo The Southern Cliff
echo ------------------
echo Posessed Raven
echo It has %ravenhp% health and 19 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a ravenhp=ravenhp -%dmg% & set /a health=health -19
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %ravenhp% LEQ 0 goto winraven
if %health% LEQ 0 goto dead
else if %ravenhp% GEQ 1 goto 2p10
:2p10
cls
echo ------------------
echo The Southern Cliff
echo ------------------
echo Posessed Raven
echo It has %ravenhp% health and 19 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a ravenhp=ravenhp -%dmg% & set /a health=health -19
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %ravenhp% LEQ 0 goto winraven
if %health% LEQ 0 goto dead
else if %ravenhp% GEQ 1 goto dead
goto dead
:winelf
cls
echo You beat the Dark Elf
echo You get: 200 coins, 1 EXP, 1 Forge Shard
set /a coins=coins +200
set /a kills=kills +1
set /a xp=xp +1
set /a ForgeShards=ForgeShards +1
if %xp%==10 set /a lv=lv +1 & set xp=0
pause>nul
goto Main
:3
cls
echo -------------
echo Grimey Forest
echo -------------
echo Dark Elf
echo It has %elfhp% health and 50 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a elfhp=elfhp -%dmg% & set /a health=health -50
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %elfhp% LEQ 0 goto winelf
if %health% LEQ 0 goto dead
else if %elfhp% GEQ 1 goto 3p2
:3p2
cls
echo -------------
echo Grimey Forest
echo -------------
echo Dark Elf
echo It has %elfhp% health and 50 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a elfhp=elfhp -%dmg% & set /a health=health -50
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %elfhp% LEQ 0 goto winelf
if %health% LEQ 0 goto dead
else if %elfhp% GEQ 1 goto 3p3
:3p3
cls
echo -------------
echo Grimey Forest
echo -------------
echo Dark Elf
echo It has %elfhp% health and 50 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a elfhp=elfhp -%dmg% & set /a health=health -50
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %elfhp% LEQ 0 goto winelf
if %health% LEQ 0 goto dead
else if %elfhp% GEQ 1 goto 3p4
:3p4
cls
echo -------------
echo Grimey Forest
echo -------------
echo Dark Elf
echo It has %elfhp% health and 50 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a elfhp=elfhp -%dmg% & set /a health=health -50
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %elfhp% LEQ 0 goto winelf
if %health% LEQ 0 goto dead
else if %elfhp% GEQ 1 goto 3p5
:3p5
cls
echo -------------
echo Grimey Forest
echo -------------
echo Dark Elf
echo It has %elfhp% health and 50 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a elfhp=elfhp -%dmg% & set /a health=health -50
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %elfhp% LEQ 0 goto winelf
if %health% LEQ 0 goto dead
else if %elfhp% GEQ 1 goto 3p6
:3p6
cls
echo -------------
echo Grimey Forest
echo -------------
echo Dark Elf
echo It has %elfhp% health and 50 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a elfhp=elfhp -%dmg% & set /a health=health -50
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %elfhp% LEQ 0 goto winelf
if %health% LEQ 0 goto dead
else if %elfhp% GEQ 1 goto 3p7
:3p7
cls
echo -------------
echo Grimey Forest
echo -------------
echo Dark Elf
echo It has %elfhp% health and 50 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a elfhp=elfhp -%dmg% & set /a health=health -50
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %elfhp% LEQ 0 goto winelf
if %health% LEQ 0 goto dead
else if %elfhp% GEQ 1 goto 3p8
:3p8
cls
echo -------------
echo Grimey Forest
echo -------------
echo Dark Elf
echo It has %elfhp% health and 50 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a elfhp=elfhp -%dmg% & set /a health=health -50
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %elfhp% LEQ 0 goto winelf
if %health% LEQ 0 goto dead
else if %elfhp% GEQ 1 goto 3p9
:3p9
cls
echo -------------
echo Grimey Forest
echo -------------
echo Dark Elf
echo It has %elfhp% health and 50 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a elfhp=elfhp -%dmg% & set /a health=health -50
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %elfhp% LEQ 0 goto winelf
if %health% LEQ 0 goto dead
else if %elfhp% GEQ 1 goto 3p10
:3p10
cls
echo -------------
echo Grimey Forest
echo -------------
echo Dark Elf
echo It has %elfhp% health and 50 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a elfhp=elfhp -%dmg% & set /a health=health -50
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %elfhp% LEQ 0 goto winelf
if %health% LEQ 0 goto dead
else if %elfhp% GEQ 1 goto dead
goto dead
:winlivingrock
cls
echo You beat the Living Rock
echo You get: 350 coins, 1 EXP, 1 Forge Shard
set /a coins=coins +350
set /a kills=kills +1
set /a xp=xp +1
set /a ForgeShards=ForgeShards +1
if %xp%==10 set /a lv=lv +1 & set xp=0
pause>nul
goto Main
:4
cls
echo -------------
echo Volcano
echo -------------
echo Living Rock
echo It has %livingrockhp% health and 72 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a livingrockhp=livingrockhp -%dmg% & set /a health=health -72
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %livingrockhp% LEQ 0 goto winlivingrock
if %health% LEQ 0 goto dead
else if %livingrockhp% GEQ 1 goto 4p2
:4p2
cls
echo -------------
echo Volcano
echo -------------
echo Living Rock
echo It has %livingrockhp% health and 72 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a livingrockhp=livingrockhp -%dmg% & set /a health=health -72
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %livingrockhp% LEQ 0 goto winlivingrock
if %health% LEQ 0 goto dead
else if %livingrockhp% GEQ 1 goto 4p3
:4p3
cls
echo -------------
echo Volcano
echo -------------
echo Living Rock
echo It has %livingrockhp% health and 72 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a livingrockhp=livingrockhp -%dmg% & set /a health=health -72
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %livingrockhp% LEQ 0 goto winlivingrock
if %health% LEQ 0 goto dead
else if %livingrockhp% GEQ 1 goto 4p4
:4p4
cls
echo -------------
echo Volcano
echo -------------
echo Living Rock
echo It has %livingrockhp% health and 72 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a livingrockhp=livingrockhp -%dmg% & set /a health=health -72
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %livingrockhp% LEQ 0 goto winlivingrock
if %health% LEQ 0 goto dead
else if %livingrockhp% GEQ 1 goto 4p5
:4p5
cls
echo -------------
echo Volcano
echo -------------
echo Living Rock
echo It has %livingrockhp% health and 72 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a livingrockhp=livingrockhp -%dmg% & set /a health=health -72
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %livingrockhp% LEQ 0 goto winlivingrock
if %health% LEQ 0 goto dead
else if %livingrockhp% GEQ 1 goto 4p6
:4p6
cls
echo -------------
echo Volcano
echo -------------
echo Living Rock
echo It has %livingrockhp% health and 72 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a livingrockhp=livingrockhp -%dmg% & set /a health=health -72
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %livingrockhp% LEQ 0 goto winlivingrock
if %health% LEQ 0 goto dead
else if %livingrockhp% GEQ 1 goto 4p7
:4p7
cls
echo -------------
echo Volcano
echo -------------
echo Living Rock
echo It has %livingrockhp% health and 72 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a livingrockhp=livingrockhp -%dmg% & set /a health=health -72
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %livingrockhp% LEQ 0 goto winlivingrock
if %health% LEQ 0 goto dead
else if %livingrockhp% GEQ 1 goto 4p8
:4p8
cls
echo -------------
echo Volcano
echo -------------
echo Living Rock
echo It has %livingrockhp% health and 72 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a livingrockhp=livingrockhp -%dmg% & set /a health=health -72
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %livingrockhp% LEQ 0 goto winlivingrock
if %health% LEQ 0 goto dead
else if %livingrockhp% GEQ 1 goto 4p9
:4p9
cls
echo -------------
echo Volcano
echo -------------
echo Living Rock
echo It has %livingrockhp% health and 72 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a livingrockhp=livingrockhp -%dmg% & set /a health=health -72
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %livingrockhp% LEQ 0 goto winlivingrock
if %health% LEQ 0 goto dead
else if %livingrockhp% GEQ 1 goto 4p10
:4p10
cls
echo -------------
echo Volcano
echo -------------
echo Living Rock
echo It has %livingrockhp% health and 72 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a livingrockhp=livingrockhp -%dmg% & set /a health=health -72
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %livingrockhp% LEQ 0 goto winlivingrock
if %health% LEQ 0 goto dead
else if %livingrockhp% GEQ 1 goto dead
goto dead
:winfireycore
cls
echo You beat the Firey Core
echo You get: 475 coins, 1 EXP, 1 Forge Shard
set /a coins=coins +475
set /a kills=kills +1
set /a xp=xp +1
set /a ForgeShards=ForgeShards +1
if %xp%==10 set /a lv=lv +1 & set xp=0
pause>nul
goto Main
:5
cls
echo --------------------
echo Top of Volcano
echo --------------------
echo Firey Core
echo It has %fireycorehp% health and 83 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a fireycorehp=fireycorehp -%dmg% & set /a health=health -83
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %fireycorehp% LEQ 0 goto winfireycore
if %health% LEQ 0 goto dead
else if %fireycorehp% GEQ 1 goto 5p2
:5p2
cls
echo --------------------
echo Top of Volcano
echo --------------------
echo Firey Core
echo It has %fireycorehp% health and 83 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a fireycorehp=fireycorehp -%dmg% & set /a health=health -83
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %fireycorehp% LEQ 0 goto winfireycore
if %health% LEQ 0 goto dead
else if %fireycorehp% GEQ 1 goto 5p3
:5p3
cls
echo --------------------
echo Top of Volcano
echo --------------------
echo Firey Core
echo It has %fireycorehp% health and 83 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a fireycorehp=fireycorehp -%dmg% & set /a health=health -83
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %fireycorehp% LEQ 0 goto winfireycore
if %health% LEQ 0 goto dead
else if %fireycorehp% GEQ 1 goto 5p4
:5p4
cls
echo --------------------
echo Top of Volcano
echo --------------------
echo Firey Core
echo It has %fireycorehp% health and 83 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a fireycorehp=fireycorehp -%dmg% & set /a health=health -83
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %fireycorehp% LEQ 0 goto winfireycore
if %health% LEQ 0 goto dead
else if %fireycorehp% GEQ 1 goto 5p5
:5p5
cls
echo --------------------
echo Top of Volcano
echo --------------------
echo Firey Core
echo It has %fireycorehp% health and 83 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a fireycorehp=fireycorehp -%dmg% & set /a health=health -83
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %fireycorehp% LEQ 0 goto winfireycore
if %health% LEQ 0 goto dead
else if %fireycorehp% GEQ 1 goto 5p6
:5p6
cls
echo --------------------
echo Top of Volcano
echo --------------------
echo Firey Core
echo It has %fireycorehp% health and 83 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a fireycorehp=fireycorehp -%dmg% & set /a health=health -83
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %fireycorehp% LEQ 0 goto winfireycore
if %health% LEQ 0 goto dead
else if %fireycorehp% GEQ 1 goto 5p7
:5p7
cls
echo --------------------
echo Top of Volcano
echo --------------------
echo Firey Core
echo It has %fireycorehp% health and 83 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a fireycorehp=fireycorehp -%dmg% & set /a health=health -83
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %fireycorehp% LEQ 0 goto winfireycore
if %health% LEQ 0 goto dead
else if %fireycorehp% GEQ 1 goto 5p8
:5p8
cls
echo --------------------
echo Top of Volcano
echo --------------------
echo Firey Core
echo It has %fireycorehp% health and 83 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a fireycorehp=fireycorehp -%dmg% & set /a health=health -83
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %fireycorehp% LEQ 0 goto winfireycore
if %health% LEQ 0 goto dead
else if %fireycorehp% GEQ 1 goto 5p9
:5p9
cls
echo --------------------
echo Top of Volcano
echo --------------------
echo Firey Core
echo It has %fireycorehp% health and 83 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a fireycorehp=fireycorehp -%dmg% & set /a health=health -83
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %fireycorehp% LEQ 0 goto winfireycore
if %health% LEQ 0 goto dead
else if %fireycorehp% GEQ 1 goto 5p10
:5p10
cls
echo --------------------
echo Top of Volcano
echo --------------------
echo Firey Core
echo It has %fireycorehp% health and 83 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a fireycorehp=fireycorehp -%dmg% & set /a health=health -83
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %fireycorehp% LEQ 0 goto winfireycore
if %health% LEQ 0 goto dead
else if %fireycorehp% GEQ 1 goto dead
goto dead
:winboss1
cls
echo You beat the First Boss
echo You get: 500 coins, 3 EXP, 2 Forge Shards, 1 dmg
set /a coins=coins +500
set /a kills=kills +1
set /a xp=xp +3
set /a ForgeShards=ForgeShards +2
set /a dmg=dmg +1
if %xp%==10 set /a lv=lv +1 & set xp=0
pause>nul
goto Main
:6
cls
echo %name%, you must die!
pause>nul
goto 6p1
:6p1
cls
echo ----------
echo Boss 1
echo ----------
echo The Lava
echo It has %boss1hp% health and 100 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a boss1hp=boss1hp -%dmg% & set /a health=health -100
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %boss1hp% LEQ 0 goto winboss1
if %health% LEQ 0 goto dead
else if %boss1hp% GEQ 1 goto 6p2
:6p2
cls
echo ----------
echo Boss 1
echo ----------
echo The Lava
echo It has %boss1hp% health and 100 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a boss1hp=boss1hp -%dmg% & set /a health=health -100
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %boss1hp% LEQ 0 goto winboss1
if %health% LEQ 0 goto dead
else if %boss1hp% GEQ 1 goto 6p3
:6p3
cls
echo ----------
echo Boss 1
echo ----------
echo The Lava
echo It has %boss1hp% health and 100 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a boss1hp=boss1hp -%dmg% & set /a health=health -100
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %boss1hp% LEQ 0 goto winboss1
if %health% LEQ 0 goto dead
else if %boss1hp% GEQ 1 goto 6p4
:6p4
cls
echo ----------
echo Boss 1
echo ----------
echo The Lava
echo It has %boss1hp% health and 100 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a boss1hp=boss1hp -%dmg% & set /a health=health -100
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %boss1hp% LEQ 0 goto winboss1
if %health% LEQ 0 goto dead
else if %boss1hp% GEQ 1 goto 6p5
:6p5
cls
echo ----------
echo Boss 1
echo ----------
echo The Lava
echo It has %boss1hp% health and 100 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a boss1hp=boss1hp -%dmg% & set /a health=health -100
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %boss1hp% LEQ 0 goto winboss1
if %health% LEQ 0 goto dead
else if %boss1hp% GEQ 1 goto 6p6
:6p6
cls
echo ----------
echo Boss 1
echo ----------
echo The Lava
echo It has %boss1hp% health and 100 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a boss1hp=boss1hp -%dmg% & set /a health=health -100
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %boss1hp% LEQ 0 goto winboss1
if %health% LEQ 0 goto dead
else if %boss1hp% GEQ 1 goto 6p7
:6p7
cls
echo ----------
echo Boss 1
echo ----------
echo The Lava
echo It has %boss1hp% health and 100 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a boss1hp=boss1hp -%dmg% & set /a health=health -100
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %boss1hp% LEQ 0 goto winboss1
if %health% LEQ 0 goto dead
else if %boss1hp% GEQ 1 goto 6p8
:6p8
cls
echo ----------
echo Boss 1
echo ----------
echo The Lava
echo It has %boss1hp% health and 100 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a boss1hp=boss1hp -%dmg% & set /a health=health -100
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %boss1hp% LEQ 0 goto winboss1
if %health% LEQ 0 goto dead
else if %boss1hp% GEQ 1 goto 6p9
:6p9
cls
echo ----------
echo Boss 1
echo ----------
echo The Lava
echo It has %boss1hp% health and 100 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a boss1hp=boss1hp -%dmg% & set /a health=health -100
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %boss1hp% LEQ 0 goto winboss1
if %health% LEQ 0 goto dead
else if %boss1hp% GEQ 1 goto 6p10
:6p10
cls
echo ----------
echo Boss 1
echo ----------
echo The Lava
echo It has %boss1hp% health and 300 dmg!
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a boss1hp=boss1hp -%dmg% & set /a health=health -300
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %boss1hp% LEQ 0 goto winboss1
if %health
% LEQ 0 goto dead
else if %boss1hp% GEQ 1 goto dead
:windragon
cls
echo You beat the Dragon
echo You get: 450 coins, 2 EXP, 1 Forge Shards
set /a coins=coins +450
set /a kills=kills +1
set /a xp=xp +2
set /a ForgeShards=ForgeShards +1
if %xp%==10 set /a lv=lv +1 & set xp=0
pause>nul
goto Main
:7
cls
echo ----------
echo Boss 1
echo ----------
echo The Lava
echo It has %dragonhp% health and 85 dmg
echo You have %health% health
echo.
echo what would you like to do?
echo 1=Attack (%dmg%dmg)
echo 2=Heal
echo 3=Flee
set /p answer=Input:
if %answer%==1 set /a dragonhp=dragonhp -%dmg% & set /a health=health -85
if %answer%==2 set health=500
if %answer%==3 goto Flee
if %dragonhp% LEQ 0 goto windragon
if %health% LEQ 0 goto dead
else if %boss1hp% GEQ 1 goto 7p2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment