Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- mode con: cols=100 lines=50
- color 07
- echo Press any key to start the game!
- PAUSE >nul
- #############################################################
- :restart
- color 2A
- cls
- set /a turn=%random% %% 2
- set /a maxhealth=400
- set /a enemyhealth=%maxhealth%
- set /a playerhealth=%maxhealth%
- set /a fullhealth=%maxhealth% -1
- set /a maxenergy=100
- set /a enemyenergy=%maxenergy%
- set /a playerenergy=%maxenergy%
- set /a energyrecovery=%maxenergy% /20
- set /a energyrecovered=0
- #############################################################
- :attack
- cls
- set /a critical=%random% %% 10
- set /a screencolor1=%maxhealth% /2
- set /a screencolor2=%maxhealth% /4
- if %playerhealth% GTR %screencolor1% color 2A
- if %playerhealth% LEQ %screencolor1% color 6E
- if %playerhealth% LEQ %screencolor2% color 4C
- if %turn%==1 goto enemyattack
- if %playerenergy%==0 goto attackskip
- echo - Player)
- echo - Health: %playerhealth%/%maxhealth%
- if %energyrecovered%==1 echo - Energy: %playerenergy%/%maxenergy% +%energyrecovery%
- if %energyrecovered%==0 echo - Energy: %playerenergy%/%maxenergy%
- echo -------------------
- echo - Enemy)
- echo - Health: %enemyhealth%/%maxhealth%
- if %energyrecovered%==1 echo - Energy: %enemyenergy%/%maxenergy% +%energyrecovery%
- if %energyrecovered%==0 echo - Energy: %enemyenergy%/%maxenergy%
- echo.
- echo It's your turn! Use an ability! View abilities by typing "abilitylist"!
- echo.
- set /p ability=
- if %ability%==strike goto friendlystrike
- if %ability%==heal goto friendlyheal
- if %ability%==kick goto friendlykick
- if %ability%==skip goto attackskip
- if %ability%==abilitylist goto abilitylist
- goto attack
- #############################################################
- :friendlystrike
- if %playerenergy% LSS 10 goto lowenergy
- set /a playerenergy=%playerenergy% -10
- set /a turn=1
- cls
- set /a damageamount=%random% %%11 +10
- if %critical%==0 set /a damageamount=%damageamount%*2
- set /a enemyhealth=%enemyhealth% -%damageamount%
- echo - Player)
- echo - Health: %playerhealth%/%maxhealth%
- echo - Energy: %playerenergy%/%maxenergy%
- echo -------------------
- echo - Enemy)
- if %critical%==0 echo - Health: %enemyhealth%/%maxhealth% -%damageamount%
- if not %critical%==0 echo - Health: %enemyhealth%/%maxhealth% -%damageamount%
- echo - Energy: %enemyenergy%/%maxenergy%
- echo.
- if %critical%==0 echo You struck your enemy for %damageamount% damage! *CRITICAL*
- if not %critical%==0 echo You struck your enemy for %damageamount% damage!
- echo.
- timeout 5 >nul
- if %enemyhealth% LEQ 0 goto win
- goto energyrecovery
- #############################################################
- :friendlykick
- if %playerenergy% LSS 50 goto lowenergy
- set /a playerenergy=%playerenergy% -50
- set /a turn=1
- cls
- set /a damageamount=%random% %%31 +30
- if %critical%==0 set /a damageamount=%damageamount%*2
- set /a enemyhealth=%enemyhealth% -%damageamount%
- echo - Player)
- echo - Health: %playerhealth%/%maxhealth%
- echo - Energy: %playerenergy%/%maxenergy%
- echo -------------------
- echo - Enemy)
- if %critical%==0 echo - Health: %enemyhealth%/%maxhealth% -%damageamount%
- if not %critical%==0 echo - Health: %enemyhealth%/%maxhealth% -%damageamount%
- echo - Energy: %enemyenergy%/%maxenergy%
- echo.
- if %critical%==0 echo You kicked your enemy for %damageamount% damage! *CRITICAL*
- if not %critical%==0 echo You kicked your enemy for %damageamount% damage!
- echo.
- timeout 5 >nul
- if %enemyhealth% LEQ 0 goto win
- goto energyrecovery
- #############################################################
- :friendlyheal
- cls
- if %playerhealth% GTR %fullhealth% goto healfailed
- if %playerenergy% LSS 20 goto lowenergy
- set /a healamount=%random% %%16 +10
- set /a playerhealth=%playerhealth% + %healamount%
- if %playerhealth% GTR %maxhealth% goto overheal
- :healsuccess
- set /a playerenergy=%playerenergy% -20
- set /a turn=1
- echo - Player)
- echo - Health: %playerhealth%/%maxhealth% +%healamount%
- echo - Energy: %playerenergy%/%maxenergy%
- echo -------------------
- echo - Enemy)
- echo - Health: %enemyhealth%/%maxhealth%
- echo - Energy: %enemyenergy%/%maxenergy%
- echo.
- echo You healed yourself and recovered %healamount% health!
- echo.
- timeout 5 >nul
- goto energyrecovery
- :overheal
- set /a playerhealth=%playerhealth% -1
- if %playerhealth%==%maxhealth% goto healsuccess
- goto overheal
- :healfailed
- echo - Player)
- echo - Health: %playerhealth%/%maxhealth%
- echo - Energy: %playerenergy%/%maxenergy%
- echo -------------------
- echo - Enemy)
- echo - Health: %enemyhealth%/%maxhealth%
- echo - Energy: %enemyenergy%/%maxenergy%
- echo.
- echo Your health is already full!
- echo.
- timeout 5 >nul
- goto attack
- #############################################################
- :lowenergy
- cls
- echo - Player)
- echo - Health: %playerhealth%/%maxhealth%
- echo - Energy: %playerenergy%/%maxenergy%
- echo -------------------
- echo - Enemy)
- echo - Health: %enemyhealth%/%maxhealth%
- echo - Energy: %enemyenergy%/%maxenergy%
- echo.
- echo You don't have enough energy to use this ability!
- echo.
- timeout 5 >nul
- goto attack
- #############################################################
- :energyrecovery
- if %playerenergy% LSS %maxenergy% set /a playerenergy=%playerenergy%+%energyrecovery%
- if %enemyenergy% LSS %maxenergy% set /a enemyenergy=%enemyenergy%+%energyrecovery%
- :energyrecoverysubtract
- if %playerenergy% GTR %maxenergy% set /a playerenergy=%playerenergy%-5
- if %enemyenergy% GTR %maxenergy% set /a enemyenergy=%enemyenergy%-5
- if %playerenergy% GTR %maxenergy% goto energyrecoverysubtract
- if %enemyenergy% GTR %maxenergy% goto energyrecoverysubtract
- set /a energyrecovered=1
- goto attack
- #############################################################
- :attackskip
- cls
- echo - Player)
- echo - Health: %playerhealth%/%maxhealth%
- echo - Energy: %playerenergy%/%maxenergy%
- echo -------------------
- echo - Enemy)
- echo - Health: %enemyhealth%/%maxhealth%
- echo - Energy: %enemyenergy%/%maxenergy%
- echo.
- if %playerenergy%==0 echo You don't have enough energy to attack this round!
- if %playerenergy% GTR 0 echo You skipped this round!
- echo.
- timeout 5 >nul
- set /a turn=1
- goto energyrecovery
- #############################################################
- :enemyattackskip
- cls
- echo - Player)
- echo - Health: %playerhealth%/%maxhealth%
- echo - Energy: %playerenergy%/%maxenergy%
- echo -------------------
- echo - Enemy)
- echo - Health: %enemyhealth%/%maxhealth%
- echo - Energy: %enemyenergy%/%maxenergy%
- echo.
- echo Your enemy didn't have enough energy to attack this round!
- echo.
- timeout 5 >nul
- set /a turn=0
- goto energyrecovery
- #############################################################
- :enemyattack
- cls
- if %enemyenergy%==0 goto enemyattackskip
- echo - Player)
- echo - Health: %playerhealth%/%maxhealth%
- if %energyrecovered%==1 echo - Energy: %playerenergy%/%maxenergy% +%energyrecovery%
- if %energyrecovered%==0 echo - Energy: %playerenergy%/%maxenergy%
- echo -------------------
- echo - Enemy)
- echo - Health: %enemyhealth%/%maxhealth%
- if %energyrecovered%==1 echo - Energy: %enemyenergy%/%maxenergy% +%energyrecovery%
- if %energyrecovered%==0 echo - Energy: %enemyenergy%/%maxenergy%
- echo.
- echo It's your enemy's turn!
- timeout 2 /NOBREAK >nul
- :enemyabilityfailed
- set /a ability=%random% %% 10
- if %ability%==0 goto enemykick
- if %ability%==1 goto enemykick
- if %ability%==2 goto enemykick
- if %ability%==3 goto enemystrike
- if %ability%==4 goto enemystrike
- if %ability%==5 goto enemystrike
- if %ability%==6 goto enemystrike
- if %ability%==7 goto enemystrike
- if %ability%==8 goto enemyheal
- if %ability%==9 goto enemyheal
- #############################################################
- :enemystrike
- if %enemyenergy% LSS 10 goto enemyabilityfailed
- set /a enemyenergy=%enemyenergy% -10
- set /a turn=0
- cls
- set /a damageamount=%random% %%11 +10
- if %critical%==0 set /a damageamount=%damageamount%*2
- set /a playerhealth=%playerhealth% -%damageamount%
- echo - Player)
- if %critical%==0 echo - Health: %playerhealth%/%maxhealth% -%damageamount%
- if not %critical%==0 echo - Health: %playerhealth%/%maxhealth% -%damageamount%
- echo - Energy: %playerenergy%/%maxenergy%
- echo -------------------
- echo - Enemy)
- echo - Health: %enemyhealth%/%maxhealth%
- echo - Energy: %enemyenergy%/%maxenergy%
- echo.
- if %critical%==0 echo Your enemy struck you for %damageamount% damage! *CRITICAL*
- if not %critical%==0 echo Your enemy struck you for %damageamount% damage!
- echo.
- timeout 5 >nul
- if %playerhealth% LEQ 0 goto lose
- goto energyrecovery
- #############################################################
- :enemykick
- if %enemyenergy% LSS 50 goto enemyabilityfailed
- set /a enemyenergy=%enemyenergy% -50
- set /a turn=0
- cls
- set /a damageamount=%random% %%31 +30
- if %critical%==0 set /a damageamount=%damageamount%*2
- set /a playerhealth=%playerhealth% -%damageamount%
- echo - Player)
- if %critical%==0 echo - Health: %playerhealth%/%maxhealth% -%damageamount%
- if not %critical%==0 echo - Health: %playerhealth%/%maxhealth% -%damageamount%
- echo - Energy: %playerenergy%/%maxenergy%
- echo -------------------
- echo - Enemy)
- echo - Health: %enemyhealth%/%maxhealth%
- echo - Energy: %enemyenergy%/%maxenergy%
- echo.
- if %critical%==0 echo Your enemy kicked you for %damageamount% damage! *CRITICAL*
- if not %critical%==0 echo Your enemy kicked you for %damageamount% damage!
- echo.
- timeout 5 >nul
- if %playerhealth% LEQ 0 goto lose
- goto energyrecovery
- #############################################################
- :enemyheal
- if %enemyhealth% GTR %fullhealth% goto enemyabilityfailed
- if %enemyenergy% LSS 20 goto enemyabilityfailed
- cls
- set /a healamount=%random% %%16 +10
- set /a enemyhealth=%enemyhealth% + %healamount%
- if %enemyhealth% GTR %maxhealth% goto enemyoverheal
- :enemyhealsuccess
- set /a enemyenergy=%enemyenergy% -20
- set /a turn=0
- echo - Player)
- echo - Health: %playerhealth%/%maxhealth%
- echo - Energy: %playerenergy%/%maxenergy%
- echo -------------------
- echo - Enemy)
- echo - Health: %enemyhealth%/%maxhealth% +%healamount%
- echo - Energy: %enemyenergy%/%maxenergy%
- echo.
- echo Your enemy healed himself and recovered %healamount% health!
- echo.
- timeout 5 >nul
- goto energyrecovery
- :enemyoverheal
- set /a enemyhealth=%enemyhealth% -1
- if %enemyhealth%==%maxhealth% goto enemyhealsuccess
- goto enemyoverheal
- #############################################################
- :win
- color 2A
- cls
- echo You won! Press any key to restart the game!
- PAUSE >nul
- goto restart
- :lose
- color 4C
- cls
- echo You lost! Press any key to restart the game!
- PAUSE >nul
- goto restart
- #############################################################
- :abilitylist
- cls
- echo Abilities:
- echo.
- echo Kick - Kick your enemy, deals 30-60 damage. (Cost: 50 energy)
- echo Heal - Heal yourself, recovers 15-25 health. (Cost: 20 energy)
- echo Strike - Strike your enemy, deals 10-20 damage. (Cost: 10 energy)
- echo Skip - Skips the current round, no effects. (Cost: 0 energy)
- echo.
- echo Press any key to return.
- echo.
- PAUSE >nul
- goto attack
- ##############################################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement