After the Very long wait from the original thread I have returned to the
development of this game and have tweaked it a little bit and have decided to release
this first version here
title dotVirus v1.1
@echo off
:loading
rem If your adding your own content
rem Make sure to include it here otherwise it might not be loaded
rem this section basically Loads the game
rem Be sure to not put the IF EXIST after "IF EXIST "SAVEDATA\room.bat" goto %room%
rem because that is where the game goes to the hub
rem If your adding your own custom stats add them here like this
rem "IF EXIST "SAVEDATA\custom.bat" CALL "SAVEDATA\custom.bat"
rem Paid Stats are not loaded here They are loaded in the HUB because that is where
rem It is shown it is not part of the main SAVEDATA Folder its got its own folder
set /p loadsys=Load System Package? Y/N:
if %loadsys%==Y goto sysload
if %loadsys%==N goto loading2
goto loading
:sysload
echo [Load System Packages for your Character to connect to]
echo.
echo [System Packages add to the Gameplay and can be community created or Officially Created]
echo [System Packages means new contents which is often awesome]
echo [Upon The First Release of the Game No Official System Packages were released]
echo [System Packages are Basically the program which loads its own hub]
echo [And its where it does all its thinking]
echo [All the other External files are called System Data]
echo [System Data controls stuff like SaveData ShopData EnemyData]
echo [And everything else]
set /p syspack=Load which system package
:loading2
IF EXIST "SAVEDATA\name.bat" CALL "SAVEDATA\name.bat"
IF EXIST "SAVEDATA\hunger.bat" CALL "SAVEDATA\hunger.bat"
IF EXIST "SAVEDATA\maxhunger.bat" CALL "SAVEDATA\maxhunger.bat"
IF EXIST "SAVEDATA\health.bat" CALL "SAVEDATA\health.bat"
IF EXIST "SAVEDATA\level.bat" CALL "SAVEDATA\level.bat"
IF EXIST "SAVEDATA\protect.bat" CALL "SAVEDATA\protect.bat"
IF EXIST "SAVEDATA\room.bat" CALL "SAVEDATA\room.bat"
IF EXIST "SAVEDATA\money.bat" CALL "SAVEDATA\money.bat"
IF EXIST "SAVEDATA\class.bat" CALL "SAVEDATA\class.bat"
IF EXIST "SAVEDATA\turn.bat" CALL "SAVEDATA\turn.bat"
IF EXIST "SAVEDATA\room.bat" goto %room%
goto start
:start
cls
echo [Create Savefile By Hitting Any Key]
echo.
echo Storyline
echo The Year 3000 And the world has been Infected by a Huge Virus
echo However one computer was not Infected by the Virus but
echo These Viruses are slowly making there way to it
echo We have Installed you on that System to help try and keep the viruses away
echo if the system becomes infected then the viruses could simply
echo delete you and it would be all over
echo However if you manage to destroy all the viruses then we can disinfect all the computers
echo In the world and Save it from Infection
echo.
echo Basically Destroy all the Viruses
echo.
echo [Press any key to create your save file]
pause >nul
set bytes=2000
set protect=0
set /p name=Name:
echo [No Capitals]
echo [If you name the class Correctly you might get a bonus]
set /p class=Name Your Class:
IF %class%==protector set protect=1
IF %class%==infected ECHO set infect_stat=1 > "SAVEDATA\PAIDSTATS\infect.bat"
IF %class%==infected set bytes=1500
IF %class%==blacksmith goto startitem
IF %class%==chef goto makefood
goto start2
:makefood
cls
echo Obtained Food: Meat
echo Obtained Food: Pineapple
echo Obtained Food: Pizza
echo Obtained Food: Chicken
echo Obtained Food: Bread
echo Obtained Food: Fish
echo Obtained Food: Wedges
echo. > "FOODDATA\Meat.bat"
echo. > "FOODDATA\Pineapple.bat"
echo. > "FOODDATA\Pizza.bat"
echo. > "FOODDATA\Chicken.bat"
echo. > "FOODDATA\Bread.bat"
echo. > "FOODDATA\Fish.bat"
echo. > "FOODDATA\Wedges.bat"
pause
goto start2
:start2
COPY "BACKUPDATA\*.bat" "BATTLEDATA\*.bat" >nul
echo set "name=%name%">"SAVEDATA\name.bat"
echo set "bytes=%bytes%">"SAVEDATA\money.bat"
echo set "xp=0">"CHECKDATA\EXP\xp.bat"
echo set "room=hub">"SAVEDATA\room.bat"
echo set "level=1">"SAVEDATA\level.bat"
echo set "maxhealth=10">"SAVEDATA\health.bat"
echo set "protect=%protect%">"SAVEDATA\protect.bat"
echo set "class=%class%">"SAVEDATA\class.bat"
ECHO set "hunger=40">"SAVEDATA\hunger.bat"
ECHO set "maxhunger=40">"SAVEDATA\maxhunger.bat"
ECHO set "needxp=10">"SAVEDATA\needxp.bat"
ECHO set "turn=0">"SAVEDATA\turn.bat"
echo
exit
:hub
set bonus=None
cls
set opt=""
set rand_death==false
set kill=0
set praytimer=0
set dead=false
IF EXIST "RESISTANCE\hunger.bat" goto hub2
IF %hunger% LSS 1 ECHO You Feel so Hungry That you are to Weak to do Anything
IF %hunger% LSS 1 ECHO The Viruses eventually Infect you and you die
IF %hunger% LSS 1 pause
IF %hunger% LSS 1 goto gameover
:hub2
title dotVirus v1.1: %name% The %class%
IF EXIST "PRAYDATA\praytimer.bat" CALL "PRAYDATA\praytimer.bat"
IF EXIST "PRAYDATA\praytimer.bat" set /a praytimer=%praytimer%-1
IF EXIST "PRAYDATA\praytimer.bat" ECHO set praytimer=%praytimer% > "PRAYDATA\praytimer.bat"
IF EXIST "COUNTERDATA\xp_count.bat" CALL "COUNTERDATA\xp_count.bat"
IF EXIST "COUNTERDATA\xp_show.bat" CALL "COUNTERDATA\xp_show.bat"
IF EXIST "CHECKDATA\BONUS\bonus.bat" CALL "CHECKDATA\BONUS\bonus.bat"
IF EXIST "SAVEDATA\PAIDSTATS\infect.bat" CALL "SAVEDATA\PAIDSTATS\infect.bat"
IF EXIST "SAVEDATA\random_die.bat" CALL "SAVEDATA\random_die.bat"
IF EXIST "SAVEDATA\random_die.bat" CALL "KILLDATA\die_random.bat"
set /a hunger=%hunger%-1
set /a turn=%turn%+1
ECHO set "turn=%turn%">"SAVEDATA\turn.bat"
echo set "bytes=%bytes%">"SAVEDATA\money.bat"
echo set "room=hub">"SAVEDATA\room.bat"
echo set "level=%level%">"SAVEDATA\level.bat"
echo set "maxhealth=%maxhealth%">"SAVEDATA\health.bat"
echo set "protect=%protect%">"SAVEDATA\protect.bat"
echo set "class=%class%">"SAVEDATA\class.bat"
echo set "hunger=%hunger%">"SAVEDATA\hunger.bat"
ECHO set "maxhunger=%maxhunger%">"SAVEDATA\maxhunger.bat"
IF EXIST "FIXDATA\remove_space.bat" CALL "FIXDATA\remove_space.bat"
IF EXIST "KILLDATA\check_death.bat" CALL "KILLDATA\check_death.bat"
IF %dead%==true goto gameover
echo [This Game Autosaves]
echo Welcome to the HUB
echo Your Stats:
IF EXIST "RESISTANCE\hunger.bat" ECHO You are Resistant To Hunger
ECHO Turn: %turn%
echo Class: %class%
echo Level: %level%
echo Hunger: %hunger%\%maxhunger%
echo Bytes - [Money]: %bytes%
echo Max Health: %maxhealth%
echo Virus Protection: %protect%
echo Last Bonus: %bonus%
IF EXIST "SAVEDATA\PAIDSTATS\infect.bat" ECHO Infection: %infect_stat%
echo.
echo.
echo [This Game Requires Alot Of Luck]
echo [Press Enter To Check For Nearby Viruses]
echo [Or Type an Option which can be found in the readme.txt]
set /p opt=
IF %level%==30 goto wingame
IF %opt%==shop goto shop
IF %opt%==quit goto quit
IF %opt%==inventory goto inven
IF %opt%==sort goto sortinven
IF %opt%==drop goto itemdrop
IF %opt%==pray IF EXIST "SAVEDATA\allowpray.bat" goto checkpray
IF %opt%==eat goto eatfood
goto viruscheck
:viruscheck
set /a num=0
set /a num=(20 * %random%) / 32768 + 1
IF %num%==4 goto loadvirus
IF %num%==6 goto loadvirus
IF %num%==20 goto finditem
goto hub
:loadvirus
IF EXIST "BATTLEDATA\enemy_script.bat" CALL "BATTLEDATA\enemy_script.bat"
IF EXIST "BATTLEDATA\WAITDATA\wait.bat" CALL "BATTLEDATA\WAITDATA\wait.bat"
IF EXIST "BATTLEDATA\WAITDATA\wait.bat" goto wincheck
pause
goto hub
:wincheck
IF %win%==0 goto wincheck2
IF %win%==1 goto wincheck2
IF %win%==2 goto gameover
goto wincheck2
:wincheck2
set win=0
IF EXIST "BATTLEDATA\WAITDATA\wait.bat" del "BATTLEDATA\WAITDATA\wait.bat"
goto hub
:gameover
cls
ECHO You Died D: Better Luck Next Time
ECHO You lasted %turn% Turns
ECHO Final Stats
ECHO Health: %maxhealth%
ECHO Level: %level%
ECHO Hunger: %hunger%\%maxhunger%
ECHO Protection: %protect%
IF NOT EXIST "SAVEDATA\PAIDSTATS\infect.bat" ECHO You did not have infection
IF EXIST "SAVEDATA\PAIDSTATS\infect.bat" ECHO Infect: %infect_stat%
IF EXIST "SAVEDATA\PAIDSTATS\*.bat" del "SAVEDATA\PAIDSTATS\*.bat" >nul
del "SAVEDATA\*.bat" >nul
del "ITEMDATA\*.bat" >nul
IF EXIST "CHECKDATA\EXP\xp.bat" DEL "CHECKDATA\EXP\xp.bat"
COPY "BACKUPDATA\*.bat" "BATTLEDATA\*.bat" >nul
set /p close=Exit? Press Y and Hit Enter:
IF %close%==Y exit
goto gameover
:shop
IF EXIST "SHOPDATA\shop.bat" CALL "SHOPDATA\shop.bat"
goto hub
:quit
echo set "room=hub"> "SAVEDATA\room.bat"
echo set "bytes=%bytes%"> "SAVEDATA\money.bat"
echo set "level=%level%"> "SAVEDATA\level.bat"
echo set "maxhealth=%maxhealth%"> "SAVEDATA\health.bat"
echo set "protect=%protect%"> "SAVEDATA\protect.bat"
echo [Important Data has been saved :)]
echo Thanks for Playing dotVirus come back soon
pause
exit
:inven
IF EXIST "COUNTERDATA\inventory.bat" CALL "COUNTERDATA\inventory.bat"
pause
goto hub
:sortinven
IF EXIST "SORTDATA\sort_inven.bat" CALL "SORTDATA\sort_inven.bat"
pause
goto hub
:finditem
ECHO You found an item.... Which Item?...
echo [Press any key to Obtain the item]
pause
goto makeitem
:makeitem
set toomany=false
IF EXIST "WEAPONDATA\make_wep.bat" CALL "WEAPONDATA\make_wep.bat"
IF %toomany%==true ECHO Oops Turns out you already have 3 %name%'s
IF %toomany%==true pause
IF %toomany%==true goto hub
ECHO You Obtained a %name% Add it to your Inventory
ECHO [To add it to your Inventory type "sort" at the HUB then set one of the slots]
ECHO [To be %addid%]
ECHO To find out its stats
pause
goto hub
:itemdrop
IF EXIST "COUNTERDATA\dropitem.bat" CALL "COUNTERDATA\dropitem.bat"
pause
goto hub
:startitem
IF EXIST "WEAPONDATA\make_wep2.bat" CALL "WEAPONDATA\make_wep2.bat"
goto start2
:checkpray
IF EXIST "SAVEDATA\allowpray.bat" CALL "SAVEDATA\allowpray.bat"
IF %pray%==allowed goto prayyes
ECHO You may not Pray as you do not have the abillity to contact the gods
pause
goto hub
:prayyes
cls
ECHO Pray?
echo.
echo [Warning If you have prayed recently then the GOD Might be angered if you pray to often]
set /p yn=Are you sure?:
IF %yn%==Y goto loadpray
IF %yn%==N goto hub
goto prayyes
:loadpray
cls
ECHO Praying Please Wait...
IF EXIST "PRAYDATA\pray.bat" CALL "PRAYDATA\pray.bat"
goto hub
:eatfood
cls
IF EXIST "CHECKDATA\eat.bat" CALL "CHECKDATA\eat.bat"
goto hub
:wingame
cls
ECHO As you fight off the virus's you gain Strength
ECHO Allowing you to disinfect your Computer System
ECHO You send the KillCode to every computer worldwide
echo Thus destroying any remaining Virus's
echo and Saving the World
echo Congratulation %name%
echo.
ECHO Final Stats
ECHO Turns: %turn%
ECHO Health: %maxhealth%
ECHO Level: %level%
ECHO Hunger: %hunger%\%maxhunger%
ECHO Protection: %protect%
IF NOT EXIST "SAVEDATA\PAIDSTATS\infect.bat" ECHO You did not have infection
IF EXIST "SAVEDATA\PAIDSTATS\infect.bat" ECHO Infect: %infect_stat%
ECHO Thank You For Saving Us Friend.
set /p close=Exit? Press Y and Hit Enter:
IF %close%==Y exit
goto gameover
Features:
Infinite Leveling System
Multiple Enemies (More to come)
Permadeath (If you die you gotta restart)
Random Number Generation
Inventory System
Weapon Effects
Classes:
Protector (Class Name: protector)
Infected (Class Name: infected)
Chef (Class Name: chef)
Blacksmith (Class Name: blacksmith)
Known Bugs
None
Try it out and tell me what you think
Upcoming Features
Less Bugs
Improved Mechanics
New Items
Much More
Im going to be adding in character customization in the next update
this includes
Being able to Change your characters traits
What the like and dislike
What their preferred weapon of choice is and more
EDIT: When I can be bothered Im going to rewrite the game engine
To Be more rpg like and better linux compatibility
development of this game and have tweaked it a little bit and have decided to release
this first version here
Download Link: http://www.mediafire...8ti2u72jbv5wwtb
Platform: Windows
Style: Text Based
Source Code of dotVirus.bat
Features:
Infinite Leveling System
Multiple Enemies (More to come)
Permadeath (If you die you gotta restart)
Random Number Generation
Inventory System
Weapon Effects
Classes:
Protector (Class Name: protector)
Infected (Class Name: infected)
Chef (Class Name: chef)
Blacksmith (Class Name: blacksmith)
Known Bugs
None
Try it out and tell me what you think
Upcoming Features
Less Bugs
Improved Mechanics
New Items
Much More
A Challenge Box that is Eternally Dark!
I'm reluctant to run it without DOSBox now. :/
EDIT: Also Its best to run it without dosBOX Because it requires other files from other folders that are supplied for it to work properly
A Challenge Box that is Eternally Dark!
this includes
Being able to Change your characters traits
What the like and dislike
What their preferred weapon of choice is and more
EDIT: When I can be bothered Im going to rewrite the game engine
To Be more rpg like and better linux compatibility
A Challenge Box that is Eternally Dark!
as to make it more compatible with Linux
A Challenge Box that is Eternally Dark!