loading

I made this recently and thought why not release this it is not even close to being finished but you can modify it if you like. I will be finishing it at some point and I'll post the finished code. Just download the .txt and convert to .bat or just download the .bat file

===================================================================================

Features:

-Save creating and loading

-Random events that impact game play

-Multiple Choices to choose including ethical implications

-A Scores leader board

===================================================================================

The finished program will probably have increased difficulty and WAY more stuff :)

<p>Cool batch code. Thanks for sharing. </p>
<p>Not done yet I have had a bunch of them building up in a folder</p>
<p>Here's another that I made:</p><p>@ECHO OFF</p><p>:RESTART</p><p>CLS</p><p>COLOR 0F</p><p>TITLE GLADIATOR BATTLES</p><p>SET RAND1=0</p><p>SET RAND2=0</p><p>SET RAND3=0</p><p>SET RAND4=0</p><p>SET RAND5=0</p><p>SET HEALTH=100</p><p>SET NAME=</p><p>SET GOLD=0</p><p>SET LEVEL=1</p><p>SET SKILL1=1</p><p>SET SKILL2=1</p><p>SET SKILL3=1</p><p>SET SKILL4=1</p><p>SET SKILL5=1</p><p>SET WEAPON=SHARP ROCK</p><p>SET SKPOINTS=5</p><p>ECHO WELCOME TO GLADIATOR BATTLES!</p><p>ECHO YOU WILL START WITH YOUR SHARP ROCK </p><p>ECHO AND WILL BATTLE FOR ENDLESS GLORY.</p><p>ECHO.</p><p>SET /P NAME=&quot;WHAT IS YOUR NAME GLADIATOR? &quot;</p><p>CLS</p><p>ECHO WHAT IS YOUR TITLE?</p><p>ECHO.</p><p>ECHO 1) THE SMITER</p><p>ECHO 2) THE UNBOUND</p><p>ECHO 3) THE DESTROYER</p><p>ECHO 4) THE PUNISHER</p><p>ECHO 5) THE SUPERIOR</p><p>ECHO 6) THE INTIMIDATING</p><p>ECHO 7) THE UNDEFEATED</p><p>ECHO 8) THE BEAST</p><p>ECHO 9) THE WRATH-BRINGER</p><p>CHOICE /C 123456789 &gt;NUL</p><p>IF %ERRORLEVEL%==1 GOTO TITLE1</p><p>IF %ERRORLEVEL%==2 GOTO TITLE2</p><p>IF %ERRORLEVEL%==3 GOTO TITLE3</p><p>IF %ERRORLEVEL%==4 GOTO TITLE4</p><p>IF %ERRORLEVEL%==5 GOTO TITLE5</p><p>IF %ERRORLEVEL%==6 GOTO TITLE6</p><p>IF %ERRORLEVEL%==7 GOTO TITLE7</p><p>IF %ERRORLEVEL%==8 GOTO TITLE8</p><p>IF %ERRORLEVEL%==9 GOTO TITLE9</p><p>:TITLE1</p><p>SET NAME=%NAME% THE SMITER</p><p>GOTO BEGIN</p><p>:TITLE2</p><p>SET NAME=%NAME% THE UNBOUND</p><p>GOTO BEGIN</p><p>:TITLE3</p><p>SET NAME=%NAME% THE DESTROYER</p><p>GOTO BEGIN</p><p>:TITLE4</p><p>SET NAME=%NAME% THE PUNISHER</p><p>GOTO BEGIN</p><p>:TITLE5</p><p>SET NAME=%NAME% THE SUPERIOR</p><p>GOTO BEGIN</p><p>:TITLE6</p><p>SET NAME=%NAME% THE INTIMIDATING</p><p>GOTO BEGIN</p><p>:TITLE7</p><p>SET NAME=%NAME% THE UNDEFEATED</p><p>GOTO BEGIN</p><p>:TITLE8</p><p>SET NAME=%NAME% THE BEAST</p><p>GOTO BEGIN</p><p>:TITLE9</p><p>SET NAME=%NAME% THE WRATH-BRINGER</p><p>GOTO BEGIN</p><p>:BEGIN</p><p>CLS</p><p>ECHO ===========================</p><p>ECHO CHARACTER: %NAME%</p><p>ECHO HEALTH: %HEALTH%</p><p>ECHO GOLD: %GOLD% </p><p>ECHO LEVEL: %LEVEL% </p><p>ECHO WEAPON: %WEAPON%</p><p>ECHO ===========================</p><p>ECHO.</p><p>ECHO CHOOSE YOUR SKILLS.</p><p>ECHO.</p><p>ECHO SKILL POINTS REMAINING %SKPOINTS%</p><p>ECHO.</p><p>ECHO 1.) ATTACK (INCREASES CHANCE OF HIT) LEVEL:%SKILL1%</p><p>ECHO 2.) STRENGTH (INCREASES DAMAGE) LEVEL:%SKILL2%</p><p>ECHO 3.) LUCK (INCREASES GOLD FOUND) LEVEL:%SKILL3%</p><p>ECHO 4.) HEALTH (INCREASES HEALTH) LEVEL:%SKILL4%</p><p>ECHO.</p><p>IF %SKPOINTS% EQU 0 GOTO STARTGAME</p><p>CHOICE /C 12345 &gt;NUL</p><p>IF %ERRORLEVEL%==1 GOTO SKILL1</p><p>IF %ERRORLEVEL%==2 GOTO SKILL2</p><p>IF %ERRORLEVEL%==3 GOTO SKILL3</p><p>IF %ERRORLEVEL%==4 GOTO SKILL4</p><p>:SKILL1</p><p>SET /A SKILL1=%SKILL1% + 1</p><p>SET /A SKPOINTS=%SKPOINTS% - 1</p><p>GOTO BEGIN</p><p>:SKILL2</p><p>SET /A SKILL2=%SKILL2% + 1</p><p>SET /A SKPOINTS=%SKPOINTS% - 1</p><p>GOTO BEGIN</p><p>:SKILL3</p><p>SET /A SKILL3=%SKILL3% + 1</p><p>SET /A SKPOINTS=%SKPOINTS% - 1</p><p>GOTO BEGIN</p><p>:SKILL4</p><p>SET /A SKILL4=%SKILL4% + 1</p><p>SET /A SKPOINTS=%SKPOINTS% - 1</p><p>SET /A HEALTH=%HEALTH% + 100</p><p>GOTO BEGIN</p><p>:STARTGAME</p><p>SET DIFFICULTY=1</p><p>SET </p><p>CLS</p><p>ECHO ===========================</p><p>ECHO CHARACTER: %NAME%</p><p>ECHO HEALTH: %HEALTH%</p><p>ECHO GOLD: %GOLD% </p><p>ECHO LEVEL: %LEVEL% </p><p>ECHO WEAPON: %WEAPON%</p><p>ECHO ===========================</p><p>ECHO.</p><p>ECHO YOU FIRST BATTLE HAS BEGUN!</p><p>CLS</p><p>TIMEOUT /T 2 /NOBREAK &gt; NUL</p><p>SET /A RAND1=%RANDOM%%%10 + 1</p><p>SET /A ENEMYHEALTH=100 + (%RANDOM%%%2 + 1)</p><p>SET /A ENEMYGOLD=%RANDOM%%%10 + %RANDOM%%%SKILL3%</p><p>SET /A ENEMYLEVEL=%RANDOM%%%2 + 1 + %DIFFICULTY%</p><p>SET ENEMYWEAPON=STICK</p><p>GOTO RANDF</p><p>:STARTGAMENEW</p><p>CLS</p><p>IF &quot;%WEAPON%&quot;==&quot;SWORD&quot; SET BONUS=5</p><p>IF &quot;%WEAPON%&quot;==&quot;BATTLEAXE&quot; SET BONUS=9</p><p>IF &quot;%WEAPON%&quot;==&quot;SHARP MACE&quot; SET BONUS=8</p><p>IF &quot;%WEAPON%&quot;==&quot;SHARPENED DAGGER&quot; SET BONUS=6</p><p>IF &quot;%WEAPON%&quot;==&quot;LONGSWORD&quot; SET BONUS=10</p><p>IF &quot;%WEAPON%&quot;==&quot;BLUNDERBUSS&quot; SET BONUS=50</p><p>IF &quot;%WEAPON%&quot;==&quot;CUSTOMISED CLUB&quot; SET BONUS=7</p><p>IF &quot;%WEAPON%&quot;==&quot;SMALL HATCHET&quot; SET BONUS=4</p><p>IF &quot;%WEAPON%&quot;==&quot;MORNING STAR&quot; SET BONUS=11</p><p>IF &quot;%WEAPON%&quot;==&quot;DULL SHOVEL&quot; SET BONUS=1</p><p>IF &quot;%WEAPON%&quot;==&quot;SPIKED KNUCKLES&quot; SET BONUS=2</p><p>IF &quot;%WEAPON%&quot;==&quot;SERRATED METAL&quot; SET BONUS=3</p><p>SET /A RAND1=%RANDOM%%%11 + 1</p><p>SET /A RAND2=%RANDOM%%%11 + 1</p><p>SET /A ADD=100 * %DIFFICULTY% / 2</p><p>IF %ADD% GTR 400 (SET ADD=400)</p><p>SET /A ENEMYHEALTH=100 + %ADD%</p><p>SET /A ENEMYGOLD=%RANDOM%%%10 + %SKILL3%</p><p>SET /A ENEMYLEVEL=%RANDOM%%%%DIFFICULTY% + 1</p><p>IF %ENEMYLEVEL% GTR 20 (SET ENEMYLEVEL=20)</p><p>SET /A RAND2=%RANDOM%%%10 + 1</p><p>GOTO RANDF2</p><p>:RANDF</p><p>IF %RAND1%==1 (SET ENEMY=GOBLIN)</p><p>IF %RAND1%==2 (SET ENEMY=TROLL)</p><p>IF %RAND1%==3 (SET ENEMY=ORC)</p><p>IF %RAND1%==4 (SET ENEMY=ELF)</p><p>IF %RAND1%==5 (SET ENEMY=OGRE)</p><p>IF %RAND1%==6 (SET ENEMY=GLADIATOR)</p><p>IF %RAND1%==7 (SET ENEMY=SLAVE)</p><p>IF %RAND1%==8 (SET ENEMY=PEASANT)</p><p>IF %RAND1%==9 (SET ENEMY=PRIDE FIGHTER)</p><p>IF %RAND1%==10 (SET ENEMY=KNIGHT)</p><p>SET RHEALTH=%HEALTH%</p><p>GOTO STARTFIGHT</p><p>:RANDF2</p><p>IF %RAND1%==1 (SET ENEMY=GOBLIN)</p><p>IF %RAND1%==2 (SET ENEMY=TROLL)</p><p>IF %RAND1%==3 (SET ENEMY=ORC)</p><p>IF %RAND1%==4 (SET ENEMY=ELF)</p><p>IF %RAND1%==5 (SET ENEMY=OGRE)</p><p>IF %RAND1%==6 (SET ENEMY=GLADIATOR)</p><p>IF %RAND1%==7 (SET ENEMY=SLAVE)</p><p>IF %RAND1%==8 (SET ENEMY=PEASANT)</p><p>IF %RAND1%==9 (SET ENEMY=PRIDE FIGHTER)</p><p>IF %RAND1%==10 (SET ENEMY=KNIGHT)</p><p>IF %RAND1%==11 (SET ENEMY=DRAGON)</p><p>IF %RAND2%==1 (SET ENEMYWEAPON=SWORD)</p><p>IF %RAND2%==2 (SET ENEMYWEAPON=BATTLEAXE)</p><p>IF %RAND2%==3 (SET ENEMYWEAPON=SHARP MACE)</p><p>IF %RAND2%==4 (SET ENEMYWEAPON=SHARPENED DAGGER)</p><p>IF %RAND2%==5 (SET ENEMYWEAPON=LONGSWORD)</p><p>IF %RAND2%==6 (SET ENEMYWEAPON=CUSTOMISED CLUB)</p><p>IF %RAND2%==7 (SET ENEMYWEAPON=SMALL HATCHET)</p><p>IF %RAND2%==8 (SET ENEMYWEAPON=MORNING STAR)</p><p>IF %RAND2%==9 (SET ENEMYWEAPON=DULL SHOVEL)</p><p>IF %RAND2%==10 (SET ENEMY WEAPON=SPIKED KNUCKLES)</p><p>IF %RAND2%==11 (SET ENEMY WEAPON=SERRATED METAL)</p><p>SET RHEALTH=%HEALTH%</p><p>IF &quot;%ENEMY%&quot;==&quot;DRAGON&quot; (SET /A ENEMYHEALTH=%ENEMYHEALTH + 500 &amp;&amp; SET ENEMYWEAPON=DRAGON'S TALONS)</p><p>GOTO STARTFIGHT</p><p>:REBATTLE</p><p>IF %ENEMYHEALTH% LEQ 0 GOTO WON</p><p>IF %HEALTH% LEQ 0 GOTO LOSE</p><p>SET /A ATTPER1=60 + %SKILL1%</p><p>SET /A ATTPER2=40 + %SKILL1%</p><p>SET /A ATTPER3=20 + %SKILL1%</p><p>CLS</p><p>:STARTFIGHT</p><p>SET /A ATTPER1=45 + %SKILL1%</p><p>SET /A ATTPER2=25 + %SKILL1%</p><p>SET /A ATTPER3=5 + %SKILL1%</p><p>ECHO ===========================</p><p>ECHO CHARACTER: %NAME%</p><p>ECHO HEALTH: %HEALTH%</p><p>ECHO GOLD: %GOLD%</p><p>ECHO LEVEL: %LEVEL%</p><p>ECHO WEAPON: %WEAPON%</p><p>ECHO ===========================</p><p>ECHO.</p><p>ECHO ===========================</p><p>ECHO ENEMY: %ENEMY%</p><p>ECHO HEALTH: %ENEMYHEALTH%</p><p>ECHO GOLD: %ENEMYGOLD%</p><p>ECHO LEVEL: %ENEMYLEVEL%</p><p>ECHO WEAPON: %ENEMYWEAPON%</p><p>ECHO ===========================</p><p>ECHO.</p><p>ECHO 1.) ACCURATE ATTACK (%ATTPER1%%% CHANCE OF HIT)</p><p>ECHO 2.) NORMAL ATTACK (%ATTPER2%%% CHANCE OF HIT)</p><p>ECHO 3.) POWER ATTACK (%ATTPER3%%% CHANCE OF HIT)</p><p>CHOICE /C 123 &gt; NUL</p><p>IF %ERRORLEVEL%==1 (SET /A HIT=%ATTPER1%)</p><p>IF %ERRORLEVEL%==2 (SET /A HIT=%ATTPER2%)</p><p>IF %ERRORLEVEL%==3 (SET /A HIT=%ATTPER3%)</p><p>IF %ERRORLEVEL%==1 (SET /A DAM=1)</p><p>IF %ERRORLEVEL%==2 (SET /A DAM=8)</p><p>IF %ERRORLEVEL%==3 (SET /A DAM=20)</p><p>SET /A ATTACKHIT=%RANDOM%%%100 + 1</p><p>IF %ATTACKHIT% LEQ %HIT% GOTO YOUHIT</p><p>SET DAMAGE=0</p><p>GOTO ENEMYATTACK</p><p>:YOUHIT</p><p>SET BONUS=0</p><p>SET /A DAMAGE=%RANDOM%%%10 + 1 + %BONUS% + %SKILL2% + %DAM%</p><p>SET /A ENEMYHEALTH=%ENEMYHEALTH% - %DAMAGE%</p><p>GOTO ENEMYATTACK</p><p>:ENEMYATTACK</p><p>SET /A ENEMYHIT=%RANDOM%%%70 + %ENEMYLEVEL% + %ENEMYLEVEL%</p><p>SET /A ENEMYATTACKHIT=%RANDOM%%%100 + 1</p><p>IF %ENEMYATTACKHIT% LEQ %ENEMYHIT% GOTO ENEMYHIT</p><p>SET ENEMYDAMAGE=0</p><p>GOTO REBATTLE</p><p>:ENEMYHIT</p><p>SET /A ENEMYDAMAGE=%RANDOM%%%10 + 1 + %ENEMYLEVEL%</p><p>SET /A HEALTH=%HEALTH% - %ENEMYDAMAGE%</p><p>GOTO REBATTLE</p><p>:LOSE</p><p>CLS</p><p>ECHO YOU DIED! GAME RESTARTING . . .</p><p>TIMEOUT /T 2 /NOBREAK &gt; NUL</p><p>GOTO RESTART</p><p>:WON</p><p>SET /A HEALTH=%RHEALTH%</p><p>CLS</p><p>ECHO YOU WON! YOU RECIEVE %ENEMYGOLD% GOLD AND 3 SKILL POINTS</p><p>SET /A GOLD=%GOLD% + %ENEMYGOLD%</p><p>SET DIFFICULTY=%DIFFICULTY% + 2</p><p>SET SKPOINTS=3</p><p>SET /A LEVEL=%LEVEL% + 1</p><p>GOTO SK</p><p>:WON1</p><p>CLS</p><p>:SK</p><p>ECHO ===========================</p><p>ECHO CHARACTER: %NAME%</p><p>ECHO HEALTH: %HEALTH%</p><p>ECHO GOLD: %GOLD% </p><p>ECHO LEVEL: %LEVEL% </p><p>ECHO WEAPON: %WEAPON%</p><p>ECHO ===========================</p><p>ECHO.</p><p>ECHO CHOOSE YOUR SKILLS.</p><p>ECHO.</p><p>ECHO SKILL POINTS REMAINING %SKPOINTS%</p><p>ECHO.</p><p>ECHO 1.) ATTACK (INCREASES CHANCE OF HIT) LEVEL:%SKILL1%</p><p>ECHO 2.) STRENGTH (INCREASES DAMAGE) LEVEL:%SKILL2%</p><p>ECHO 3.) LUCK (INCREASES GOLD FOUND) LEVEL:%SKILL3%</p><p>ECHO 4.) HEALTH (INCREASES HEALTH) LEVEL:%SKILL4%</p><p>ECHO.</p><p>IF %SKPOINTS% EQU 0 GOTO STORE</p><p>CHOICE /C 12345 &gt;NUL</p><p>IF %ERRORLEVEL%==1 GOTO SKILL10</p><p>IF %ERRORLEVEL%==2 GOTO SKILL20</p><p>IF %ERRORLEVEL%==3 GOTO SKILL30</p><p>IF %ERRORLEVEL%==4 GOTO SKILL40</p><p>:SKILL10</p><p>IF %SKILL1% EQU 30 GOTO PREV</p><p>SET /A SKILL1=%SKILL1% + 1</p><p>SET /A SKPOINTS=%SKPOINTS% - 1</p><p>GOTO WON1</p><p>:SKILL20</p><p>SET /A SKILL2=%SKILL2% + 1</p><p>SET /A SKPOINTS=%SKPOINTS% - 1</p><p>GOTO WON1</p><p>:SKILL30</p><p>IF %SKILL3% EQU 10 GOTO PREV</p><p>SET /A SKILL3=%SKILL3% + 1</p><p>SET /A SKPOINTS=%SKPOINTS% - 1</p><p>GOTO WON1</p><p>:SKILL40</p><p>IF %SKILL4% EQU 4 GOTO PREV</p><p>SET /A SKILL4=%SKILL4% + 1</p><p>SET /A SKPOINTS=%SKPOINTS% - 1</p><p>SET /A HEALTH=%HEALTH% + 100</p><p>GOTO WON1</p><p>:PREV</p><p>ECHO YOU HAVE MAXED OUT THAT LEVEL!</p><p>GOTO SK</p><p>:STORE</p><p>CLS</p><p>ECHO CURRENT WEAPON: %WEAPON% GOLD: %GOLD%</p><p>ECHO.</p><p>ECHO ==================================================</p><p>ECHO == AVAILABLE WEAPONS === COST ==</p><p>ECHO ==================================================</p><p>ECHO A.) SWORD = 30 GOLD =</p><p>ECHO B.) BATTLEAXE = 60 GOLD =</p><p>ECHO C.) SHARP MACE = 45 GOLD =</p><p>ECHO D.) SHARPENED DAGGER = 35 GOLD =</p><p>ECHO E.) LONGSWORD = 80 GOLD =</p><p>ECHO F.) CUSTOMISED CLUB = 40 GOLD =</p><p>ECHO G.) SMALL HATCHET = 25 GOLD =</p><p>ECHO H.) MORNING STAR = 100 GOLD =</p><p>ECHO I.) DULL SHOVEL = 5 GOLD =</p><p>ECHO J.) SPIKED KNUCKLES = 10 GOLD =</p><p>ECHO K.) SERRATED METAL = 15 GOLD =</p><p>ECHO L.) BLUNDERBUSS = 1000 GOLD =</p><p>ECHO ==================================================</p><p>ECHO 8.) RETURN TO BATTLE</p><p>CHOICE /C ABCDEFGHIJKL8 &gt; NUL</p><p>SET TRUE=0</p><p>IF %ERRORLEVEL%==1 GOTO A</p><p>IF %ERRORLEVEL%==2 GOTO B</p><p>IF %ERRORLEVEL%==3 GOTO C</p><p>IF %ERRORLEVEL%==4 GOTO D</p><p>IF %ERRORLEVEL%==5 GOTO E</p><p>IF %ERRORLEVEL%==6 GOTO F</p><p>IF %ERRORLEVEL%==7 GOTO G</p><p>IF %ERRORLEVEL%==8 GOTO H</p><p>IF %ERRORLEVEL%==9 GOTO I</p><p>IF %ERRORLEVEL%==10 GOTO J</p><p>IF %ERRORLEVEL%==11 GOTO K</p><p>IF %ERRORLEVEL%==11 GOTO L</p><p>IF %ERRORLEVEL%==13 GOTO STARTGAMENEW</p><p>:A</p><p>IF %GOLD% GEQ 30 SET /A GOLD=%GOLD% - 30 &amp;&amp; SET WEAPON=SWORD</p><p>GOTO STORE</p><p>:B</p><p>IF %GOLD% GEQ 60 SET /A GOLD=%GOLD% - 60 &amp;&amp; SET WEAPON=BATTLEAXE</p><p>GOTO STORE</p><p>:C</p><p>IF %GOLD% GEQ 45 SET /A GOLD=%GOLD% - 45 &amp;&amp; SET WEAPON=SHARP MACE</p><p>GOTO STORE</p><p>:D</p><p>IF %GOLD% GEQ 35 SET /A GOLD=%GOLD% - 35 &amp;&amp; SET WEAPON=SHARPENED DAGGER</p><p>GOTO STORE</p><p>:E</p><p>IF %GOLD% GEQ 80 SET /A GOLD=%GOLD% - 80 &amp;&amp; SET WEAPON=LONGSWORD</p><p>GOTO STORE</p><p>:F</p><p>IF %GOLD% GEQ 40 SET /A GOLD=%GOLD% - 40 &amp;&amp; SET WEAPON=CUSTOMISED CLUB</p><p>GOTO STORE</p><p>:G</p><p>IF %GOLD% GEQ 25 SET /A GOLD=%GOLD% - 25 &amp;&amp; SET WEAPON=SMALL HATCHET</p><p>GOTO STORE</p><p>:H</p><p>IF %GOLD% GEQ 100 SET /A GOLD=%GOLD% - 100 &amp;&amp; SET WEAPON=MORNING STAR</p><p>GOTO STORE</p><p>:I</p><p>IF %GOLD% GEQ 5 SET /A GOLD=%GOLD% - 5 &amp;&amp; SET WEAPON=DULL SHOVEL</p><p>GOTO STORE</p><p>:J</p><p>IF %GOLD% GEQ 10 SET /A GOLD=%GOLD% - 10 &amp;&amp; SET WEAPON=SPIKED KNUCKLES</p><p>GOTO STORE</p><p>:K</p><p>IF %GOLD% GEQ 15 SET /A GOLD=%GOLD% - 15 &amp;&amp; SET WEAPON=SERRATED METAL</p><p>GOTO STORE</p><p>:L</p><p>IF %GOLD% GEQ 1000 SET /A GOLD=%GOLD% - 1000 &amp;&amp; SET WEAPON=BLUNDERBUSS</p><p>GOTO STORE</p><p>I'll update this also if anyone wants</p>

About This Instructable

110views

2favorites

License:

More by Mr_Code:Python Encrypter/decrypter Zombie Batch Game 
Add instructable to: