Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- setlocal enabledelayedexpansion
- title dotVirus v1.0
- @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\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\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
- COPY BACKUPDATA\*.bat BATTLEDATA\*.bat >nul
- echo set bytes=500>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=1>SAVEDATA\protect.bat
- echo
- exit
- :hub
- cls
- set opt=
- 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
- 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 [This Game Autosaves]
- echo Welcome to the HUB
- echo Your Stats:
- echo Level: %level%
- echo Bytes - [Money]: %bytes%
- ECHO Experience: %exp%
- set bonus=None
- 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 %opt%==shop goto shop
- IF %opt%==quit goto quit
- IF %opt%==inventory goto inven
- IF %opt%==sort goto sortinven
- IF %opt%==drop goto itemdrop
- 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\virus%num%.bat ECHO SET LOCATION=BATTLEDATA\virus%num%.bat > BATTLEDATA\WAITDATA\wait.bat
- IF EXIST BATTLEDATA\virus%num%.bat CALL BATTLEDATA\virus%num%.bat
- IF NOT EXIST BATTLEDATA\virus%num%.bat ECHO Virus #%num% has Already been destroyed
- IF NOT EXIST BATTLEDATA\virus%num%.bat pause
- IF NOT EXIST BATTLEDATA\virus%num%.bat goto hub
- 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 DEL %LOCATION%
- 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 got Game Over sorry
- 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 [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%
- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement