Introduction: Zombie Batch Game

Picture of Zombie Batch Game

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 :)

Comments

Hak3r213 (author)2017-05-31

I am interested in this, however, it would be nice to have some sort of story line, like a plot to follow. If you want I could collaborate with you on this

Mr_Code (author)Hak3r2132017-06-07

I'm up for collaborating just contact me and we'll get stuff done.

Hak3r213 (author)Mr_Code2017-06-20

I was thinking of something along the lines of walking dead type story line, different plot line but same idea. Options to choose where you go and what you do. Enemies to encounter that take away health, search places to find food that restores health. I did a beta trial but had trouble keeping the after battle health, it would reset to original health settings. I suppose an end parameter line might work but haven't tried yet.

Mr_Code (author)Hak3r2132017-06-29

If you have discord add me: The42HourDiscord#0191

If you want I can edit what you've already created so the health settings and stuff work properly

DIY Hacks and How Tos (author)2016-11-12

Cool batch code. Thanks for sharing.

Not done yet I have had a bunch of them building up in a folder

Mr_Code (author)2016-11-12

Here's another that I made:

@ECHO OFF

:RESTART

CLS

COLOR 0F

TITLE GLADIATOR BATTLES

SET RAND1=0

SET RAND2=0

SET RAND3=0

SET RAND4=0

SET RAND5=0

SET HEALTH=100

SET NAME=

SET GOLD=0

SET LEVEL=1

SET SKILL1=1

SET SKILL2=1

SET SKILL3=1

SET SKILL4=1

SET SKILL5=1

SET WEAPON=SHARP ROCK

SET SKPOINTS=5

ECHO WELCOME TO GLADIATOR BATTLES!

ECHO YOU WILL START WITH YOUR SHARP ROCK

ECHO AND WILL BATTLE FOR ENDLESS GLORY.

ECHO.

SET /P NAME="WHAT IS YOUR NAME GLADIATOR? "

CLS

ECHO WHAT IS YOUR TITLE?

ECHO.

ECHO 1) THE SMITER

ECHO 2) THE UNBOUND

ECHO 3) THE DESTROYER

ECHO 4) THE PUNISHER

ECHO 5) THE SUPERIOR

ECHO 6) THE INTIMIDATING

ECHO 7) THE UNDEFEATED

ECHO 8) THE BEAST

ECHO 9) THE WRATH-BRINGER

CHOICE /C 123456789 >NUL

IF %ERRORLEVEL%==1 GOTO TITLE1

IF %ERRORLEVEL%==2 GOTO TITLE2

IF %ERRORLEVEL%==3 GOTO TITLE3

IF %ERRORLEVEL%==4 GOTO TITLE4

IF %ERRORLEVEL%==5 GOTO TITLE5

IF %ERRORLEVEL%==6 GOTO TITLE6

IF %ERRORLEVEL%==7 GOTO TITLE7

IF %ERRORLEVEL%==8 GOTO TITLE8

IF %ERRORLEVEL%==9 GOTO TITLE9

:TITLE1

SET NAME=%NAME% THE SMITER

GOTO BEGIN

:TITLE2

SET NAME=%NAME% THE UNBOUND

GOTO BEGIN

:TITLE3

SET NAME=%NAME% THE DESTROYER

GOTO BEGIN

:TITLE4

SET NAME=%NAME% THE PUNISHER

GOTO BEGIN

:TITLE5

SET NAME=%NAME% THE SUPERIOR

GOTO BEGIN

:TITLE6

SET NAME=%NAME% THE INTIMIDATING

GOTO BEGIN

:TITLE7

SET NAME=%NAME% THE UNDEFEATED

GOTO BEGIN

:TITLE8

SET NAME=%NAME% THE BEAST

GOTO BEGIN

:TITLE9

SET NAME=%NAME% THE WRATH-BRINGER

GOTO BEGIN

:BEGIN

CLS

ECHO ===========================

ECHO CHARACTER: %NAME%

ECHO HEALTH: %HEALTH%

ECHO GOLD: %GOLD%

ECHO LEVEL: %LEVEL%

ECHO WEAPON: %WEAPON%

ECHO ===========================

ECHO.

ECHO CHOOSE YOUR SKILLS.

ECHO.

ECHO SKILL POINTS REMAINING %SKPOINTS%

ECHO.

ECHO 1.) ATTACK (INCREASES CHANCE OF HIT) LEVEL:%SKILL1%

ECHO 2.) STRENGTH (INCREASES DAMAGE) LEVEL:%SKILL2%

ECHO 3.) LUCK (INCREASES GOLD FOUND) LEVEL:%SKILL3%

ECHO 4.) HEALTH (INCREASES HEALTH) LEVEL:%SKILL4%

ECHO.

IF %SKPOINTS% EQU 0 GOTO STARTGAME

CHOICE /C 12345 >NUL

IF %ERRORLEVEL%==1 GOTO SKILL1

IF %ERRORLEVEL%==2 GOTO SKILL2

IF %ERRORLEVEL%==3 GOTO SKILL3

IF %ERRORLEVEL%==4 GOTO SKILL4

:SKILL1

SET /A SKILL1=%SKILL1% + 1

SET /A SKPOINTS=%SKPOINTS% - 1

GOTO BEGIN

:SKILL2

SET /A SKILL2=%SKILL2% + 1

SET /A SKPOINTS=%SKPOINTS% - 1

GOTO BEGIN

:SKILL3

SET /A SKILL3=%SKILL3% + 1

SET /A SKPOINTS=%SKPOINTS% - 1

GOTO BEGIN

:SKILL4

SET /A SKILL4=%SKILL4% + 1

SET /A SKPOINTS=%SKPOINTS% - 1

SET /A HEALTH=%HEALTH% + 100

GOTO BEGIN

:STARTGAME

SET DIFFICULTY=1

SET

CLS

ECHO ===========================

ECHO CHARACTER: %NAME%

ECHO HEALTH: %HEALTH%

ECHO GOLD: %GOLD%

ECHO LEVEL: %LEVEL%

ECHO WEAPON: %WEAPON%

ECHO ===========================

ECHO.

ECHO YOU FIRST BATTLE HAS BEGUN!

CLS

TIMEOUT /T 2 /NOBREAK > NUL

SET /A RAND1=%RANDOM%%%10 + 1

SET /A ENEMYHEALTH=100 + (%RANDOM%%%2 + 1)

SET /A ENEMYGOLD=%RANDOM%%%10 + %RANDOM%%%SKILL3%

SET /A ENEMYLEVEL=%RANDOM%%%2 + 1 + %DIFFICULTY%

SET ENEMYWEAPON=STICK

GOTO RANDF

:STARTGAMENEW

CLS

IF "%WEAPON%"=="SWORD" SET BONUS=5

IF "%WEAPON%"=="BATTLEAXE" SET BONUS=9

IF "%WEAPON%"=="SHARP MACE" SET BONUS=8

IF "%WEAPON%"=="SHARPENED DAGGER" SET BONUS=6

IF "%WEAPON%"=="LONGSWORD" SET BONUS=10

IF "%WEAPON%"=="BLUNDERBUSS" SET BONUS=50

IF "%WEAPON%"=="CUSTOMISED CLUB" SET BONUS=7

IF "%WEAPON%"=="SMALL HATCHET" SET BONUS=4

IF "%WEAPON%"=="MORNING STAR" SET BONUS=11

IF "%WEAPON%"=="DULL SHOVEL" SET BONUS=1

IF "%WEAPON%"=="SPIKED KNUCKLES" SET BONUS=2

IF "%WEAPON%"=="SERRATED METAL" SET BONUS=3

SET /A RAND1=%RANDOM%%%11 + 1

SET /A RAND2=%RANDOM%%%11 + 1

SET /A ADD=100 * %DIFFICULTY% / 2

IF %ADD% GTR 400 (SET ADD=400)

SET /A ENEMYHEALTH=100 + %ADD%

SET /A ENEMYGOLD=%RANDOM%%%10 + %SKILL3%

SET /A ENEMYLEVEL=%RANDOM%%%%DIFFICULTY% + 1

IF %ENEMYLEVEL% GTR 20 (SET ENEMYLEVEL=20)

SET /A RAND2=%RANDOM%%%10 + 1

GOTO RANDF2

:RANDF

IF %RAND1%==1 (SET ENEMY=GOBLIN)

IF %RAND1%==2 (SET ENEMY=TROLL)

IF %RAND1%==3 (SET ENEMY=ORC)

IF %RAND1%==4 (SET ENEMY=ELF)

IF %RAND1%==5 (SET ENEMY=OGRE)

IF %RAND1%==6 (SET ENEMY=GLADIATOR)

IF %RAND1%==7 (SET ENEMY=SLAVE)

IF %RAND1%==8 (SET ENEMY=PEASANT)

IF %RAND1%==9 (SET ENEMY=PRIDE FIGHTER)

IF %RAND1%==10 (SET ENEMY=KNIGHT)

SET RHEALTH=%HEALTH%

GOTO STARTFIGHT

:RANDF2

IF %RAND1%==1 (SET ENEMY=GOBLIN)

IF %RAND1%==2 (SET ENEMY=TROLL)

IF %RAND1%==3 (SET ENEMY=ORC)

IF %RAND1%==4 (SET ENEMY=ELF)

IF %RAND1%==5 (SET ENEMY=OGRE)

IF %RAND1%==6 (SET ENEMY=GLADIATOR)

IF %RAND1%==7 (SET ENEMY=SLAVE)

IF %RAND1%==8 (SET ENEMY=PEASANT)

IF %RAND1%==9 (SET ENEMY=PRIDE FIGHTER)

IF %RAND1%==10 (SET ENEMY=KNIGHT)

IF %RAND1%==11 (SET ENEMY=DRAGON)

IF %RAND2%==1 (SET ENEMYWEAPON=SWORD)

IF %RAND2%==2 (SET ENEMYWEAPON=BATTLEAXE)

IF %RAND2%==3 (SET ENEMYWEAPON=SHARP MACE)

IF %RAND2%==4 (SET ENEMYWEAPON=SHARPENED DAGGER)

IF %RAND2%==5 (SET ENEMYWEAPON=LONGSWORD)

IF %RAND2%==6 (SET ENEMYWEAPON=CUSTOMISED CLUB)

IF %RAND2%==7 (SET ENEMYWEAPON=SMALL HATCHET)

IF %RAND2%==8 (SET ENEMYWEAPON=MORNING STAR)

IF %RAND2%==9 (SET ENEMYWEAPON=DULL SHOVEL)

IF %RAND2%==10 (SET ENEMY WEAPON=SPIKED KNUCKLES)

IF %RAND2%==11 (SET ENEMY WEAPON=SERRATED METAL)

SET RHEALTH=%HEALTH%

IF "%ENEMY%"=="DRAGON" (SET /A ENEMYHEALTH=%ENEMYHEALTH + 500 && SET ENEMYWEAPON=DRAGON'S TALONS)

GOTO STARTFIGHT

:REBATTLE

IF %ENEMYHEALTH% LEQ 0 GOTO WON

IF %HEALTH% LEQ 0 GOTO LOSE

SET /A ATTPER1=60 + %SKILL1%

SET /A ATTPER2=40 + %SKILL1%

SET /A ATTPER3=20 + %SKILL1%

CLS

:STARTFIGHT

SET /A ATTPER1=45 + %SKILL1%

SET /A ATTPER2=25 + %SKILL1%

SET /A ATTPER3=5 + %SKILL1%

ECHO ===========================

ECHO CHARACTER: %NAME%

ECHO HEALTH: %HEALTH%

ECHO GOLD: %GOLD%

ECHO LEVEL: %LEVEL%

ECHO WEAPON: %WEAPON%

ECHO ===========================

ECHO.

ECHO ===========================

ECHO ENEMY: %ENEMY%

ECHO HEALTH: %ENEMYHEALTH%

ECHO GOLD: %ENEMYGOLD%

ECHO LEVEL: %ENEMYLEVEL%

ECHO WEAPON: %ENEMYWEAPON%

ECHO ===========================

ECHO.

ECHO 1.) ACCURATE ATTACK (%ATTPER1%%% CHANCE OF HIT)

ECHO 2.) NORMAL ATTACK (%ATTPER2%%% CHANCE OF HIT)

ECHO 3.) POWER ATTACK (%ATTPER3%%% CHANCE OF HIT)

CHOICE /C 123 > NUL

IF %ERRORLEVEL%==1 (SET /A HIT=%ATTPER1%)

IF %ERRORLEVEL%==2 (SET /A HIT=%ATTPER2%)

IF %ERRORLEVEL%==3 (SET /A HIT=%ATTPER3%)

IF %ERRORLEVEL%==1 (SET /A DAM=1)

IF %ERRORLEVEL%==2 (SET /A DAM=8)

IF %ERRORLEVEL%==3 (SET /A DAM=20)

SET /A ATTACKHIT=%RANDOM%%%100 + 1

IF %ATTACKHIT% LEQ %HIT% GOTO YOUHIT

SET DAMAGE=0

GOTO ENEMYATTACK

:YOUHIT

SET BONUS=0

SET /A DAMAGE=%RANDOM%%%10 + 1 + %BONUS% + %SKILL2% + %DAM%

SET /A ENEMYHEALTH=%ENEMYHEALTH% - %DAMAGE%

GOTO ENEMYATTACK

:ENEMYATTACK

SET /A ENEMYHIT=%RANDOM%%%70 + %ENEMYLEVEL% + %ENEMYLEVEL%

SET /A ENEMYATTACKHIT=%RANDOM%%%100 + 1

IF %ENEMYATTACKHIT% LEQ %ENEMYHIT% GOTO ENEMYHIT

SET ENEMYDAMAGE=0

GOTO REBATTLE

:ENEMYHIT

SET /A ENEMYDAMAGE=%RANDOM%%%10 + 1 + %ENEMYLEVEL%

SET /A HEALTH=%HEALTH% - %ENEMYDAMAGE%

GOTO REBATTLE

:LOSE

CLS

ECHO YOU DIED! GAME RESTARTING . . .

TIMEOUT /T 2 /NOBREAK > NUL

GOTO RESTART

:WON

SET /A HEALTH=%RHEALTH%

CLS

ECHO YOU WON! YOU RECIEVE %ENEMYGOLD% GOLD AND 3 SKILL POINTS

SET /A GOLD=%GOLD% + %ENEMYGOLD%

SET DIFFICULTY=%DIFFICULTY% + 2

SET SKPOINTS=3

SET /A LEVEL=%LEVEL% + 1

GOTO SK

:WON1

CLS

:SK

ECHO ===========================

ECHO CHARACTER: %NAME%

ECHO HEALTH: %HEALTH%

ECHO GOLD: %GOLD%

ECHO LEVEL: %LEVEL%

ECHO WEAPON: %WEAPON%

ECHO ===========================

ECHO.

ECHO CHOOSE YOUR SKILLS.

ECHO.

ECHO SKILL POINTS REMAINING %SKPOINTS%

ECHO.

ECHO 1.) ATTACK (INCREASES CHANCE OF HIT) LEVEL:%SKILL1%

ECHO 2.) STRENGTH (INCREASES DAMAGE) LEVEL:%SKILL2%

ECHO 3.) LUCK (INCREASES GOLD FOUND) LEVEL:%SKILL3%

ECHO 4.) HEALTH (INCREASES HEALTH) LEVEL:%SKILL4%

ECHO.

IF %SKPOINTS% EQU 0 GOTO STORE

CHOICE /C 12345 >NUL

IF %ERRORLEVEL%==1 GOTO SKILL10

IF %ERRORLEVEL%==2 GOTO SKILL20

IF %ERRORLEVEL%==3 GOTO SKILL30

IF %ERRORLEVEL%==4 GOTO SKILL40

:SKILL10

IF %SKILL1% EQU 30 GOTO PREV

SET /A SKILL1=%SKILL1% + 1

SET /A SKPOINTS=%SKPOINTS% - 1

GOTO WON1

:SKILL20

SET /A SKILL2=%SKILL2% + 1

SET /A SKPOINTS=%SKPOINTS% - 1

GOTO WON1

:SKILL30

IF %SKILL3% EQU 10 GOTO PREV

SET /A SKILL3=%SKILL3% + 1

SET /A SKPOINTS=%SKPOINTS% - 1

GOTO WON1

:SKILL40

IF %SKILL4% EQU 4 GOTO PREV

SET /A SKILL4=%SKILL4% + 1

SET /A SKPOINTS=%SKPOINTS% - 1

SET /A HEALTH=%HEALTH% + 100

GOTO WON1

:PREV

ECHO YOU HAVE MAXED OUT THAT LEVEL!

GOTO SK

:STORE

CLS

ECHO CURRENT WEAPON: %WEAPON% GOLD: %GOLD%

ECHO.

ECHO ==================================================

ECHO == AVAILABLE WEAPONS === COST ==

ECHO ==================================================

ECHO A.) SWORD = 30 GOLD =

ECHO B.) BATTLEAXE = 60 GOLD =

ECHO C.) SHARP MACE = 45 GOLD =

ECHO D.) SHARPENED DAGGER = 35 GOLD =

ECHO E.) LONGSWORD = 80 GOLD =

ECHO F.) CUSTOMISED CLUB = 40 GOLD =

ECHO G.) SMALL HATCHET = 25 GOLD =

ECHO H.) MORNING STAR = 100 GOLD =

ECHO I.) DULL SHOVEL = 5 GOLD =

ECHO J.) SPIKED KNUCKLES = 10 GOLD =

ECHO K.) SERRATED METAL = 15 GOLD =

ECHO L.) BLUNDERBUSS = 1000 GOLD =

ECHO ==================================================

ECHO 8.) RETURN TO BATTLE

CHOICE /C ABCDEFGHIJKL8 > NUL

SET TRUE=0

IF %ERRORLEVEL%==1 GOTO A

IF %ERRORLEVEL%==2 GOTO B

IF %ERRORLEVEL%==3 GOTO C

IF %ERRORLEVEL%==4 GOTO D

IF %ERRORLEVEL%==5 GOTO E

IF %ERRORLEVEL%==6 GOTO F

IF %ERRORLEVEL%==7 GOTO G

IF %ERRORLEVEL%==8 GOTO H

IF %ERRORLEVEL%==9 GOTO I

IF %ERRORLEVEL%==10 GOTO J

IF %ERRORLEVEL%==11 GOTO K

IF %ERRORLEVEL%==11 GOTO L

IF %ERRORLEVEL%==13 GOTO STARTGAMENEW

:A

IF %GOLD% GEQ 30 SET /A GOLD=%GOLD% - 30 && SET WEAPON=SWORD

GOTO STORE

:B

IF %GOLD% GEQ 60 SET /A GOLD=%GOLD% - 60 && SET WEAPON=BATTLEAXE

GOTO STORE

:C

IF %GOLD% GEQ 45 SET /A GOLD=%GOLD% - 45 && SET WEAPON=SHARP MACE

GOTO STORE

:D

IF %GOLD% GEQ 35 SET /A GOLD=%GOLD% - 35 && SET WEAPON=SHARPENED DAGGER

GOTO STORE

:E

IF %GOLD% GEQ 80 SET /A GOLD=%GOLD% - 80 && SET WEAPON=LONGSWORD

GOTO STORE

:F

IF %GOLD% GEQ 40 SET /A GOLD=%GOLD% - 40 && SET WEAPON=CUSTOMISED CLUB

GOTO STORE

:G

IF %GOLD% GEQ 25 SET /A GOLD=%GOLD% - 25 && SET WEAPON=SMALL HATCHET

GOTO STORE

:H

IF %GOLD% GEQ 100 SET /A GOLD=%GOLD% - 100 && SET WEAPON=MORNING STAR

GOTO STORE

:I

IF %GOLD% GEQ 5 SET /A GOLD=%GOLD% - 5 && SET WEAPON=DULL SHOVEL

GOTO STORE

:J

IF %GOLD% GEQ 10 SET /A GOLD=%GOLD% - 10 && SET WEAPON=SPIKED KNUCKLES

GOTO STORE

:K

IF %GOLD% GEQ 15 SET /A GOLD=%GOLD% - 15 && SET WEAPON=SERRATED METAL

GOTO STORE

:L

IF %GOLD% GEQ 1000 SET /A GOLD=%GOLD% - 1000 && SET WEAPON=BLUNDERBUSS

GOTO STORE

I'll update this also if anyone wants

About This Instructable

183views

2favorites

License:

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