Monster game!
This is the game I made called "Monster attack", It is a rpg that features arrow key movement. If you want to play just click the Download link. (only for windows computers) You are free to make any changes to the game "if you know how to ".
Download
Monster Attack version 1.2
Characters: 22763
Lines: 1143
File size: 32KB
Download
Monster Attack version 1.2
Characters: 22763
Lines: 1143
File size: 32KB
Code:
@echo off
title MONSTER ATTACK!
setlocal enabledelayedexpansion
mode con cols=87 lines=87
set selected=1
set ONEclr=0e
set TWOclr=07
:new
set hp=100
set exp=0
set exptill=60
set gold=50
set lvl=1
set power=5
set powergain=3
set weappower=20
set pots=1
set armor=0
set en1hp=80
set en2hp=100
set M1=M
set M2=m
set M3=1
set M4=2
set M5=3
set M6=4
set M7=5
set M8=6
set M9=7
set M10=8
set M11=9
set M12=0
set M=12
::# Config load########################################
for /f "Delims=" %%n in (c.save) do (
set c=%%n
)
color %c%
::# MAIN/SETTINGS#######################################
:start
cls
echo MONSTERS ATTACK GAME
echo --------------------
echo 1.Start
echo 2.Config
echo 3.About
echo 4.Website
echo 5.Load
echo 6.save
echo 8.Exit
set /p $=Enter:
if %$% equ 1 goto main
if %$% equ 2 goto Config
if %$% equ 3 goto About
if %$% equ 4 goto web
if %$% equ 5 goto load
if %$% equ 6 goto save
if %$% equ 7 goto ins
if %$% equ 8 exit
goto start
:ins
cls
echo INSTUCTIONS
echo -----------
echo Arrow keys to move
echo Random numbers and M's are Monsters
echo Move over them to attack
echo "S" is a shop they sell idems
echo "ÛÛÛ" is your bed go in it to save
echo Kill all the monsters to win
pause
goto start
:load
cls
echo What game do you want to load?
echo.
set /p name=Enter:
for /f "Delims=" %%a in (%name%1.save) do (
set hp=%%a
)
for /f "Delims=" %%b in (%name%2.save) do (
set exp=%%b
)
for /f "Delims=" %%c in (%name%3.save) do (
set exptill=%%c
)
for /f "Delims=" %%d in (%name%4.save) do (
set gold=%%d
)
for /f "Delims=" %%d in (%name%5.save) do (
set lvl=%%d
)
for /f "Delims=" %%e in (%name%6.save) do (
set power=%%e
)
for /f "Delims=" %%f in (%name%7.save) do (
set powergain=%%f
)
for /f "Delims=" %%g in (%name%8.save) do (
set weappower=%%g
)
for /f "Delims=" %%i in (%name%9.save) do (
set pots=%%i
)
for /f "Delims=" %%j in (%name%10.save) do (
set armor=%%j
)
for /f "Delims=" %%k in (%name%c.save) do (
set %c%=%%k
)
for /f "Delims=" %%l in (%name%11.save) do (
set %M1%=%%l
)
for /f "Delims=" %%m in (%name%12.save) do (
set %M2%=%%m
)
for /f "Delims=" %%n in (%name%13.save) do (
set %M3%=%%n
)
for /f "Delims=" %%o in (%name%14.save) do (
set %M4%=%%o
)
for /f "Delims=" %%p in (%name%15.save) do (
set %M5%=%%p
)
for /f "Delims=" %%q in (%name%16.save) do (
set %M6%=%%q
)
for /f "Delims=" %%r in (%name%17.save) do (
set %M7%=%%r
)
for /f "Delims=" %%s in (%name%18.save) do (
set %M8%=%%s
)
for /f "Delims=" %%t in (%name%19.save) do (
set %M9%=%%t
)
for /f "Delims=" %%u in (%name%20.save) do (
set %M10%=%%u
)
for /f "Delims=" %%v in (%name%21.save) do (
set %M11%=%%v
)
for /f "Delims=" %%w in (%name%22.save) do (
set %M12%=%%w
)
for /f "Delims=" %%x in (%name%23.save) do (
set %M%=%%x
)
goto start
:save
cls
echo What do you want to save game as?
echo.
set /p name=Enter:
echo %hp% > %name%1.save
echo %exp% > %name%2.save
echo %exptill% > %name%3.save
echo %gold% > %name%4.save
echo %lvl% > %name%5.save
echo %power% > %name%6.save
echo %powergain% > %name%7.save
echo %weappower% > %name%8.save
echo %pots% > %name%9.save
echo %armor% > %name%10.save
echo %M1% > %name%11.save
echo %M2% > %name%12.save
echo %M3% > %name%13.save
echo %M4% > %name%14.save
echo %M5% > %name%15.save
echo %M6% > %name%16.save
echo %M7% > %name%17.save
echo %M8% > %name%18.save
echo %M9% > %name%19.save
echo %M10% > %name%20.save
echo %M11% > %name%21.save
echo %M12% > %name%22.save
echo %M% > %name%23.save
echo %c% > %name%c.save
goto main2
:web
start https://sites.google.com/site/jacoborthsprograms/?pli=1
goto start
:About
cls
echo MONSTERS ATTACK GAME
echo ------------------------
echo.
echo.
echo By---------------------------------------------------------------
echo Jacob Orth's Programs.
echo.
echo Website: https://sites.google.com/site/jacoborthsprograms/home
echo.
echo 2013 Jacob Orths Programs.
echo -----------------------------------------------------------------
echo.
echo.
echo -----------------------------------------------------------------
echo Ms-Dos Program
echo Runs in CMD.exe
echo -----------------------------------------------------------------
echo.
echo.
echo Tested in--------------------------------------------------------
echo Windows 8
echo.
echo C 2012 Microsoft Corporation. All rights reserved.
echo -----------------------------------------------------------------
echo.
echo.
pause >nul
goto start
:Config
cls
echo.
echo Configure
echo ---------
echo.
echo 0 = Black 8 = Gray
echo 1 = Blue 9 = Light Blue
echo 2 = Green A = Light Green
echo 3 = Aqua B = Light Aqua
echo 4 = Red C = Light Red
echo 5 = Purple D = Light Purple
echo 6 = Yellow E = Light Yellow
echo 7 = White F = Bright White
echo.
echo Default: 07
echo.
echo Set the background color and the foreground color.
echo The first letter/number is the background color,
echo the second is the foreground. Do not use spaces.
echo.
echo Type "BBB" to go back.
echo.
set /p c=Enter:
if /i "%c%" equ "BBB" goto Main
if /i "%c%" equ "bbb" goto Main
echo %c% > c.save
for /f "Delims=" %%1 in (c.save) do (
set c=%%1
)
color %c%
goto start
:levelup
cls
echo Congrats! LEVEL UP!
pause >nul
set /a lvl=%lvl% + 1
set /a exp=%exp% - %exptill%
set /a exptill=%exptill% + %exptill% * 66 / 100
set /a power=%power% + %powergain%
set /a powergain=%powergain% + 1
set hp=100
goto main2
:main
set pos_x=11
set pos_y=2
cls
:main2
if %exp% geq %exptill% goto levelup
if %M% == "0" goto WIN
set en1hp=80
set en2hp=100
echo.
echo.
set line[0]= ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
set line[1]= º.º...............ºS............................................º
set line[2]= º.º...............º.............................................º
set line[3]= º.º......ÛÛÛ......º.............................................º
set line[4]= º.º...............º........................%M10%....................º
set line[5]= º.º...............º.............................................º
set line[6]= º.ÈÍÍÍÍÍÍÍ_ÍÍÍÍÍÍͼ...........%M9%.................................º
set line[7]= º..................%M7%............................................º
set line[8]= º...........%M3%.............................%M11%.....................º
set line[9]= º......%M1%.........%M6%........%M12%.....................................º
set line[10]= º.......................%M8%.......................................º
set line[11]= º.......%M2%.......%M5%...............................................º
set line[12]= º...............%M4%...............................................º
set line[13]= ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
echo.
set pos_x=!pos_x!
set pos_y=!pos_y!
echo --------------------------------------------------------------------
echo Level %lvl% Experience %exp%/%exptill% Armor %armor%
echo Heath %hp%/100 Gold %gold% Potions %pots%
echo --------------------------------------------------------------------
:main_loop1
call :display1
call :move1
if %exp% geq %exptill% goto levelup
goto main_loop2
:display1
graphic.exe locate 0 0
graphic.exe hidecursor
echo.
set /a xAdd1=pos_x+1
for /l %%i in (0,1,13) do (
set line=!line[%%i]!
if %%i == %pos_y% (
set line=!line:~0,%pos_x%!@!line:~%xAdd1%!
)
set checkingline[%%i]=!line!
echo !line!
)
goto :eof
:move1
set prev_x=!pos_x!
set prev_y=!pos_y!
Kbd.exe
set label=%errorlevel%
set errorlevel=
goto %label%
if %errorlevel% equ 1 goto move1
:72
set /a pos_y-=1
goto check4wall1
:80
set /a pos_y+=1
goto check4wall1
:75
set /a pos_x-=1
goto check4wall1
:77
set /a pos_x+=1
goto check4wall1
:check4wall1
set /a chars=%pos_x%+1
set LineToCheck=!checkingline[%pos_y%]:~0,%chars%!
set moveToTile=!LineToCheck:~-1!
if !moveToTile! == ¼ (
set pos_x=!prev_x!
set pos_y=!prev_y!
)
if !moveToTile! == » (
set pos_x=!prev_x!
set pos_y=!prev_y!
)
if !moveToTile! == Í (
set pos_x=!prev_x!
set pos_y=!prev_y!
)
if !moveToTile! == É (
set pos_x=!prev_x!
set pos_y=!prev_y!
)
if !moveToTile! == È (
set pos_x=!prev_x!
set pos_y=!prev_y!
)
if !moveToTile! == º (
set pos_x=!prev_x!
set pos_y=!prev_y!
)
if !moveToTile! == Û (
set pos_x=!prev_x!
set pos_y=!prev_y!
)
if !moveToTile! == M (
set pos_x=!prev_x!
set pos_y=!prev_y!
goto fightgoblinM
)
if !moveToTile! == S (
set pos_x=!prev_x!
set pos_y=!prev_y!
goto shop
)
if !moveToTile! == Û (
set pos_x=!prev_x!
set pos_y=!prev_y!
goto save
)
if !moveToTile! == m (
set pos_x=!prev_x!
set pos_y=!prev_y!
goto fightgoblinm
)
if !moveToTile! == 1 (
set pos_x=!prev_x!
set pos_y=!prev_y!
goto fightgoblin1
)
if !moveToTile! == 2 (
set pos_x=!prev_x!
set pos_y=!prev_y!
goto fightgoblin2
)
if !moveToTile! == 3 (
set pos_x=!prev_x!
set pos_y=!prev_y!
goto fightgoblin3
)
if !moveToTile! == 4 (
set pos_x=!prev_x!
set pos_y=!prev_y!
goto fightgoblin4
)
if !moveToTile! == 5 (
set pos_x=!prev_x!
set pos_y=!prev_y!
goto fightgoblin5
)
if !moveToTile! == 6 (
set pos_x=!prev_x!
set pos_y=!prev_y!
goto fightgoblin6
)
if !moveToTile! == 7 (
set pos_x=!prev_x!
set pos_y=!prev_y!
goto fightgoblin7
)
if !moveToTile! == 8 (
set pos_x=!prev_x!
set pos_y=!prev_y!
goto fightgoblin8
)
if !moveToTile! == 9 (
set pos_x=!prev_x!
set pos_y=!prev_y!
goto fightgoblin9
)
if !moveToTile! == 0 (
set pos_x=!prev_x!
set pos_y=!prev_y!
goto fightgoblin0
)
goto main2
:shop
cls
echo Welcome to the shop %name%.
echo.
echo You have %gold% Gold
echo.
echo 1) 1 Potion $20
echo 2) 10 armor $30
echo 3) Weapon upgrade $60
echo 4) Diamond Sword! ! ! $10,000
echo 5) Go back
set /p input=Enter:
if "%input%" == "1" goto bypots
if "%input%" == "2" goto byarmor
if "%input%" == "3" goto byweapon
if "%input%" == "4" goto bysword
if "%input%" == "5" goto main2
goto main2
:bysword
cls
if %gold% leq 10000 goto No
set /a gold = %gold% -10000
set /a weappower = %weappower% + 99999999999999999
color 0a
cls
echo CONGRADULATIONS YOU BOUGHT A DIAMOND SWORD! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !
ping localhost -n 2 >nul
color 0b
cls
echo CONGRADULATIONS YOU BOUGHT A DIAMOND SWORD! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !
ping localhost -n 2 >nul
color 0c
cls
echo CONGRADULATIONS YOU BOUGHT A DIAMOND SWORD! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !
ping localhost -n 2 >nul
color 0d
cls
echo CONGRADULATIONS YOU BOUGHT A DIAMOND SWORD! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !
ping localhost -n 2 >nul
color 0e
cls
echo CONGRADULATIONS YOU BOUGHT A DIAMOND SWORD! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !
ping localhost -n 2 >nul
color 0f
cls
echo CONGRADULATIONS YOU BOUGHT A DIAMOND SWORD! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !
ping localhost -n 2 >nul
color 0a
cls
echo CONGRADULATIONS YOU BOUGHT A DIAMOND SWORD ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !
echo Plus 99999999999999999 weapon power ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !
ping localhost -n 9 >nul
echo YOU HACKED OR YOU ARE ADDICTED ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !
pause >nul
goto main2
:bypots
cls
if %gold% leq 20 goto No
set /a gold = %gold% -20
set /a pots = %pots% +1
echo You bought 1 potion.
pause >nul
goto main2
:byarmor
cls
if %gold% leq 30 goto No
set /a gold = %gold% -30
set /a armor = %armor% + 10
echo You bought 10 armor.
pause >nul
goto main2
:byweapon
cls
if %gold% leq 30 goto No
set /a gold = %gold% -60
set /a weappon = %weappower% + 20
echo You bought 20 armor.
goto main2
:No
echo Insignificant funds
pause >nul
goto shop
:fightgoblinM
cls
echo You have %hp% health
echo Goblin has %en1hp%
echo.
echo 1.Attack
echo 2.Drink potion
echo 3.RUN AWAY like a baby!
set /p input=Enter:
if %input% equ 1 goto attackgoblinM
if %input% equ 2 goto drinkpotgoblinM
if %input% equ 3 goto main2
goto fightgoblinM
:attackgoblinM
cls
set /a en1hp=%en1hp% - (%power% + %weappower%)
if %en1hp% leq 0 goto killgoblinM
set /a hp=%hp% - ( 7 - %armor% / 5 )
if %hp% leq 0 goto death
goto fightgoblinM
:drinkpotgoblinM
cls
if %pots% leq 0 (
echo You don't have any potions
pause >nul
goto fightgoblinM
)
set /a pots = %pots% -1
set /a hp = %hp% +50
goto fightgoblinM
:killgoblinM
cls
echo YOU KILLED HIM!
echo you gained 7 exp and 6 gold
set /a exp=%exp% + 7
set /a gold=%gold% + 40
set M1=.
set M-=%M%-1
pause >nul
goto main2
:fightgoblinm
cls
echo You have %hp% health
echo Goblin has %en2hp%
echo.
echo 1.Attack
echo 2.Drink potion
echo 3.RUN AWAY like a baby!
set /p input=Enter:
if %input% equ 1 goto attackgoblinm
if %input% equ 2 goto drinkpotgoblinm
if %input% equ 3 goto main2
goto fightgoblinm
:attackgoblinm
cls
set /a en2hp=%en2hp% - (%power% + %weappower%)
if %en2hp% leq 0 goto killgoblinm
set /a hp=%hp% - ( 7 - %armor% / 5 )
if %hp% leq 0 goto death
goto fightgoblinm
:drinkpotgoblinm
cls
if %pots% leq 0 (
echo You don't have any potions
pause >nul
goto fightgoblinm
)
set /a pots = %pots% -1
set /a hp = %hp% +50
goto fightgoblinm
:killgoblinm
cls
echo YOU KILLED HIM!
echo you gained 7 exp and 6 gold
set /a exp=%exp% + 10
set /a gold=%gold% + 40
set M2=.
set M-=%M%-1
pause >nul
goto main2
:fightgoblin1
cls
echo You have %hp% health
echo Goblin has %en2hp%
echo.
echo 1.Attack
echo 2.Drink potion
echo 3.RUN AWAY like a baby!
set /p input=Enter:
if %input% equ 1 goto attackgoblin1
if %input% equ 2 goto drinkpotgoblin1
if %input% equ 3 goto main2
goto fightgoblinm
:attackgoblin1
cls
set /a en2hp=%en2hp% - (%power% + %weappower%)
if %en2hp% leq 0 goto killgoblin1
set /a hp=%hp% - ( 7 - %armor% / 5 )
if %hp% leq 0 goto death
goto fightgoblin1
:drinkpotgoblin1
cls
if %pots% leq 0 (
echo You don't have any potions
pause >nul
goto fightgoblin1
)
set /a pots = %pots% -1
set /a hp = %hp% +50
goto fightgoblin1
:killgoblin1
cls
echo YOU KILLED HIM!
echo you gained 7 exp and 6 gold
set /a exp=%exp% + 10
set /a gold=%gold% + 60
set M3=.
set M-=%M%-1
pause >nul
goto main2
:fightgoblin2
cls
echo You have %hp% health
echo Goblin has %en2hp%
echo.
echo 1.Attack
echo 2.Drink potion
echo 3.RUN AWAY like a baby!
set /p input=Enter:
if %input% equ 1 goto attackgoblin2
if %input% equ 2 goto drinkpotgoblin2
if %input% equ 3 goto main2
goto fightgoblin2
:attackgoblin2
cls
set /a en2hp=%en2hp% - (%power% + %weappower%)
if %en2hp% leq 0 goto killgoblin2
set /a hp=%hp% - ( 7 - %armor% / 5 )
if %hp% leq 0 goto death
goto fightgoblin2
:drinkpotgoblin2
cls
if %pots% leq 0 (
echo You don't have any potions
pause >nul
goto fightgoblin2
)
set /a pots = %pots% -1
set /a hp = %hp% +50
goto fightgoblin2
:killgoblin2
cls
echo YOU KILLED HIM!
echo you gained 7 exp and 6 gold
set /a exp=%exp% + 10
set /a gold=%gold% + 50
set M4=.
set M-=%M%-1
pause >nul
goto main2
:fightgoblin3
cls
echo You have %hp% health
echo Goblin has %en1hp%
echo.
echo 1.Attack
echo 2.Drink potion
echo 3.RUN AWAY like a baby!
set /p input=Enter:
if %input% equ 1 goto attackgoblin3
if %input% equ 2 goto drinkpotgoblin3
if %input% equ 3 goto main2
goto fightgoblin3
:attackgoblin3
cls
set /a en1hp=%en1hp% - (%power% + %weappower%)
if %en1hp% leq 0 goto killgoblin3
set /a hp=%hp% - ( 7 - %armor% / 5 )
if %hp% leq 0 goto death
goto fightgoblin3
:drinkpotgoblin3
cls
if %pots% leq 0 (
echo You don't have any potions
pause >nul
goto fightgoblin3
)
set /a pots = %pots% -1
set /a hp = %hp% +50
goto fightgoblin3
:killgoblin3
cls
echo YOU KILLED HIM!
echo you gained 7 exp and 6 gold
set /a exp=%exp% + 7
set /a gold=%gold% + 40
set M5=.
set M-=%M%-1
pause >nul
goto main2
:fightgoblin4
cls
echo You have %hp% health
echo Goblin has %en1hp%
echo.
echo 1.Attack
echo 2.Drink potion
echo 3.RUN AWAY like a baby!
set /p input=Enter:
if %input% equ 1 goto attackgoblin4
if %input% equ 2 goto drinkpotgoblin4
if %input% equ 3 goto main2
goto fightgoblin4
:attackgoblin4
cls
set /a en1hp=%en1hp% - (%power% + %weappower%)
if %en1hp% leq 0 goto killgoblin4
set /a hp=%hp% - ( 7 - %armor% / 5 )
if %hp% leq 0 goto death
goto fightgoblin4
:drinkpotgoblin4
cls
if %pots% leq 0 (
echo You don't have any potions
pause >nul
goto fightgoblin4
)
set /a pots = %pots% -1
set /a hp = %hp% +50
goto fightgoblin4
:killgoblin4
cls
echo YOU KILLED HIM!
echo you gained 7 exp and 6 gold
set /a exp=%exp% + 7
set /a gold=%gold% + 40
set M6=.
set M-=%M%-1
pause >nul
goto main2
:fightgoblin5
cls
echo You have %hp% health
echo Goblin has %en2hp%
echo.
echo 1.Attack
echo 2.Drink potion
echo 3.RUN AWAY like a baby!
set /p input=Enter:
if %input% equ 1 goto attackgoblin5
if %input% equ 2 goto drinkpotgoblin5
if %input% equ 3 goto main2
goto fightgoblin5
:attackgoblin5
cls
set /a en2hp=%en2hp% - (%power% + %weappower%)
if %en2hp% leq 0 goto killgoblin5
set /a hp=%hp% - ( 7 - %armor% / 5 )
if %hp% leq 0 goto death
goto fightgoblin5
:drinkpotgoblin5
cls
if %pots% leq 0 (
echo You don't have any potions
pause >nul
goto fightgoblin5
)
set /a pots = %pots% -1
set /a hp = %hp% +50
goto fightgoblin5
:killgoblin5
cls
echo YOU KILLED HIM!
echo you gained 7 exp and 6 gold
set /a exp=%exp% + 10
set /a gold=%gold% + 90
set M7=.
set M-=%M%-1
pause >nul
goto main2
:fightgoblin6
cls
echo You have %hp% health
echo Goblin has %en1hp%
echo.
echo 1.Attack
echo 2.Drink potion
echo 3.RUN AWAY like a baby!
set /p input=Enter:
if %input% equ 1 goto attackgoblin6
if %input% equ 2 goto drinkpotgoblin6
if %input% equ 3 goto main2
goto fightgoblin6
:attackgoblin6
cls
set /a en1hp=%en1hp% - (%power% + %weappower%)
if %en1hp% leq 0 goto killgoblin6
set /a hp=%hp% - ( 7 - %armor% / 5 )
if %hp% leq 0 goto death
goto fightgoblin6
:drinkpotgoblin6
cls
if %pots% leq 0 (
echo You don't have any potions
pause >nul
goto fightgoblin6
)
set /a pots = %pots% -1
set /a hp = %hp% +50
goto fightgoblin6
:killgoblin6
cls
echo YOU KILLED HIM!
echo you gained 7 exp and 6 gold
set /a exp=%exp% + 7
set /a gold=%gold% + 40
set M8=.
pause >nul
goto main2
:fightgoblin7
cls
echo You have %hp% health
echo Goblin has %en1hp%
echo.
echo 1.Attack
echo 2.Drink potion
echo 3.RUN AWAY like a baby!
set /p input=Enter:
if %input% equ 1 goto attackgoblin7
if %input% equ 2 goto drinkpotgoblin7
if %input% equ 3 goto main2
goto fightgoblin7
:attackgoblin7
cls
set /a en1hp=%en1hp% - (%power% + %weappower%)
if %en1hp% leq 0 goto killgoblin7
set /a hp=%hp% - ( 7 - %armor% / 5 )
if %hp% leq 0 goto death
goto fightgoblin7
:drinkpotgoblin7
cls
if %pots% leq 0 (
echo You don't have any potions
pause >nul
goto fightgoblin7
)
set /a pots = %pots% -1
set /a hp = %hp% +50
goto fightgoblin7
:killgoblin7
cls
echo YOU KILLED HIM!
echo you gained 7 exp and 6 gold
set /a exp=%exp% + 7
set /a gold=%gold% + 40
set M9=.
set M-=%M%-1
pause >nul
goto main2
:fightgoblin8
cls
echo You have %hp% health
echo Goblin has %en1hp%
echo.
echo 1.Attack
echo 2.Drink potion
echo 3.RUN AWAY like a baby!
set /p input=Enter:
if %input% equ 1 goto attackgoblin8
if %input% equ 2 goto drinkpotgoblin8
if %input% equ 3 goto main2
goto fightgoblin8
:attackgoblin8
cls
set /a en1hp=%en1hp% - (%power% + %weappower%)
if %en1hp% leq 0 goto killgoblin8
set /a hp=%hp% - ( 7 - %armor% / 5 )
if %hp% leq 0 goto death
goto fightgoblin8
:drinkpotgoblin8
cls
if %pots% leq 0 (
echo You don't have any potions
pause >nul
goto fightgoblin8
)
set /a pots = %pots% -1
set /a hp = %hp% +50
goto fightgoblin8
:killgoblin8
cls
echo YOU KILLED HIM!
echo you gained 7 exp and 6 gold
set /a exp=%exp% + 7
set /a gold=%gold% + 40
set M10=.
set M-=%M%-1
pause >nul
goto main2
:fightgoblin9
cls
echo You have %hp% health
echo Goblin has %en1hp%
echo.
echo 1.Attack
echo 2.Drink potion
echo 3.RUN AWAY like a baby!
set /p input=Enter:
if %input% equ 1 goto attackgoblin9
if %input% equ 2 goto drinkpotgoblin9
if %input% equ 3 goto main2
goto fightgoblin9
:attackgoblin9
cls
set /a en1hp=%en1hp% - (%power% + %weappower%)
if %en1hp% leq 0 goto killgoblin9
set /a hp=%hp% - ( 7 - %armor% / 5 )
if %hp% leq 0 goto death
goto fightgoblin9
:drinkpotgoblin9
cls
if %pots% leq 0 (
echo You don't have any potions
pause >nul
goto fightgoblin9
)
set /a pots = %pots% -1
set /a hp = %hp% +50
goto fightgoblin9
:killgoblin9
cls
echo YOU KILLED HIM!
echo you gained 7 exp and 6 gold
set /a exp=%exp% + 7
set /a gold=%gold% + 40
set M11=.
set M-=%M%-1
pause >nul
goto main2
:fightgoblin0
cls
echo You have %hp% health
echo Goblin has %en2hp%
echo.
echo 1.Attack
echo 2.Drink potion
echo 3.RUN AWAY like a baby!
set /p input=Enter:
if %input% equ 1 goto attackgoblin0
if %input% equ 2 goto drinkpotgoblin0
if %input% equ 3 goto main2
goto fightgoblin0
:attackgoblin0
cls
set /a en2hp=%en2hp% - (%power% + %weappower%)
if %en2hp% leq 0 goto killgoblin0
set /a hp=%hp% - ( 7 - %armor% / 5 )
if %hp% leq 0 goto death
goto fightgoblin0
:drinkpotgoblin0
cls
if %pots% leq 0 (
echo You don't have any potions
pause >nul
goto fightgoblin0
)
set /a pots = %pots% -1
set /a hp = %hp% +50
goto fightgoblin0
:killgoblin0
cls
echo YOU KILLED HIM!
echo you gained 7 exp and 6 gold
set /a exp=%exp% + 10
set /a gold=%gold% + 50
set M12=.
set M-=%M%-1
pause >nul
goto main2
:death
cls
echo You died
set hp=50
set lvl-=lvl-1
set exp=0
set armor=0
set pots=1
set gold=0
echo The merchant was nice and gave you a pottion to help get your Heath up a bit
pause
goto main2
:WIN
echo YOU WIN!
pause
goto start