# data[].attributes.body
@echo off
title= M-Slayer
cls
choice /c:ys /d y /t 2 >nul
if errorlevel 2 goto title
color 08
echo Presenting...
choice /c:ys /d y /t 2 >nul
if errorlevel 2 goto title
color 07
choice /c:ys /d y /t 2 >nul
if errorlevel 2 goto title
color 0f
choice /c:ys /d y /t 2 >nul
if errorlevel 2 goto title
color 07
choice /c:ys /d y /t 2 >nul
if errorlevel 2 goto title
color 08
choice /c:ys /d y /t 2 >nul
if errorlevel 2 goto title
cls
choice /c:ys /d y /t 2 >nul
if errorlevel 2 goto title
color 0a
cls
echo                  M   M
echo                  MM MM
echo                  M M M
echo                  M M M
echo                  M M M
ping localhost -n 2 >nul
cls
echo                  M   M
echo                  MM MM
echo                  M M M
echo                  M M M
echo                 M  M M
ping localhost -n 1 >nul
cls
echo                  M   M
echo                  MM MM
echo                  M M M
echo                 M  M M
echo                M   M M
ping localhost -n 1 >nul
cls
echo                  M   M
echo                  MM MM
echo                 M  M M
echo                M   M M
echo               M   M  M
ping localhost -n 1 >nul
cls
echo                  M   M
echo                 M M MM
echo                M   M M
echo               M   M  M
echo              M   M   M
ping localhost -n 1 >nul
cls
echo                 M    M
echo                M M  MM
echo               M   M  M
echo              M   M   M
echo             M   M   M
ping localhost -n 1 >nul
cls
echo                M    M
echo               M M  M M
echo              M   M   M
echo             M   M   M
echo            M   M   M
ping localhost -n 1 >nul
cls
echo              M    M
echo             M M  M M
echo            M   M   M
echo           M   M   M
echo          M   M   M
ping localhost -n 1 >nul
cls
echo            M    M
echo           M M  M M
echo          M   M   M
echo         M   M   M
echo        M   M   M
ping localhost -n 1 >nul
cls
echo          M    M
echo         M M  M M
echo        M   M   M
echo       M   M   M
echo      M   M   M
ping localhost -n 1 >nul
cls
echo        M    M
echo       M M  M M
echo      M   M   M
echo     M   M   M
echo    M   M   M
ping localhost -n 1 >nul
cls
echo      M    M
echo     M M  M M
echo    M   M   M
echo    M  M   M
echo    M M   M
ping localhost -n 1 >nul
cls
echo     M    M
echo    MM  M M
echo    M  M   M
echo    M M   M
echo    M M  M
ping localhost -n 1 >nul
cls
echo    M   M
echo    MM M M
echo    M M  M
echo    M M  M
echo    M M  M
ping localhost -n 1 >nul
cls
echo    M   M
echo    MM MM
echo    M M M
echo    M M M
echo    M M M
ping localhost -n 1 >nul
cls
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
echo º  M   M
echo º  MM MM
echo º  M M M ==
echo    M M M
echo    M M M
ping localhost -n 1 >nul
cls
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º  M   M
echo º  MM MM
echo º  M M M =====
echo º  M M M
echo º  M M M
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
ping localhost -n 1 >nul
cls
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º  M   M       SS                                   º
echo º  MM MM       S                                    º
echo º  M M M ===== SS                                   º
echo º  M M M
echo º  M M M       SS
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
ping localhost -n 1 >nul
cls
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º  M   M       SSSSS                                º
echo º  MM MM       S                                    º
echo º  M M M ===== SSSSS                                º
echo º  M M M           S                                º
echo º  M M M       SSSSS                                º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ¼
ping localhost -n 1 >nul
cls
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º  M   M       SSSSS L                              º
echo º  MM MM       S     L                              º
echo º  M M M ===== SSSSS L                              º
echo º  M M M           S L                              º
echo º  M M M       SSSSS LL                             º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ¼
ping localhost -n 1 >nul
cls
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º  M   M       SSSSS L                              º
echo º  MM MM       S     L                              º
echo º  M M M ===== SSSSS L                              º
echo º  M M M           S L                              º
echo º  M M M       SSSSS LLLLL                          º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ¼
ping localhost -n 1 >nul
cls
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º  M   M       SSSSS L                              º
echo º  MM MM       S     L      A                       º
echo º  M M M ===== SSSSS L     AA                       º
echo º  M M M           S L     A                        º
echo º  M M M       SSSSS LLLLL A                        º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ¼
ping localhost -n 1 >nul
cls
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º  M   M       SSSSS L       A                      º
echo º  MM MM       S     L      A A                     º
echo º  M M M ===== SSSSS L     AAAAA                    º
echo º  M M M           S L     A   A                    º
echo º  M M M       SSSSS LLLLL A   A                    º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ¼
ping localhost -n 1 >nul
cls
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º  M   M       SSSSS L       A   Y                  º
echo º  MM MM       S     L      A A   Y                 º
echo º  M M M ===== SSSSS L     AAAAA                    º
echo º  M M M           S L     A   A                    º
echo º  M M M       SSSSS LLLLL A   A                    º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ¼
ping localhost -n 1 >nul
cls
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º  M   M       SSSSS L       A   Y   Y              º
echo º  MM MM       S     L      A A   Y Y               º
echo º  M M M ===== SSSSS L     AAAAA   Y                º
echo º  M M M           S L     A   A   Y                º
echo º  M M M       SSSSS LLLLL A   A   Y                º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ¼
ping localhost -n 1 >nul
cls
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º  M   M       SSSSS L       A   Y   Y EE           º
echo º  MM MM       S     L      A A   Y Y  E            º
echo º  M M M ===== SSSSS L     AAAAA   Y   EE           º
echo º  M M M           S L     A   A   Y   E            º
echo º  M M M       SSSSS LLLLL A   A   Y   EE           º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ¼
ping localhost -n 1 >nul
cls
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º  M   M       SSSSS L       A   Y   Y EEEEE        º
echo º  MM MM       S     L      A A   Y Y  E            º
echo º  M M M ===== SSSSS L     AAAAA   Y   EEE          º
echo º  M M M           S L     A   A   Y   E            º
echo º  M M M       SSSSS LLLLL A   A   Y   EEEEE        º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ¼
ping localhost -n 1 >nul
cls
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º  M   M       SSSSS L       A   Y   Y EEEEE RR     º
echo º  MM MM       S     L      A A   Y Y  E     R      º
echo º  M M M ===== SSSSS L     AAAAA   Y   EEE   RR     º
echo º  M M M           S L     A   A   Y   E     R      º
echo º  M M M       SSSSS LLLLL A   A   Y   EEEEE R      º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ¼
ping localhost -n 1 >nul

:title
cls
color 0a
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º  M   M       SSSSS L       A   Y   Y EEEEE RRRR   º
echo º  MM MM       S     L      A A   Y Y  E     R  RR  º
echo º  M M M ===== SSSSS L     AAAAA   Y   EEE   RRRR   º
echo º  M M M           S L     A   A   Y   E     R  RR  º
echo º  M M M       SSSSS LLLLL A   A   Y   EEEEE R   R  º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ¼
echo Legend's Reign
pause

:login
cls
echo Enscribe ye here thine name.
set /p username=Username:
cls
echo And thine passphrase?
set /p password=Password:
if exist saveFiles goto savesExist
if exist IMPORTANT goto mdBypass
md saveFiles
:savesExist
cd saveFiles
md IMPORTANT
:mdBypass
if exist %username%.bat goto again
goto new

:new
cls
echo Welcome to the arena %username%!
echo May your battles be swift and valiant!
echo set check=%password%>>%username%.bat
echo set win=0 >>%username%.bat
echo set lose=0 >>%username%.bat
echo set legend=0 >>%username%.bat
pause
goto menu

:again
cls
call %username%.bat
if %password% EQU %check% goto passClear
color 0c
echo IMPOSTER! Guards! Seize this man!
pause
goto title

:passClear
cls
set win=0
set lose=0
set legend=0
call %username%.bat
if %win% EQU 0 goto foolEntry
if %lose% EQU 0 goto gloriousEntry
if %lose% GTR %win% goto foolEntry
if %legend% GTR 10 goto gloriousEntry
cls
color 0a
echo Welcome again %username%.
echo The crowd awaits its gladiator. We await thine victory.
pause
goto menu
:foolEntry
cls
color 0c
echo I see, %username% is it?
echo Guards! Escort this... coward, to the arena. His death awaits him.
pause
goto menu
:gloriousEntry
cls
color 0e
echo BEHOLD! The legend %username%!
echo The emporer himself shall surely attend!
pause
goto menu

:Menu
:refresh
call %username%.bat
del %username%.bat
echo set check=%check% >>%username%.bat
echo set win=%win% >>%username%.bat
echo set lose=%lose% >>%username%.bat
echo set legend=%legend% >>%username%.bat

cls
color 0a
echo Select your difficulty
echo 1.) Easy
echo 2.) Normal
echo 3.) Hard
echo ===============
echo 4.) How to play
echo 5.) Retire
echo 6.) Contact the Authors
echo 0.) What's new?
choice /c:1234506 >nul
if errorlevel 7 goto credits
if errorlevel 6 goto changeLog
if errorlevel 5 goto retire
if errorlevel 4 goto help
if errorlevel 3 goto hard
if errorlevel 2 goto normal
if errorlevel 1 goto easy

:credits
cls
color 0f
echo Game dev: "Raven's Quote"
echo -ravensquotenevermore@gmail.com
echo Partner: "Killer Master"
echo -anthonyxyz23@gmail.com
pause
goto menu

:changeLog
cls
color f0
echo HEAR YE, HEAR YE!
echo First off, quick warning.
echo If you spot one thing in
echo this game that isn't in
echo this change log, either
echo A.) It's been there a while
echo or
echo B.) It's one of a thousand
echo things I've added, none of
echo which will be recorded
echo here. For all I know, the
echo M spits fire and teleports
echo at random.
pause
cls
echo Ok so it already teleports
echo but only when you hit it...
pause
echo and its location may/may noy
echo be determined by an RNG...
pause
cls
echo So yeah it's been teleporting
echo to a semi-random location since
echo the first update of this version,
echo sue me. XD
pause

REM HEY YOU! UPDATE THE CHANGELOG!

cls
echo Here's what's been added since
echo this version of M-Slayer took
echo the web by storm.
pause
cls
echo V1
echo The Welcoming Update
echo :
echo Nothing was added, it was
echo created.
echo ==============================
echo V2
echo The Historical Update
echo :
echo -Password and history system.
echo -Different arenas for
echo different difficulties.
echo -Bug fix: M no longer charges
echo off screen for eternity.
echo (Standing to the M's right
echo is no longer advised).
echo ==============================
echo V3
echo The Legitimate Hard Mode Update
echo :
echo -M's movement is now
echo determined by an RNG.
echo -Sword must now be positioned
echo at the same spot as the M
echo BEFORE you attack. Attacking
echo is now seperate from sword
echo movement.
echo -Adjustment to endings
echo -Going to menu refreshes your
echo save file, saving processing
echo time (not that that was an
echo issue but, hey, it does).
echo ==============================
echo V4
echo Update X
echo (Shoutout to KillerMaster on G+)
echo :
echo -Added change log
echo -Arena size updated to a 10x10
echo grid.
echo -Added arena select screen
echo separate from difficulty
echo select
echo -Certain arenas have different
echo environmental hazards.
echo -Added secret of some sort.
echo -"X-Slayer" added to xBatch,
echo a program written by
echo KillerMaster with exclusive
echo content on both versions of
echo the game.
echo ==============================
echo V5
echo the Lost Update
echo :
echo -Added intro animation
echo -Added "Contact the authors"
echo -Added ruins arena
echo -Skip into by pressing s while
echo it says "presenting"
echo V5.1
echo -Improved Ruins map
echo -New endings
pause
goto menu
goto menu
goto menu
:retire
cls
color 0c
call %username%.bat
if %lose% GTR %win% goto kick
echo Sir, do you truly wish to retire?
echo You have won %win% battles, and
echo lost %lose%.
echo 1.) Yes sir, I bid thee farewell.
echo 2.) At my age? NEVER!
choice /c:12 >nul
if errorlevel 2 goto jester
if errorlevel 1 goto deleteMe
:jester
cls
color 0a
echo Ha ha! You jest! Why fight when you
echo could earn a living with words!
echo Onward with you!
pause
goto menu
:deleteMe
cls
color 0c
del %username%.bat
echo I see, I have removed thine name and
echo and thine records from our lists.
echo You may go.
pause
goto title
:kick
cls
color 0c
del %username%.bat
echo We'll be glad to be rid of you, %username%.
set /a total=%win%+%lose%
echo Of %total% battles, you have lost %lose%.
echo Did you tire of stumbling to death on the
echo battlefield? HA! Begone with you, I have
echo erased your name from our history.
pause
goto title

:help
cls
color 0a
echo  W  Use W,A,S,
echo A*D and D to
echo  S  move around.
pause
cls
echo  I  Use I,J,K,
echo J*L and L to
echo  K  move your sword.
pause
cls
echo Ë --This is you (buff aren't ya?)
echo M --This is the monster (menacing, eh?)
pause
cls
echo . . .
echo . Ë -  --This is your sword to the right.
echo . . .
pause
cls
echo . . .
echo . Ë .
echo . ³ . --This is your sword below you.
pause
cls
echo   . . .
echo  . Ë .
echo . / . --This is your sword when
echo         the screen tilts.
pause
cls
echo . . .  N  This is your compass. If
echo . . . W*E the screen tilts, this
echo . . .  S  let's you know.
pause
cls
echo   . . .  N See? North is now up
echo  . . . W*E and to the right.
echo . . .  S
pause
cls
echo . . .  N   And now it's up and
echo  . . . W*E to the left.
echo   . . .  S
pause
cls
echo . . .  If you see the M beside you,
echo . Ë M  but not your sword, press E
echo . . .  to attack!
pause
cls
echo . ³ .  If you see the M beside you
echo . Ë M  AND your sword is showing,
echo . . .  DO NOT ATTACK!
pause
cls
echo . Ë .  N    Anytime you are directly north,
echo . . . W*E   south, or off to the side of the
echo . M .  S    M, it will CHARGE 2 spaces at once!
echo             Move sideways to dodge!
pause
cls
echo . Ë .  N    In this instance, the screen is
echo  . . . W*E  tilted, but you are still
echo   . M .  S  DIRECTLY NORTH OF THE M! It will
echo             happily charge you from here.
pause
cls
echo Ë . .  N     The M can't charge diagonally,
echo . . . W*E    so this guy is safe.
echo . M .  S
pause
cls
echo   Ë . .  N  This guy is also safe.
echo  . . . W*E  The screen is just tilted.
echo . M .  S    (Both you and the M are in
echo             the same spots as in the
echo             last picture!)
pause
cls
echo Those are the basics of the game, but
echo I'll give you a pro tip. If you and
echo the M are side by side, don't run
echo directly away from it. Remember that
echo two space charge I mentioned? It'll
echo outrun you. Panic and run in circles.
pause
echo I'm serious.
pause
cls
echo Anyway, since you sat through my little
echo class there I'll tell you about the
echo secret. You know, the one I mentioned
echo in the changelog. There's a 5th arena.
echo When you get to the arena select screen,
echo press 5. Yes yes I know you probably
echo don't see 5 as an option. The guy who
echo talks about the palace is a jerk but he
echo WILL tell you the palace exists, and that
echo you gotta be good to get there. What you
echo need are three legend endings, even
echo if it's just the same one over and over
echo again. The best legend ending can be
echo gotten by losing more than the total
echo number of times that you've won, then
echo beating the M withou taking damage.
pause
echo ...
pause
echo On hard mode.
pause
goto menu

:hard
cls
color 0c
echo Difficulty set to hard.
echo Monster will charge!
pause
set timer=1
goto chooseArena
:normal
cls
color 0e
echo Difficulty set to normal.
echo Monster will move moderatly.
pause
set timer=2
goto chooseArena
:easy
cls
color 0a
echo Difficulty set to easy.
echo Monster will move slowly.
pause
set timer=3
goto chooseArena

:chooseArena
if exist %username%.bat goto saveSafe
cls
color 0f
echo Ya' know, I was kinda using that save
echo file of yours.
pause
exit
:saveSafe
cls
color 0a
echo Where shall you fight?
call %username%.bat
echo 1.) Forest
echo 2.) Arena
echo 3.) Swamp
echo 4.) Crater
echo 5.) Ruins
if %legend% GTR 3 echo 6.) Palace
choice /c:123465 >nul
if errorlevel 6 goto ruins
if errorlevel 5 goto palaceCheck
if errorlevel 4 goto crater
if errorlevel 3 goto swamp
if errorlevel 2 goto arena
if errorlevel 1 goto forest

:ruins
set where=ruins
color 02
set coin1=no
set coin2=no
set coin3=no
set coin4=no
cls
echo The ancient ruins.
echo Watch your step, traveler.
pause
goto statSet
:palaceCheck
call %username%.bat
if %legend% GTR 3 goto palace
cls
echo You must have heard about the palace.
pause
cls
echo Seek elsewhere, only true warriors may
echo enter that place.
pause
goto saveSafe
:forest
set where=forest
cls
color a0
echo Ah, the old woods.
echo Memories abound in this place...
pause
goto statSet
:arena
set where=arena
cls
color e0
echo Bold you are.
echo Mind the crowd, do not let them grow weary.
pause
goto statSet
:crater
set where=crater
cls
color 0c
echo An burning crater.
echo The scorched earth irritates the beast. Beware.
pause
goto statSet
:swamp
set where=Swamp
cls
color 20
echo The swamplands, watch yourself.
echo The air is thick, it shall be hard to see.
pause
color a2
goto statSet
:palace
set where=palace
cls
color 07
echo You must be the %username% they speak of.
if %win% GTR %lose% goto palaceWelcome
echo Whatever luck you have been riding on boy,
echo it shall soon run out!
pause
color f7
goto statSet
:palaceWelcome
echo We are delighted to see you here. Come!
echo The emporer awaits!
pause
color 0f
goto statSet

:statSet
set message=BEHOLD! OUR VALIANT HERO DARES TO FIGHT!
set health=5
set mHealth=5
set sMark=down
set rage=0

:setScreen
set rx1,ry1=.
set rx1,ry2=.
set rx1,ry3=.
set rx1,ry4=.
set rx1,ry5=.
set rx2,ry1=.
set rx2,ry2=.
set rx2,ry3=.
set rx2,ry4=.
set rx2,ry5=.
set rx3,ry1=.
set rx3,ry2=.
set rx3,ry3=.
set rx3,ry4=.
set rx3,ry5=.
set rx4,ry1=.
set rx4,ry2=.
set rx4,ry3=.
set rx4,ry4=.
set rx4,ry5=.
set rx5,ry1=.
set rx5,ry2=.
set rx5,ry3=.
set rx5,ry4=.
set rx5,ry5=.
set rx1,ry6=.
set rx1,ry7=.
set rx1,ry8=.
set rx1,ry9=.
set rx1,ry10=.
set rx2,ry6=.
set rx2,ry7=.
set rx2,ry8=.
set rx2,ry9=.
set rx2,ry10=.
set rx3,ry6=.
set rx3,ry7=.
set rx3,ry8=.
set rx3,ry9=.
set rx3,ry10=.
set rx4,ry6=.
set rx4,ry7=.
set rx4,ry8=.
set rx4,ry9=.
set rx4,ry10=.
set rx5,ry6=.
set rx5,ry7=.
set rx5,ry8=.
set rx5,ry9=.
set rx5,ry10=.
set rx6,ry1=.
set rx6,ry2=.
set rx6,ry3=.
set rx6,ry4=.
set rx6,ry5=.
set rx6,ry6=.
set rx6,ry7=.
set rx6,ry8=.
set rx6,ry9=.
set rx6,ry10=.
set rx7,ry1=.
set rx7,ry2=.
set rx7,ry3=.
set rx7,ry4=.
set rx7,ry5=.
set rx7,ry6=.
set rx7,ry7=.
set rx7,ry8=.
set rx7,ry9=.
set rx7,ry10=.
set rx8,ry1=.
set rx8,ry2=.
set rx8,ry3=.
set rx8,ry4=.
set rx8,ry5=.
set rx8,ry6=.
set rx8,ry7=.
set rx8,ry8=.
set rx8,ry9=.
set rx8,ry10=.
set rx9,ry1=.
set rx9,ry2=.
set rx9,ry3=.
set rx9,ry4=.
set rx9,ry5=.
set rx9,ry6=.
set rx9,ry7=.
set rx9,ry8=.
set rx9,ry9=.
set rx9,ry10=.
set rx10,ry1=.
set rx10,ry2=.
set rx10,ry3=.
set rx10,ry4=.
set rx10,ry5=.
set rx10,ry6=.
set rx10,ry7=.
set rx10,ry8=.
set rx10,ry9=.
set rx10,ry10=.
if %where% EQU ruins goto setRuins
goto pSet
:setRuins
set rx3,ry5==
set rx4,ry5==
set rx3,ry4==
set rx8,ry5==
set rx7,ry5==
set rx8,ry4==
set rx4,ry10==
set rx4,ry9==
set rx7,ry10==
set rx7,ry9==
set rx3,ry9==
set rx2,ry9==
set rx7,ry9==
set rx8,ry9==
set rx5,ry3==
set rx6,ry3==
set rx4,ry6==
set rx4,ry7==
set rx3,ry7==
set rx2,ry7==
set rx1,ry7==
set rx7,ry6==
set rx7,ry7==
set rx8,ry7==
set rx9,ry7==
set rx9,ry9==
set rx10,ry7==
set rx8,ry10=c
set rx3,ry6=c
set rx8,ry6=c
set rx3,ry10=c

:pSet
set impatient=0
set chargeCheck=goto control
set x=%random%
:loopP
if %x% GTR 10 set /a x=%x%/2
if %x% GTR 10 goto loopP
set y=10
if %where% EQU ruins set y=8
:mSet
set mx=%random%
:loopM
if %mx% GTR 10 set /a mx=%mx%/2
if %mx% GTR 10 goto loopM
set my=%random%
:loopMY
if %my% GTR 7 set /a my=%my%/3
if %my% GTR 7 goto loopMY
:callScreen
set x1,y1=%rx1,ry1%
set x1,y2=%rx1,ry2%
set x1,y3=%rx1,ry3%
set x1,y4=%rx1,ry4%
set x1,y5=%rx1,ry5%
set x2,y1=%rx2,ry1%
set x2,y2=%rx2,ry2%
set x2,y3=%rx2,ry3%
set x2,y4=%rx2,ry4%
set x2,y5=%rx2,ry5%
set x3,y1=%rx3,ry1%
set x3,y2=%rx3,ry2%
set x3,y3=%rx3,ry3%
set x3,y4=%rx3,ry4%
set x3,y5=%rx3,ry5%
set x4,y1=%rx4,ry1%
set x4,y2=%rx4,ry2%
set x4,y3=%rx4,ry3%
set x4,y4=%rx4,ry4%
set x4,y5=%rx4,ry5%
set x5,y1=%rx5,ry1%
set x5,y2=%rx5,ry2%
set x5,y3=%rx5,ry3%
set x5,y4=%rx5,ry4%
set x5,y5=%rx5,ry5%
set x1,y6=%rx1,ry6%
set x1,y7=%rx1,ry7%
set x1,y8=%rx1,ry8%
set x1,y9=%rx1,ry9%
set x1,y10=%rx1,ry10%
set x2,y6=%rx2,ry6%
set x2,y7=%rx2,ry7%
set x2,y8=%rx2,ry8%
set x2,y9=%rx2,ry9%
set x2,y10=%rx2,ry10%
set x3,y6=%rx3,ry6%
set x3,y7=%rx3,ry7%
set x3,y8=%rx3,ry8%
set x3,y9=%rx3,ry9%
set x3,y10=%rx3,ry10%
set x4,y6=%rx4,ry6%
set x4,y7=%rx4,ry7%
set x4,y8=%rx4,ry8%
set x4,y9=%rx4,ry9%
set x4,y10=%rx4,ry10%
set x5,y6=%rx5,ry6%
set x5,y7=%rx5,ry7%
set x5,y8=%rx5,ry8%
set x5,y9=%rx5,ry9%
set x5,y10=%rx5,ry10%
set x6,y1=%rx6,ry1%
set x6,y2=%rx6,ry2%
set x6,y3=%rx6,ry3%
set x6,y4=%rx6,ry4%
set x6,y5=%rx6,ry5%
set x7,y1=%rx7,ry1%
set x7,y2=%rx7,ry2%
set x7,y3=%rx7,ry3%
set x7,y4=%rx7,ry4%
set x7,y5=%rx7,ry5%
set x8,y1=%rx8,ry1%
set x8,y2=%rx8,ry2%
set x8,y3=%rx8,ry3%
set x8,y4=%rx8,ry4%
set x8,y5=%rx8,ry5%
set x9,y1=%rx9,ry1%
set x9,y2=%rx9,ry2%
set x9,y3=%rx9,ry3%
set x9,y4=%rx9,ry4%
set x9,y5=%rx9,ry5%
set x10,y1=%rx10,ry1%
set x10,y2=%rx10,ry2%
set x10,y3=%rx10,ry3%
set x10,y4=%rx10,ry4%
set x10,y5=%rx10,ry5%
set x6,y6=%rx6,ry6%
set x6,y7=%rx6,ry7%
set x6,y8=%rx6,ry8%
set x6,y9=%rx6,ry9%
set x6,y10=%rx6,ry10%
set x7,y6=%rx7,ry6%
set x7,y7=%rx7,ry7%
set x7,y8=%rx7,ry8%
set x7,y9=%rx7,ry9%
set x7,y10=%rx7,ry10%
set x8,y6=%rx8,ry6%
set x8,y7=%rx8,ry7%
set x8,y8=%rx8,ry8%
set x8,y9=%rx8,ry9%
set x8,y10=%rx8,ry10%
set x9,y6=%rx9,ry6%
set x9,y7=%rx9,ry7%
set x9,y8=%rx9,ry8%
set x9,y9=%rx9,ry9%
set x9,y10=%rx9,ry10%
set x10,y6=%rx10,ry6%
set x10,y7=%rx10,ry7%
set x10,y8=%rx10,ry8%
set x10,y9=%rx10,ry9%
set x10,y10=%rx10,ry10%

:setTilt
if %x% EQU 4 goto noTilt
if %x% EQU 5 goto noTilt
if %x% EQU 6 goto noTilt
if %x% EQU 7 goto noTilt
if %x% LSS 4 goto tiltLeft
if %x% GTR 7 goto tiltRight

:noTilt
set tilt=no
set lBuffHigh=
set lBuffLow=
set lBuff9=     º
set lBuff8=     º
set lBuff7=     º
set lBuff6=     º
set lBuff5=     º
set lBuff4=     º
set lBuff3=     º
set lBuff2=     º
set lBuff1=     º
set lBuff0=     º
set rBuff9=º
set rBuff8=º
set rBuff7=º
set rBuff6=º
set rBuff5=º
set rBuff4=º
set rBuff3=º
set rBuff2=º
set rBuff1=º
set rBuff0=º
goto screen

:tiltLeft
set tilt=left
set lBuffHigh=
set lBuffLow=
set lBuff9= \
set lBuff8=  \
set lBuff7=   \
set lBuff6=    \
set lBuff5=     \
set lBuff4=      \
set lBuff3=       \
set lBuff2=        \
set lBuff1=         \
set lBuff0=          \
set rBuff9=\
set rBuff8=\
set rBuff7=\
set rBuff6=\
set rBuff5=\
set rBuff4=\
set rBuff3=\
set rBuff2=\
set rBuff1=\
set rBuff0=\
goto screen
:tiltRight
set tilt=right
set lBuffHigh=
set lBuffLow=
set lBuff9=          /
set lBuff8=         /
set lBuff7=        /
set lBuff6=       /
set lBuff5=      /
set lBuff4=     /
set lBuff3=    /
set lBuff2=   /
set lBuff1=  /
set lBuff0= /
set rBuff9=/
set rBuff8=/
set rBuff7=/
set rBuff6=/
set rBuff5=/
set rBuff4=/
set rBuff3=/
set rBuff2=/
set rBuff1=/
set rBuff0=/
goto screen

:exit
cls
color 0f
echo ERROR!
echo No clue what happened, but something happened.
echo See your dealer for details.
pause
exit

:screen
:swordSet
if %sMark% EQU down goto sDown
if %sMark% EQU up goto sUp
if %sMark% EQU left goto sLeft
if %sMark% EQU right goto sRight
set sx=x
set sy=y
set message=Could not render sword.
goto render
:sDown
if %tilt% EQU no goto sDownNo
if %tilt% EQU right goto sDownRight
if %tilt% EQU left goto sDownLeft
pause
cls
echo tilt error
goto exit
:sDownNo
set sShape=³
set sx=%x%
set /a sy=%y%-1
goto render
:sDownRight
set sShape=/
set sx=%x%
set /a sy=%y%-1
goto render
:sDownLeft
set sShape=\
set sx=%x%
set /a sy=%y%-1
goto render
:sUp
if %tilt% EQU no goto sUpNo
if %tilt% EQU right goto sUpRight
if %tilt% EQU left goto sUpLeft
pause
goto exit
:sUpNo
set sShape=³
set sx=%x%
set /a sy=%y%+1
goto render
:sUpRight
set sShape=/
set sx=%x%
set /a sy=%y%+1
goto render
:sUpLeft
set sShape=\
set sx=%x%
set /a sy=%y%+1
goto render
:sLeft
set sy=%y%
set /a sx=%x%-1
set sShape=-
goto render
:sRight
set sy=%y%
set /a sx=%x%+1
set sShape=-
goto render

:render
cls
set x%sx%,y%sy%=%sShape%
set x%x%,y%y%=Ë
set x%mx%,y%my%=M
echo %lBuffHigh%=======================%rBuffHigh%
echo %lBuff9% %x1,y10% %x2,y10% %x3,y10% %x4,y10% %x5,y10% %x6,y10% %x7,y10% %x8,y10% %x9,y10% %x10,y10% %rBuff9%
echo %lBuff8% %x1,y9% %x2,y9% %x3,y9% %x4,y9% %x5,y9% %x6,y9% %x7,y9% %x8,y9% %x9,y9% %x10,y9% %rBuff8%
echo %lBuff7% %x1,y8% %x2,y8% %x3,y8% %x4,y8% %x5,y8% %x6,y8% %x7,y8% %x8,y8% %x9,y8% %x10,y8% %rBuff7%
echo %lBuff6% %x1,y7% %x2,y7% %x3,y7% %x4,y7% %x5,y7% %x6,y7% %x7,y7% %x8,y7% %x9,y7% %x10,y7% %rBuff6%
echo %lBuff5% %x1,y6% %x2,y6% %x3,y6% %x4,y6% %x5,y6% %x6,y6% %x7,y6% %x8,y6% %x9,y6% %x10,y6% %rBuff5%
echo %lBuff4% %x1,y5% %x2,y5% %x3,y5% %x4,y5% %x5,y5% %x6,y5% %x7,y5% %x8,y5% %x9,y5% %x10,y5% %rBuff4%
echo %lBuff3% %x1,y4% %x2,y4% %x3,y4% %x4,y4% %x5,y4% %x6,y4% %x7,y4% %x8,y4% %x9,y4% %x10,y4% %rBuff3%
echo %lBuff2% %x1,y3% %x2,y3% %x3,y3% %x4,y3% %x5,y3% %x6,y3% %x7,y3% %x8,y3% %x9,y3% %x10,y3% %rBuff2%
echo %lBuff1% %x1,y2% %x2,y2% %x3,y2% %x4,y2% %x5,y2% %x6,y2% %x7,y2% %x8,y2% %x9,y2% %x10,y2% %rBuff1%
echo %lBuff0% %x1,y1% %x2,y1% %x3,y1% %x4,y1% %x5,y1% %x6,y1% %x7,y1% %x8,y1% %x9,y1% %x10,y1% %rBuff0%
echo %lBuffLow%=======================%rBuffLow%
echo %message%
echo Health: %health% hp
echo Monster: %mHealth% hp
if %where% EQU arena goto crowdStatus
if %where% EQU palace goto crowdStatus
goto control
:crowdStatus
if %impatient% EQU 3 echo The crowd demands action!
if %impatient% EQU 2 echo The crowd grows restless...
if %impatient% EQU 1 echo The crowd watches on...
if %impatient% EQU 0 echo The crowd feasts their eyes...

:control
choice /c:wasdyijkle /t %timer% /d y >nul
if errorlevel 10 goto attack
if errorlevel 9 goto aRight
if errorlevel 8 goto aDown
if errorlevel 7 goto aLeft
if errorlevel 6 goto aUp
if errorlevel 5 goto wait
if errorlevel 4 goto right
if errorlevel 3 goto down
if errorlevel 2 goto left
if errorlevel 1 goto up

:wait
if %where% EQU arena goto tiring
if %where% EQU palace goto tiring
goto monster
:tiring
set /a impatient=%impatient%+1
if %impatient% GTR 3 goto shove
goto monster
:shove
if %y% EQU 1 goto shoveUp
set /a y=%y%-1
set impatient=0
set message=MOVE COWARD!
goto monster
:shoveUp
set impatient=0
set /a y=%y%+1
set message=GET BACK IN THERE!
goto monster

:right
set /a future=%x%+1
if %future% GTR 10 goto roomCheck
set /a x=%x%+1
set backVal=x
set backAdd=-
set impatient=0
goto roomCheck
:left
set /a future=%x%-1
if %future% LSS 1 goto roomCheck
set /a x=%x%-1
set impatient=0
set backVal=x
set backAdd=+
goto roomCheck
:up
set /a future=%y%+1
if %future% GTR 10 goto roomCheck
set /a y=%y%+1
set impatient=0
set backVal=y
set backAdd=-
goto roomCheck
:down
set /a future=%y%-1
if %future% LSS 1 goto roomCheck
set /a y=%y%-1
set impatient=0
set backVal=y
set backAdd=+
goto roomCheck

:back
set /a %backVal%=%backVal%%backAdd%1
goto monster

:roomCheck
if %where% EQU ruins goto ruinsCheck
goto monster
:ruinsCheck
if %y% EQU 10 goto ruinsCheck10
if %y% EQU 9 goto ruinsCheck9
if %y% EQU 7 goto ruinsCheck7
if %y% EQU 6 goto ruinsCheck6
if %y% EQU 5 goto ruinsCheck5
if %y% EQU 4 goto ruinsCheck4
if %y% EQU 3 goto ruinsCheck3
goto monster
:coin1Check
if %coin1% EQU no set coin1=yes
if %coin1% EQU yes set rx8,ry10=.
goto monster
:coin2Check
if %coin2% EQU no set coin2=yes
if %coin2% EQU yes set rx8,ry6=.
goto monster
:coin3Check
if %coin3% EQU no set coin3=yes
if %coin3% EQU yes set rx3,ry6=.
goto monster
:coin4Check
if %coin4% EQU no set coin4=yes
if %coin4% EQU yes set rx3,ry10=.
goto monster

:ruinsCheck10
if %x% EQU 3 goto coin4Check
if %x% EQU 8 goto coin1Check
if %x% EQU 4 goto back
if %x% EQU 7 goto back
goto monster
:ruinsCheck9
if %x% EQU 4 goto back
if %x% EQU 7 goto back
if %x% EQU 2 goto back
if %x% EQU 3 goto back
if %x% EQU 8 goto back
if %x% EQU 9 goto back
goto monster
:ruinsCheck7
if %x% GTR 6 goto back
if %x% LSS 5 goto back
goto monster
:ruinsCheck6
if %x% EQU 3 goto coin3Check
if %x% EQU 8 goto coin2Check
if %x% EQU 7 goto back
if %x% EQU 4 goto back
goto monster
:ruinsCheck5
if %x% EQU 3 goto back
if %x% EQU 4 goto back
if %x% EQU 7 goto back
if %x% EQU 8 goto back
goto monster
:ruinsCheck4
if %x% EQU 3 goto back
if %x% EQU 8 goto back
goto monster
:ruinsCheck3
if %x% EQU 5 goto back
if %x% EQU 6 goto back
goto monster
:battle
set message=The hero strikes the fearsome beast!
set /a mHealth=%mHealth%-1
if %mHealth% LSS 1 goto victory
goto pSet

:aUp
set sMark=up
goto monster
:aDown
set sMark=down
goto monster
:aRight
set sMark=right
goto monster
:aLeft
set sMark=left
goto monster

:attack
if %sx% EQU %mx% goto slash
goto stumble
:slash
if %sy% EQU %my% goto battle
goto stumble

:stumble
set message=Ho ho! What foolery is this?!
set /a health=%health%-1
if %health% LSS 1 goto fool
goto monster

:monster
if %x% EQU %mx% goto myCheck
if %y% EQU %my% goto chargeX
goto mMove
:myCheck
if %y% EQU %my% goto damage
goto chargeY

:mMove
if %rage% EQU 2 goto peace
if %where% EQU crater goto rage
if %where% EQU palace goto rageSet
goto peace
:rageSet
set numRage=%random%
:rageLoop
if %numRage% GTR 4 set /a numRage=%numRage%*10
if %numRage% GTR 4 set /a numRage=%numRage%/37
if %numRage% GTR 4 goto rageLoop
if %numRage% GTR 2 goto rage
goto peace
:rage
set rage=1
:peace
if %rage% EQU 2 set rage=0
if %rage% EQU 1 set rage=2
set /a mMove=%random%
:mLoop
if %mMove% GTR 4 set /a mMove=%mMove%*10
if %mMove% GTR 4 set /a mMove=%mMove%/35
if %mMove% GTR 4 goto mLoop
:mChoice
if %mMove% EQU 1 goto m1
if %mMove% EQU 2 goto m2
if %mMove% EQU 3 goto m3
if %mMove% EQU 4 goto m4
echo mError
pause
goto exit

:m1
if %my% GTR %y% goto mDown
if %my% LSS %y% goto mUp
if %x% GTR %mx% goto mRight
if %x% LSS %mx% goto mLeft
echo Error at m1!
pause
goto exit

:m2
if %my% GTR %y% goto mDown
if %x% LSS %mx% goto mLeft
if %my% LSS %y% goto mUp
if %x% GTR %mx% goto mRight
echo Error at m2!
pause
goto callScreen

:m3
if %x% GTR %mx% goto mRight
if %x% LSS %mx% goto mLeft
if %my% LSS %y% goto mUp
if %my% GTR %y% goto mDown
echo Error at m3!
pause
goto callScreen

:m4
if %x% GTR %mx% goto mRight
if %my% GTR %y% goto mDown
if %my% LSS %y% goto mUp
if %x% LSS %mx% goto mLeft
echo Error at m4!
pause
goto callScreen

:mRight
set /a mx=%mx%+1
goto mAttack
:mLeft
set /a mx=%mx%-1
goto mAttack
:mUp
set /a my=%my%+1
goto mAttack
:mDown
set /a my=%my%-1
goto mAttack

:mAttack
if %mx% EQU %x% goto mAttackClose
if %rage% EQU 2 goto mMove
goto callScreen
:mAttackClose
if %my% EQU %y% goto damage
if %rage% EQU 2 goto mMove
goto callScreen
:damage
set message=A punishing blow! Will they stand and fight?!
set /a health=%health%-1
if %health% LSS 1 goto lose
goto pSet

:chargeY
if %y% GTR %my% goto chargeUp
goto chargeDown

:chargeUp
set message=A thunderous charge!
set /a my=%my%+1
if %my% EQU %y% goto damage
set /a my=%my%+1
if %my% EQU %y% goto damage
goto callscreen

:chargeDown
cls
set message=A blistering charge!
set /a my=%my%-1
if %my% EQU %y% goto damage
set /a my=%my%-1
if %my% EQU %y% goto damage
goto callscreen

:chargeX
if %x% GTR %mx% goto chargeRight
goto chargeLeft

:chargeRight
set /a mx=%mx%+1
if %mx% EQU %x% goto damage
set /a mx=%mx%+1
if %mx% EQU %x% goto damage
goto callScreen

:chargeLeft
set /a mx=%mx%-1
if %mx% EQU %x% goto damage
set /a mx=%mx%-1
if %mx% EQU %x% goto damage
goto callScreen

:fool
echo set win=0 >>%username%.bat
echo set lose=1 >>%username%.bat
echo set /a legend=%legend%-1 >>%username%.bat
cls
color 0c
echo YOU FOOL!
echo You either tried to spam
echo the attack button, or failed
echo to heed the warning in the
echo tutorial!
ping localhost -n 5 >nul
cls
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º             º
echo º   ±±±±±±±   º
ECHO º  ±²²²²²²²±  º
ECHO º ±²°°²²²°°²± º
ECHO º  ±²²²°²²²±  º
ECHO º   ±±²±²±±   º
ECHO º   ± ± ± ±   º
echo º             º
echo º   ±     ±   º
echo º    ±±±±±    º
echo º             º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍ¼
ping localhost -n 2 >nul
cls
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º             º
echo º   ±±±±±±±   º
ECHO º  ±²²²²²²²±  º
ECHO º ±²°°²²²°°²± º
ECHO º  ±²²²°²²²±  º
ECHO º   ±±²±²±±   º
ECHO º   ± ± ± ±   º
echo º   ±     ±   º
echo º    ±±±±±    º
echo º             º
echo º             º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍ¼
ping localhost -n 2 >nul
cls
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º             º
echo º   ±±±±±±±   º
ECHO º  ±²²²²²²²±  º
ECHO º ±²°°²²²°°²± º
ECHO º  ±²²²°²²²±  º
ECHO º   ±±²±²±±   º
ECHO º   ± ± ± ±   º
echo º             º
echo º   ±     ±   º
echo º    ±±±±±    º
echo º             º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍ¼
ping localhost -n 2 >nul
cls
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º             º
echo º   ±±±±±±±   º
ECHO º  ±²²²²²²²±  º
ECHO º ±²°°²²²°°²± º
ECHO º  ±²²²°²²²±  º
ECHO º   ±±²±²±±   º
ECHO º   ± ± ± ±   º
echo º   ±     ±   º
echo º    ±±±±±    º
echo º             º
echo º             º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍ¼
ping localhost -n 2 >nul
cls
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º             º
echo º   ±±±±±±±   º
ECHO º  ±²²²²²²²±  º
ECHO º ±²°°²²²°°²± º
ECHO º  ±²²²°²²²±  º
ECHO º   ±±²±²±±   º
ECHO º   ± ± ± ±   º
echo º             º
echo º   ±     ±   º
echo º    ±±±±±    º
echo º             º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍ¼
ping localhost -n 2 >nul
cls
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º             º
echo º   ±±±±±±±   º
ECHO º  ±²²²²²²²±  º
ECHO º ±²°°²²²°°²± º
ECHO º  ±²²²°²²²±  º
ECHO º   ±±²±²±±   º
ECHO º   ± ± ± ±   º
echo º   ±     ±   º
echo º    ±±±±±    º
echo º             º
echo º             º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍ¼
ping localhost -n 2 >nul
goto menu

:Lose
echo set /a lose=%lose%+1>>%username%.bat
cls
color 0c
echo You have lost.
ping localhost -n 5 >nul
cls
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º             º
echo º   ±±±±±±±   º
ECHO º  ±²²²²²²²±  º
ECHO º ±²°°²²²°°²± º
ECHO º  ±²²²°²²²±  º
ECHO º   ±±²±²±±   º
ECHO º   ± ± ± ±   º
echo º             º
echo º   ±     ±   º
echo º    ±±±±±    º
echo º             º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍ¼
ping localhost -n 2 >nul
cls
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º             º
echo º   ±±±±±±±   º
ECHO º  ±²²²²²²²±  º
ECHO º ±²°°²²²°°²± º
ECHO º  ±²²²°²²²±  º
ECHO º   ±±²±²±±   º
ECHO º   ± ± ± ±   º
echo º   ±     ±   º
echo º    ±±±±±    º
echo º             º
echo º             º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍ¼
ping localhost -n 2 >nul
cls
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º             º
echo º   ±±±±±±±   º
ECHO º  ±²²²²²²²±  º
ECHO º ±²°°²²²°°²± º
ECHO º  ±²²²°²²²±  º
ECHO º   ±±²±²±±   º
ECHO º   ± ± ± ±   º
echo º             º
echo º   ±     ±   º
echo º    ±±±±±    º
echo º             º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍ¼
ping localhost -n 2 >nul
cls
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º             º
echo º   ±±±±±±±   º
ECHO º  ±²²²²²²²±  º
ECHO º ±²°°²²²°°²± º
ECHO º  ±²²²°²²²±  º
ECHO º   ±±²±²±±   º
ECHO º   ± ± ± ±   º
echo º   ±     ±   º
echo º    ±±±±±    º
echo º             º
echo º             º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍ¼
ping localhost -n 2 >nul
cls
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º             º
echo º   ±±±±±±±   º
ECHO º  ±²²²²²²²±  º
ECHO º ±²°°²²²°°²± º
ECHO º  ±²²²°²²²±  º
ECHO º   ±±²±²±±   º
ECHO º   ± ± ± ±   º
echo º             º
echo º   ±     ±   º
echo º    ±±±±±    º
echo º             º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍ¼
ping localhost -n 2 >nul
cls
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º             º
echo º   ±±±±±±±   º
ECHO º  ±²²²²²²²±  º
ECHO º ±²°°²²²°°²± º
ECHO º  ±²²²°²²²±  º
ECHO º   ±±²±²±±   º
ECHO º   ± ± ± ±   º
echo º   ±     ±   º
echo º    ±±±±±    º
echo º             º
echo º             º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍ¼
ping localhost -n 2 >nul
goto menu

:victory
if %where% EQU ruins goto ruinsWin
if %health% EQU 5 goto stomp
if %health% GTR 3 goto insult
if %health% GTR 1 goto humiliation
if %health% EQU 1 goto worthy

:stomp
if %where% EQU crater goto trueUnderdog
if %where% EQU palace goto trueUnderdog
if %lose% GTR %win% goto underdog
echo set /a win=%win%+1 >>%username%.bat
cls
color 0a
echo An unstoppable glatorian has entered the arena!
echo The audience calls their name!
if %legend% GTR 3 echo Hail the legendary %username%!
pause
goto menu

:insult
echo set /a win=%win%+1 >>%username%.bat
cls
color 0e
echo Pah! Better warriors have we seen.
echo The audience demands a rematch!
pause
goto menu

:humiliation
echo set /a win=%win%+1 >>%username%.bat
cls
color 0c
echo A fool you are! Look at you, barely alive.
echo The audience is in an uproar!
if %legend% GTR 3 echo Shame to %username%!
pause
goto menu

:worthy
echo set /a win=%win%+1 >>%username%.bat
if %where% EQU crater goto trueUnderdog
if %where% EQU palace goto trueUnderdog
cls
color 0a
echo A BATTLE FOR THE AGES! NAY, A WAR!!!
echo THE AUDIANCE ROARS THE NAME OF THIS
echo WORTHY GLATORIAN!!!
pause
cls
echo ±±±   ±±±
echo ±²±±±±±²±
echo ±²²²²²²²±
echo  ±²²²²²±
echo   ±²²²±
echo   ±²²²±
echo  ±²²²²²±
echo ±±±±±±±±±
if %legend% GTR 3 echo Hail the legendary %username%!
pause
goto menu

:fluke
cls
color 0c
echo A MERE FLUKE!
echo A coward such as yourself could
echo never make it in the palace!
pause
goto menu

:underdog
if %timer% EQU 1 goto trueUnderdog
goto fluke
:trueUnderdog
cls
color 0e
echo set /a win=%win%+2 >>%username%.bat
echo set /a legend=%legend%+1>>%username%.bat
echo The audience stares in amazement.
ping localhost -n 5 >nul
cls
echo Today, let it be kown that %username% has
echo proven themselves as a worthy glatorian.
ping localhost -n 5 >nul
cls
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º                                   º
echo º              ±±±±±±±              º
echo º           ±±±       ±±±           º
echo º           ±²²±±±±±±±²²±           º
echo º           ±²²²²²²²²²²²±           º
echo º ±±±   ±±±  ±²²±²²²±²²±  ±±±   ±±± º
echo º ±²±±±±±²±  ±²²²±²±²²²±  ±²±±±±±²± º
echo º ±²²²²²²²±   ±²²²±²²²±   ±²²²²²²²± º
echo º  ±²²²²²±     ±²²±²²±     ±²²²²²±  º
echo º   ±²²²±      ±²²±²²±      ±²²²±   º
echo º   ±²²²±      ±²²±²²±      ±²²²±   º
echo º  ±²²²²²±   ±±²²²²²²²±±   ±²²²²²±  º
echo º ±±±±±±±±± ±±±±±±±±±±±±± ±±±±±±±±± º
echo º                                   º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ¼
if %legend% GTR 3 echo Hail the legendary %username%!
ping localhost -n 3 >nul
color 0a
ping localhost -n 3 >nul
color 0e
ping localhost -n 3 >nul
color 0a
ping localhost -n 3 >nul
color 0e
pause
goto menu

:ruinsWin
if %coin1% EQU no goto ruinsLose
if %coin2% EQU no goto ruinsLose
if %coin3% EQU no goto ruinsLose
if %coin4% EQU no goto ruinsLose
goto ruinsLegend
echo set /a win=%win%+1 >>%username%.bat
cls
echo Very well, you have defeated the beast...
ping localhost -n 3 >nul
echo but where is the gold!?!
pause
goto menu
:ruinsLegend
echo set /a win=%win%+1 >>%username%.bat
echo set /a legend=%legend%>>%username%.bat
cls
echo Behold! %username% the thunderquick!
echo Tonight, we feast!
pause
color 0e
cls
echo          ±±±±±±
echo       ±±±²²±±²²±±±
echo      ±²²²²²±±²²²²²±
echo     ±²²²²²±±±±²²²²²±
echo    ±²²²²²²²²²²²²²²²²±
echo    ±²²²²²²²±±²²²²²²²±
echo   ±²²²±²²²±  ±²²²±²²²±
echo   ±±±±±²²±    ±²²±±±±±
echo   ±²²²±²²²±  ±²²²±²²²±
echo    ±²²²²²²²±±²²²²²²²±
echo    ±²²²²²²²²²²²²²²²²±
echo     ±²²²²²±±±±²²²²²±
echo      ±²²²²²±±²²²²²±
echo       ±±±²²±±²²±±±
echo          ±±±±±±
ping localhost -n 2 >nul
cls
echo         ±±±  ±±±
echo      ±±±²²±  ±²²±±±
echo     ±²²²²²±  ±²²²²²±
echo    ±²²²²²±±  ±±²²²²²±
echo   ±²²²²²²²²±±²²²²²²²²±
echo   ±²²²²²²²±²²±²²²²²²²±
echo  ±²²²±²²²± ²² ±²²²±²²²±
echo  ±±±±±²²±  °°  ±²²±±±±±
echo  ±²²²±²²²± ±± ±²²²±²²²±
echo   ±²²²²²²²±  ±²²²²²²²±
echo   ±²²²²²²²²  ²²²²²²²²±
echo    ±²²²²²±±  ±±²²²²²±
echo     ±²²²²²±±±±²²²²²±
echo      ±±±²²±  ±²²±±±
echo         ±±±  ±±±
ping localhost -n 2 >nul
cls
echo        ±±±    ±±±
echo     ±±±²²±    ±²²±±±
echo    ±²²²²²±    ±²²²²²±
echo   ±²²²²²±±±±±±±±²²²²²±
echo  ±²²²²²²²²²²²²²²²²²²²²±
echo  ±²²²²²²²±²²²²±²²²²²²²±
echo ±²²²±²²²± ²²²² ±²²²±²²²±
echo ±±±±±²²±  ²°°²  ±²²±±±±±
echo ±²²²±²²²± ²±±² ±²²²±²²²±
echo  ±²²²²²²²±±  ±±²²²²²²²±
echo  ±²²²²²²²²    ²²²²²²²²±
echo   ±²²²²²±±±  ±±±²²²²²±
echo    ±²²²²²±±±±±±²²²²²±
echo     ±±±²²±    ±²²±±±
echo        ±±±    ±±±
ping localhost -n 2 >nul
cls
echo       ±±±      ±±±
echo    ±±±²²±      ±²²±±±
echo   ±²²²²²±      ±²²²²²±
echo  ±²²²²²±± ±±±± ±±²²²²²±
echo ±²²²²²²²²±²²²²±²²²²²²²²±
echo ±²²²²²²²±²²²²²²±²²²²²²²±
echo ²²²±²²²± °²²²²° ±²²²±²²²
echo ±±±±²²±  ²²°°²²  ±²²±±±±
echo ²²²±²²²± ±²±±²± ±²²²±²²²
echo ±²²²²²²²± ±  ± ±²²²²²²²±
echo ±²²²²²²²²      ²²²²²²²²±
echo  ±²²²²²±± ±  ± ±±²²²²²±
echo   ±²²²²²±±±±±±±±²²²²²±
echo    ±±±²²±      ±²²±±±
echo       ±±±      ±±±
ping localhost -n 2 >nul
cls
echo      ±±±        ±±±
echo   ±±±²²±        ±²²±±±
echo  ±²²²²²±        ±²²²²²±
echo ±²²²²²±±  ±±±±  ±±²²²²²±
echo ²²²²²²²²±±²²²²±±²²²²²²²²
echo ²²²²²²²±²²²²²²²²±²²²²²²²
echo ²²±²²²± °°²²²²°° ±²²²±²²
echo ±±±²²±  ²²²°°²²²  ±²²±±±
echo ²²±²²²± ²±²±±²±² ±²²²±²²
echo ²²²²²²²±± ±  ± ±±²²²²²²²
echo ²²²²²²²²        ²²²²²²²²
echo ±²²²²²±±± ±  ± ±±±²²²²²±
echo  ±²²²²²± ±±±±±± ±²²²²²±
echo   ±±±²²±        ±²²±±±
echo      ±±±        ±±±
ping localhost -n 2 >nul
cls
echo     ±±±          ±±±
echo  ±±±²²±          ±²²±±±
echo ±²²²²²±          ±²²²²²±
echo ²²²²²±±   ±±±±   ±±²²²²²
echo ²²²²²²²±±±²²²²±±±²²²²²²²
echo ²²²²²²±²²²²²²²²²²±²²²²²²
echo ²±²²²± ²°°²²²²°°² ±²²²±²
echo ±±²²±  ²²²²°°²²²²  ±²²±±
echo ²±²²²± ±²±²±±²±²± ±²²²±²
echo ²²²²²²±±± ±  ± ±±±²²²²²²
echo ²²²²²²²±        ±²²²²²²²
echo ²²²²²±± ± ±  ± ± ±±²²²²²
echo ±²²²²²±  ±±±±±±  ±²²²²²±
echo  ±±±²²±          ±²²±±±
echo     ±±±          ±±±
ping localhost -n 2 >nul
cls
echo    ±±±            ±±±
echo ±±±²²±            ±²²±±±
echo ²²²²²±            ±²²²²²
echo ²²²²±±    ±±±±    ±±²²²²
echo ²²²²²² ±±±²²²²±±± ²²²²²²
echo ²²²²²±±²²²²²²²²²²±±²²²²²
echo ±²²²± ±²°°²²²²°°²± ±²²²±
echo ±²²±  ±²²²²°°²²²²±  ±²²±
echo ±²²²±  ±²±²±±²±²±  ±²²²±
echo ²²²²²± ±± ±  ± ±± ±²²²²²
echo ²²²²²² ±        ± ²²²²²²
echo ²²²²±±  ± ±  ± ±  ±±²²²²
echo ²²²²²±   ±±±±±±   ±²²²²²
echo ±±±²²±            ±²²±±±
echo    ±±±            ±±±
ping localhost -n 2 >nul
cls
echo   ±±±              ±±±
echo ±±²²±              ±²²±±
echo ²²²²±              ±²²²²
echo ²²²±±     ±±±±     ±±²²²
echo ²²²²²  ±±±²²²²±±±  ²²²²²
echo ²²²²± ±²²²²²²²²²²± ±²²²²
echo ²²²±  ±²°°²²²²°°²±  ±²²²
echo ²²±   ±²²²²°°²²²²±   ±²²
echo ²²²±   ±²±²±±²±²±   ±²²²
echo ²²²²±  ±± ±  ± ±±  ±²²²²
echo ²²²²²  ±        ±  ²²²²²
echo ²²²±±   ± ±  ± ±   ±±²²²
echo ²²²²±    ±±±±±±    ±²²²²
echo ±±²²±              ±²²±±
echo   ±±±              ±±±
ping localhost -n 2 >nul
cls
echo  ±±±                ±±±
echo ±²²±                ±²²±
echo ²²²±                ±²²²
echo ²²±±      ±±±±      ±±²²
echo ²²²²   ±±±²²²²±±±   ²²²²
echo ²²²±  ±²²²²²²²²²²±  ±²²²
echo ²²±   ±²°°²²²²°°²±   ±²²
echo ²±    ±²²²²°°²²²²±    ±²
echo ²²±    ±²±²±±²±²±    ±²²
echo ²²²±   ±± ±  ± ±±   ±²²²
echo ²²²²   ±        ±   ²²²²
echo ²²±±    ± ±  ± ±    ±±²²
echo ²²²±     ±±±±±±     ±²²²
echo ±²²±                ±²²±
echo  ±±±                ±±±
ping localhost -n 2 >nul
cls
echo ±±±                  ±±±
echo ²²±                  ±²²
echo ²²±                  ±²²
echo ²±±       ±±±±       ±±²
echo ²²²    ±±±²²²²±±±    ²²²
echo ²²±   ±²²²²²²²²²²±   ±²²
echo ²±    ±²°°²²²²°°²±    ±²
echo ±     ±²²²²°°²²²²±     ±
echo ²±     ±²±²±±²±²±     ±²
echo ²²±    ±± ±  ± ±±    ±²²
echo ²²²    ±        ±    ²²²
echo ²±±     ± ±  ± ±     ±±²
echo ²²±      ±±±±±±      ±²²
echo ²²±                  ±²²
echo ±±±                  ±±±
ping localhost -n 2 >nul
cls
echo ±±                    ±±
echo ²±                    ±²
echo ²±                    ±²
echo ±±        ±±±±        ±±
echo ²²     ±±±²²²²±±±     ²²
echo ²±    ±²²²²²²²²²²±    ±²
echo ±     ±²°°²²²²°°²±     ±
echo       ±²²²²°°²²²²±
echo ±      ±²±²±±²±²±      ±
echo ²±     ±± ±  ± ±±     ±²
echo ²²     ±        ±     ²²
echo ±±      ± ±  ± ±      ±±
echo ²±       ±±±±±±       ±²
echo ²±                    ±²
echo ±±                    ±±
ping localhost -n 2 >nul
cls
color 0c
echo ±±                    ±±
echo ²±                    ±²
echo ²±                    ±²
echo ±±        ±±±±        ±±
echo ²²     ±±±²²²²±±±     ²²
echo ²±    ±²²²²²²²²²²±    ±²
echo ±     ±²°°²²²²°°²±     ±
echo       ±²²²²°°²²²²±
echo ±      ±²±²±±²±²±      ±
echo ²±     ±± ±  ± ±±     ±²
echo ²²     ±        ±     ²²
echo ±±      ± ±  ± ±      ±±
echo ²±       ±±±±±±       ±²
echo ²±                    ±²
echo ±±                    ±±
echo Did
ping localhost -n 2 >nul
cls
color 0c
echo ±±                    ±±
echo ²±                    ±²
echo ²±                    ±²
echo ±±        ±±±±        ±±
echo ²²     ±±±²²²²±±±     ²²
echo ²±    ±²²²²²²²²²²±    ±²
echo ±     ±²°°²²²²°°²±     ±
echo       ±²²²²°°²²²²±
echo ±      ±²±²±±²±²±      ±
echo ²±     ±± ±  ± ±±     ±²
echo ²²     ±        ±     ²²
echo ±±      ± ±  ± ±      ±±
echo ²±       ±±±±±±       ±²
echo ²±                    ±²
echo ±±                    ±±
echo Did your
ping localhost -n 2 >nul
cls
color 0c
echo ±±                    ±±
echo ²±                    ±²
echo ²±                    ±²
echo ±±        ±±±±        ±±
echo ²²     ±±±²²²²±±±     ²²
echo ²±    ±²²²²²²²²²²±    ±²
echo ±     ±²°°²²²²°°²±     ±
echo       ±²²²²°°²²²²±
echo ±      ±²±²±±²±²±      ±
echo ²±     ±± ±  ± ±±     ±²
echo ²²     ±        ±     ²²
echo ±±      ± ±  ± ±      ±±
echo ²±       ±±±±±±       ±²
echo ²±                    ±²
echo ±±                    ±±
echo Did your greed
ping localhost -n 2 >nul
cls
color 0c
echo ±±                    ±±
echo ²±                    ±²
echo ²±                    ±²
echo ±±        ±±±±        ±±
echo ²²     ±±±²²²²±±±     ²²
echo ²±    ±²²²²²²²²²²±    ±²
echo ±     ±²°°²²²²°°²±     ±
echo       ±²²²²°°²²²²±
echo ±      ±²±²±±²±²±      ±
echo ²±     ±± ±  ± ±±     ±²
echo ²²     ±        ±     ²²
echo ±±      ± ±  ± ±      ±±
echo ²±       ±±±±±±       ±²
echo ²±                    ±²
echo ±±                    ±±
echo Did your greed serve
ping localhost -n 2 >nul
cls
color 0c
echo ±±                    ±±
echo ²±                    ±²
echo ²±                    ±²
echo ±±        ±±±±        ±±
echo ²²     ±±±²²²²±±±     ²²
echo ²±    ±²²²²²²²²²²±    ±²
echo ±     ±²°°²²²²°°²±     ±
echo       ±²²²²°°²²²²±
echo ±      ±²±²±±²±²±      ±
echo ²±     ±± ±  ± ±±     ±²
echo ²²     ±        ±     ²²
echo ±±      ± ±  ± ±      ±±
echo ²±       ±±±±±±       ±²
echo ²±                    ±²
echo ±±                    ±±
echo Did your greed serve you
ping localhost -n 2 >nul
cls
color 0c
echo ±±                    ±±
echo ²±                    ±²
echo ²±                    ±²
echo ±±        ±±±±        ±±
echo ²²     ±±±²²²²±±±     ²²
echo ²±    ±²²²²²²²²²²±    ±²
echo ±     ±²°°²²²²°°²±     ±
echo       ±²²²²°°²²²²±
echo ±      ±²±²±±²±²±      ±
echo ²±     ±± ±  ± ±±     ±²
echo ²²     ±        ±     ²²
echo ±±      ± ±  ± ±      ±±
echo ²±       ±±±±±±       ±²
echo ²±                    ±²
echo ±±                    ±±
echo Did your greed serve you
echo well
ping localhost -n 2 >nul
cls
color 0c
echo ±±                    ±±
echo ²±                    ±²
echo ²±                    ±²
echo ±±        ±±±±        ±±
echo ²²     ±±±²²²²±±±     ²²
echo ²±    ±²²²²²²²²²²±    ±²
echo ±     ±²°°²²²²°°²±     ±
echo       ±²²²²°°²²²²±
echo ±      ±²±²±±²±²±      ±
echo ²±     ±± ±  ± ±±     ±²
echo ²²     ±        ±     ²²
echo ±±      ± ±  ± ±      ±±
echo ²±       ±±±±±±       ±²
echo ²±                    ±²
echo ±±                    ±±
echo Did your greed serve you
echo well...
ping localhost -n 2 >nul
cls
color 0c
echo ±±                    ±±
echo ²±                    ±²
echo ²±                    ±²
echo ±±        ±±±±        ±±
echo ²²     ±±±²²²²±±±     ²²
echo ²±    ±²²²²²²²²²²±    ±²
echo ±     ±²°°²²²²°°²±     ±
echo       ±²²²²°°²²²²±
echo ±      ±²±²±±²±²±      ±
echo ²±     ±± ±  ± ±±     ±²
echo ²²     ±        ±     ²²
echo ±±      ± ±  ± ±      ±±
echo ²±       ±±±±±±       ±²
echo ²±                    ±²
echo ±±                    ±±
echo Did your greed serve you
echo well...?
pause
goto menu

# data[].attributes.body
-1/3/2018 update
Dang, been a while since I made this little square. Anyhow, since I made mapper.bat I've improved a wee bit. While I haven't made a version of Mapper in a while, another project of mine called M-Slayer has come a long way. Walls can be recognized as more than just "sorry but you can't go beyond x=5", enemy AI has VASTLY improved,  and I've learned to make the screen tilt as you move around. While M-Slayer lacks the terrain editing potential of Mapper,  the combat is way more in-depth. The code's to the right, be sure to check the tutorial from the menu after you log in.

# data[].attributes.body
REM This is "Mapper.bat". It is bigger than most of my files, and a good example

REM of a basic game. I have smaller files that are in beta testing.

@echo off
color 0a
title Mapper
:origin
cls
set points=0
echo Welcome to Mapper.
echo -Instructions...
echo 1.) Use W,A,S, and D to move.
echo 2.) Use I to attack upwards, J to attack
echo to the left, K to attack below, and L to
echo attack to your right.
echo 3.) The goal of the game is to dig up the goal
echo area.
echo 4.) Try to get as many points as possible by
echo finding chests and earning points.
echo 5.) Use Q to dig.
pause
set foundmc=
set tree=
set visit=
set f1=
set f2=
set z=
set foundm=
set max=5
set health=10
set gold=0
set character=X
set x=3
set y=3
set beast=15
set beast2=10
set x1,y1=
set x1,y2=
set x1,y3=
set x1,y4=
set x1,y5=
set x2,y1=
set x2,y2=
set x2,y3=
set x2,y4=
set x2,y5=
set x3,y1=
set x3,y2=
set x3,y3=
set x3,y4=
set x3,y5=
set x4,y1=
set x4,y2=
set x4,y3=
set x4,y4=
set x4,y5=
set x5,y1=
set x5,y2=
set x5,y3=
set x5,y4=
set x5,y5=
set x6,y1=
set x6,y2=
set x6,y3=
set x6,y4=
set x6,y5=
set x7,y1=
set x7,y2=
set x7,y3=
set x7,y4=
set x7,y5=
set x8,y1=
set x8,y2=
set x8,y3=
set x8,y4=
set x8,y5=
set x9,y1=
set x9,y2=
set x9,y3=
set x9,y4=
set x9,y5=
set x10,y1=
set x10,y2=
set x10,y3=
set x10,y4=
set x10,y5=
:screen
if %beast% EQU 0 set beast=15
if %beast% EQU -1 goto locator
if %beast% EQU 1 goto beasty
set /a beast=%beast%-1
goto locator
:beasty
set beast=-1
set bx=5
set by=5
:locator
set n1,n1=%x1,y1%
set n1,n2=%x1,y2%
set n1,n3=%x1,y3%
set n1,n4=%x1,y4%
set n1,n5=%x1,y5%
set n2,n1=%x2,y1%
set n2,n2=%x2,y2%
set n2,n3=%x2,y3%
set n2,n4=%x2,y4%
set n2,n5=%x2,y5%
set n3,n1=%x3,y1%
set n3,n2=%x3,y2%
set n3,n3=%x3,y3%
set n3,n4=%x3,y4%
set n3,n5=%x3,y5%
set n4,n1=%x4,y1%
set n4,n2=%x4,y2%
set n4,n3=%x4,y3%
set n4,n4=%x4,y4%
set n4,n5=%x4,y5%
set n5,n1=%x5,y1%
set n5,n2=%x5,y2%
set n5,n3=%x5,y3%
set n5,n4=%x5,y4%
set n5,n5=%x5,y5%
set n6,n1=%x6,y1%
set n6,n2=%x6,y2%
set n6,n3=%x6,y3%
set n6,n4=%x6,y4%
set n6,n5=%x6,y5%
set n7,n1=%x7,y1%
set n7,n2=%x7,y2%
set n7,n3=%x7,y3%
set n7,n4=%x7,y4%
set n7,n5=%x7,y5%
set n8,n1=%x8,y1%
set n8,n2=%x8,y2%
set n8,n3=%x8,y3%
set n8,n4=%x8,y4%
set n8,n5=%x8,y5%
set n9,n1=%x9,y1%
set n9,n2=%x9,y2%
set n9,n3=%x9,y3%
set n9,n4=%x9,y4%
set n9,n5=%x9,y5%
set n10,n1=%x10,y1%
set n10,n2=%x10,y2%
set n10,n3=%x10,y3%
set n10,n4=%x10,y4%
set n10,n5=%x10,y5%
cls
set n%x%,n%y%=%character%
set n%bx%,n%by%=Y
set n%mx%,n%my%=M
if %health% LSS 0 goto lose
echo ÉÍÍÍÍÍÍÍÍÍÍÍ»
echo º%n1,n5%%n2,n5%%n3,n5%%n4,n5%%n5,n5%º%n6,n5%%n7,n5%%n8,n5%%n9,n5%%n10,n5%º
echo º%n1,n4%%n2,n4%%n3,n4%%n4,n4%%n5,n4%º%n6,n4%%n7,n4%%n8,n4%%n9,n4%%n10,n4%º
echo º%n1,n3%%n2,n3%%n3,n3%%n4,n3%%n5,n3%º%n6,n3%%n7,n3%%n8,n3%%n9,n3%%n10,n3%º
echo º%n1,n2%%n2,n2%%n3,n2%%n4,n2%%n5,n2%º%n6,n2%%n7,n2%%n8,n2%%n9,n2%%n10,n2%º
echo º%n1,n1%%n2,n1%%n3,n1%%n4,n1%%n5,n1%º%n6,n1%%n7,n1%%n8,n1%%n9,n1%%n10,n1%º
echo ÈÍÍÍÍÍÍÍÍÍÍÍ¼
echo Health: %health%
echo Coins: %gold%
:control
choice /c:wasdqijkl%foundm%
%foundmc%
if errorlevel 9 goto aright
if errorlevel 8 goto adown
if errorlevel 7 goto aleft
if errorlevel 6 goto aup
if errorlevel 5 goto dig
if errorlevel 4 goto right
if errorlevel 3 goto down
if errorlevel 2 goto left
if errorlevel 1 goto up
:right
set /a future=%x%+1
if %future% GTR %max% goto chest
set /a x=%x%+1
goto chest
:down
set /a future=%y%-1
if %future% LSS 1 goto chest
set /a y=%y%-1
goto chest
:left
set /a future=%x%-1
if %future% LSS 1 goto screen
set /a x=%x%-1
goto chest
:up
set /a future=%y%+1
if %future% GTR 5 goto chest
set /a y=%y%+1
goto chest
:dig
set x%x%,y%y%=±
goto chest
:fill
set x%x%,y%y%=Û
goto chest
:aup
set /a fy=%y%+1
set fx=%x%
if "%fx%"=="%bx%" if "%fy%"=="%by%" goto attack
goto chest
:aleft
set /a fx=%x%-1
set fy=%y%
if "%fx%"=="%bx%" if "%fy%"=="%by%" goto attack
goto chest
:adown
set /a fy=%y%-1
set fx=%x%
if "%fx%"=="%bx%" if "%fy%"=="%by%" goto attack
goto chest
:aright
set /a fx=%x%+1
set fy=%y%
if "%fx%"=="%bx%" if "%fy%"=="%by%" goto attack
goto chest
:attack
set /a stat=%stat%+1
set bx=0
set by=0
set beast=0
set /a health=%health%+1
goto chest

:chest
if "%n10,n1%"=="X" if "%x10,y1%"=="±" goto goal
if "%n1,n1%"=="X" if "%x1,y1%"=="±" if not "%f1%"=="1" goto found1
if "%n5,n5%"=="X" if "%x5,y5%"=="±" if not "%f2%"=="1" goto found2
if "%n3,n5%"=="X" if "%x3,y5%"=="±" goto foundshop
if "%n5,n3%"=="X" if "%x5,y3%"=="±" if not "%z%"=="1" goto foundroom
if "%n8,n4%"=="X" if "%x8,y4%"=="±" if not "%foundm%"=="e" goto foundmound
goto moundcheck
:found1
set /a stat=%stat%+1
cls
echo You have found a chest!
set f1=1
set /a gold=%gold%+500
echo You now have %gold% coins!
ping localhost -n 3 >nul
goto moundcheck
:found2
set /a stat=%stat%+1
set f2=1
cls
echo You have found a chest!
set /a gold=%gold%+500
echo You have %gold% coins!
ping localhost -n 3 >nul
goto screen
:foundshop
set /a stat=%stat%+1
set x3,y5=
goto shop
:foundroom
set /a stat=%stat%+1
set z=1
set max=10
cls
echo You can now go into the adjacent room!
ping localhost -n 3 >nul
goto screen
:foundmound
set /a stat=%stat%+1
cls
echo You Have found a chest!
set /a gold=%gold%+500
echo You have %gold% coins!
ping localhost -n 3 >nul
cls
echo You have unlocked the "fill"
echo ability! Use it to fill pits
echo and create mounds!
echo (Activate with "e")
ping localhost -n 5 >nul
set foundm=e
set foundmc=if errorlevel 10 goto fill
goto screen

:moundcheck
if "%n1,n5%"=="X" if "%x1,y1%"=="Û" if not "%tree%"=="1" goto tree
if "%n1,n5%"=="X" if "%x1,y1%"=="Û" if "%tree%"=="1" if "%visit%"=="1" goto firstv
if "%n1,n5%"=="X" if "%x1,y1%"=="Û" if "%tree%"=="1" if "%visit%"=="2" goto secondv
if "%n1,n5%"=="X" if "%x1,y1%"=="Û" if "%tree%"=="1" if "%visit%"=="3" goto thirdv
goto thebeast
:tree
set /a stat=%stat%+1
cls
echo You have planted a tree! Come back here once to
echo water, and once to nurture, then the next time
echo you come you will get one free health!
ping localhost -n 4 >nul
set visit=1
goto screen
:firstv
set /a stat=%stat%+1
set visit=2
cls
echo Watering.
ping localhost -n 2 >nul
cls
echo Watering..
ping localhost -n 2 >nul
cls
echo Watering...
ping localhost -n 2 >nul
cls
echo The tree is happy for you!
echo Come again soon!
ping localhost -n 3 >nul
goto screen
:secondv
set /a stat=%stat%+1
set visit=3
cls
echo Picking apples...
ping localhost -n 2 >nul
cls
echo Trimming dead leaves...
ping localhost -n 2 >nul
csl
echo Removing parasites...
ping localhost -n 2 >nul
cls
echo The tree is happy for you!
echo Come again soon!
ping localhost -n 3 >nul
goto screen
:thirdv
set /a stat=%stat%+1
set visit=1
set /a health=%health%+1
cls
echo The tree has given you a life!
echo Keep taking care of your tree!
ping localhost -n 3 >nul
goto screen

:thebeast
if %beast% GTR -1 goto screen
if %beast% EQU 0 goto screen
if %bx% GTR %x% goto bleft
if %by% GTR %y% goto bdown
if %bx% LSS %x% goto bright
if %by% LSS %y% goto bup
goto ouch
:bleft
set /a bfuture=%bx%-1
if "%bfuture%"=="%x%" if "%by%"=="%y%" goto ouch
if "n%bfuture%,n%by%"=="±" goto trip
set bx=%bfuture%
goto monster
:bright
set /a bfuture=%bx%+1
if "%bfuture%"=="%x%" if "%by%"=="%y%" goto ouch
set bx=%bfuture%
goto monster
:bdown
set /a bfuture=%by%-1
if "%bx%"=="%x%" if "%bfuture%"=="%y%" goto ouch
set by=%bfuture%
if %by% LSS 1 set beast=0
goto monster
:bup
set /a future=%by%+1
if "%bx%"=="%x%" if "%bfuture%"=="%y%" goto ouch
set by=%future%
goto monster
:ouch
set bx=0
set by=0
set beast=0
set /a health=%health%-3
goto monster
:monster
goto screen
:shop
cls
echo Welcome to the shop!
echo Coins: %gold%
echo 1.) Exit
echo 2.) Help (Free)
echo 3.) Health (100)
echo 4.) Secret (1000)
choice /c:1234
if errorlevel 4 goto secret
if errorlevel 3 goto healthier
if errorlevel 2 goto help
if errorlevel 1 goto screen
:help
cls
echo Q: shovel
echo W: up
echo A: left
echo S: down
echo D: right
echo E: shop
echo Every so often a beast will enter the field.
echo If it hits you you will lose life.
pause
goto screen
:healthier
if %health% EQU 10 goto shop
if %gold% LSS 100 goto shop
set health=10
set /a gold=%gold%-100
goto shop
:secret
if %gold% LSS 1000 goto shop
set /a gold=%gold%-1000
set /a gotos=%gotos%+1
if %gotos% GTR 2 set gotos=1
goto shops%gotos%
:shops1
cls
echo Head 5 units right, then 1 unit down, then dig.
ping localhost -n 3 >nul
goto shop
:shops2
cls
echo Try filling some of those holes youv'e dug.
ping localhost -n 3 >nul
goto shop

:goal
set praise=0
set /a points=%gold%/100+%stat%
:screens1
cls
echo You win!
echo Û Û Û Û Û
echo  Û Û Û Û
echo Û Û Û Û Û
echo You have %points% points!
ping localhost -n 2 >nul
set /a praise=%praise%+1
if %praise% GTR 5 goto origin
:screens2
cls
echo You win!
echo  Û Û Û Û
echo Û Û Û Û Û
echo  Û Û Û Û
echo You have %points% points!
ping localhost -n 2 >nul
set /a praise=%praise%+1
goto screens1
:lose
set taunt=0
set spacer=
:screen1
set spacer=%spacer%
cls
echo. You have lost.
echo.
echo.%spacer%  ÛÛÛÛÛ  %spacer%
echo.%spacer% Û  Û  Û %spacer%
echo.%spacer%  ÛÛÛÛÛ  %spacer%
echo.%spacer%  Û Û Û  %spacer%
echo.%spacer%  %spacer%
echo.%spacer%  %spacer%
echo.%spacer%  Û Û  %spacer%
echo.%spacer%  Û  %spacer%
echo.%spacer%  Û Û  %spacer%
ping localhost -n 2 >nul
:screen2
set spacer=%spacer%Û
cls
echo. You have lost.
echo.
echo.%spacer%  ÛÛÛÛÛ  %spacer%
echo.%spacer% Û  Û  Û %spacer%
echo.%spacer%  ÛÛÛÛÛ  %spacer%
echo.%spacer%  Û Û Û  %spacer%
echo.%spacer%  %spacer%
echo.%spacer%  Û  Û  %spacer%
echo.%spacer%  Û Û  %spacer%
echo.%spacer%  Û  %spacer%
echo.%spacer%  Û Û  %spacer%
echo.%spacer%  Û  Û  %spacer%
set /a taunt=%taunt%+1
if %taunt% GTR 4 goto origin
ping localhost -n 2 >nul
goto screen1

# data[].attributes.body
Hey there. I am looking for ideas

for batch file games. WARNING!

I can't program in graphics, or

make opponents move while you

are sitting still. Google "How to make

a batch file" to learn more. I will put

some example script here, so just

copy it into notepad and save as

(anything).bat.

(A good example of my early work

is at right. It is not the best I have,

but it should get you started).