loading
This is a batch file that I have made fairly recently that is a cold war simulation. It took two days to complete for me because half of the script is based on the other half. Please tell me if there are any errors in the script and I will fix them. Thanks. Enjoy!

@echo off
color 0c
title TOTAL WAR!!!
echo.
echo Welcome to Total War, created by Vincent Allain.
echo.
pause
:players
cls
set player=
set replay=
echo.
set /p player=Select 1 or 2 player mode:
if '%player%'=='1' goto name
if '%player%'=='2' goto p1name
goto players
:name
cls
set name=
echo.
set /p name=Please type in your name (One word):
if '%name%'=='' goto name
rem Easter Egg:
if '%name%'=='Vincent' goto win
:country
cls
set country=
set enemy=
echo.
echo Welcome %name%!
echo.
set /p country=Choose your country; USA, Russia, or Canada:
if '%country%'=='usa' goto enemy1
if '%country%'=='USA' goto enemy1
if '%country%'=='Usa' goto enemy1
if '%country%'=='Russia' goto enemy2
if '%country%'=='russia' goto enemy2
if '%country%'=='canada' goto enemy3
if '%country%'=='Canada' goto enemy3
goto country
:enemy1
set country=USA
goto enemy
:enemy2
set country=Russia
goto enemy
:enemy3
set country=Canada
:enemy
set /a cpucountryrand=%random% %%5 +1
if '%cpucountryrand%'=='0' goto enemy
if '%cpucountryrand%'=='1' set enemy=Russia
if '%cpucountryrand%'=='2' set enemy=USA
if '%cpucountryrand%'=='3' set enemy=Canada
if '%cpucountryrand%'=='4' goto enemy
if '%cpucountryrand%'=='5' goto enemy
if '%enemy%'=='%country%' goto enemy
:begin
set user=1000
set cpu=1000
set nuke=1
set airstrike=2
set missiles=3
set cpunuke=1
set cpuairstrike=2
set cpumissiles=3
:gameplay
cls
set move=
set choice=
set cpucount=0
echo.
echo %name%, your turn.
echo                                                               %country%: %user% DEF
echo Options:
echo                                                               %enemy%: %cpu% DEF
echo 1. Fire NUKE x %nuke%
echo.
echo 2. Fire Airstrike x %airstrike%
echo.
echo 3. Fire Missiles x %missiles%
echo.
echo 4. Surrender
echo.
echo 5. Do nothing
echo.
set /p move=Select your option:
if '%move%'=='1' goto nuke
if '%move%'=='2' goto airstrike
if '%move%'=='3' goto missiles
if '%move%'=='4' goto surrender
if '%move%'=='5' goto cpu1
goto gameplay
:nuke
cls
if '%nuke%'=='0' goto nonuke
echo.
echo %name% has fired a NUKE headed towards the %enemy%!
echo.
ping localhost -n 4 >nul
echo Hit!
echo.
echo %enemy% has lost 400 DEF!
echo.
pause
set /a cpu=%cpu% - 400
set nuke=0
if '%cpu%'=='0' goto win
if '%cpu%'=='-100' goto win
if '%cpu%'=='-200' goto win
if '%cpu%'=='-300' goto win
goto cpu1
:nonuke
echo.
echo You can't use a nuke since you don't have any more left!
echo.
pause
goto gameplay
:airstrike
cls
if '%airstrike%'=='0' goto noairstrike
echo.
echo %name% has fired an airstrike on the %enemy%!
echo.
ping localhost -n 4 >nul
echo Hit!
echo.
echo %enemy% has lost 300 DEF!
echo.
pause
set /a cpu=%cpu% - 300
set /a airstrike=%airstrike% - 1
if '%cpu%'=='0' goto win
if '%cpu%'=='-100' goto win
if '%cpu%'=='-200' goto win
if '%cpu%'=='-300' goto win
goto cpu1
:noairstrike
echo.
echo You can't use an airstrike since you don't have any more left!
echo.
pause
goto gameplay
:missiles
cls
if '%missiles%'=='0' goto nomissiles
echo.
echo %name% has fired multiple missiles headed towards the %enemy%!
echo.
ping localhost -n 4 >nul
echo Hit!
echo.
echo %enemy% has lost 200 DEF!
echo.
pause
set /a cpu=%cpu% - 200
set /a missiles=%missiles% - 1
if '%cpu%'=='0' goto win
if '%cpu%'=='-100' goto win
if '%cpu%'=='-200' goto win
if '%cpu%'=='-300' goto win
goto cpu1
:nomissiles
echo.
echo You can't use missiles since you don't have any more left!
echo.
pause
goto gameplay
:surrender
cls
echo.
echo "We may have lost the war, but we still have our dignity..."
echo.
pause
:end
cls
echo.
echo "We may have lost the war, but we still have our dignity..."
echo.
set /p replay=Type anything to replay the game. Type 'x' to exit:
if '%replay%'=='x' goto suggest
if '%replay%'=='' goto end
goto players
:win
cls
echo.
echo You have won Total War!!!
echo.
pause
:win2
cls
echo.
echo You have won Total War!!!
echo.
set /p replay=Type anything to replay the game. Type 'x' to exit:
if '%replay%'=='x' goto suggest
if '%replay%'=='' goto win2
goto players
:cpu1
cls
set /a cpucount=%cpucount% + 1
if '%cpucount%'=='10' goto cpu2
echo.
echo My turn.
echo                                                               %country%: %user% DEF
echo Options:
echo                                                               %enemy%: %cpu% DEF
echo 1. Fire NUKE x %cpunuke%
echo.
echo 2. Fire Airstrike x %cpuairstrike%
echo.
echo 3. Fire Missiles x %cpumissiles%
echo.
echo 4. Surrender
echo.
echo 5. Do nothing
echo.
echo Select your option:/
ping localhost -n 1 >nul
ping localhost -n 1 >nul
ping localhost -n 1 >nul
ping localhost -n 1 >nul
cls
echo.
echo My turn.
echo                                                               %country%: %user% DEF
echo Options:
echo                                                               %enemy%: %cpu% DEF
echo 1. Fire NUKE x %cpunuke%
echo.
echo 2. Fire Airstrike x %cpuairstrike%
echo.
echo 3. Fire Missiles x %cpumissiles%
echo.
echo 4. Surrender
echo.
echo 5. Do nothing
echo.
echo Select your option:-
ping localhost -n 1 >nul
ping localhost -n 1 >nul
ping localhost -n 1 >nul
ping localhost -n 1 >nul
cls
echo.
echo My turn.
echo                                                               %country%: %user% DEF
echo Options:
echo                                                               %enemy%: %cpu% DEF
echo 1. Fire NUKE x %cpunuke%
echo.
echo 2. Fire Airstrike x %cpuairstrike%
echo.
echo 3. Fire Missiles x %cpumissiles%
echo.
echo 4. Surrender
echo.
echo 5. Do nothing
echo.
echo Select your option:\
ping localhost -n 1 >nul
ping localhost -n 1 >nul
ping localhost -n 1 >nul
ping localhost -n 1 >nul
goto cpu1
:cpu2
cls
set /a choice=%random% %%6
if '%choice%'=='0' goto cpu2
if '%choice%'=='4' goto cpu2
if '%choice%'=='6' goto cpu2
echo.
echo My turn.
echo                                                               %country%: %user% DEF
echo Options:
echo                                                               %enemy%: %cpu% DEF
echo 1. Fire NUKE x %cpunuke%
echo.
echo 2. Fire Airstrike x %cpuairstrike%
echo.
echo 3. Fire Missiles x %cpumissiles%
echo.
echo 4. Surrender
echo.
echo 5. Do nothing
echo.
echo Select your option:%choice%
ping localhost -n 4 >nul
if '%choice%'=='1' goto cpunuke
if '%choice%'=='2' goto cpuairstrike
if '%choice%'=='3' goto cpumissiles
if '%choice%'=='5' goto gameplay
:cpunuke
cls
if '%cpunuke%'=='0' goto nocpunuke
echo.
echo I have fired a NUKE headed towards the %country%!
echo.
ping localhost -n 4 >nul
echo Hit!
echo.
echo %country% has lost 400 DEF!
echo.
ping localhost -n 4 >nul
set /a user=%user% - 400
set cpunuke=0
if '%user%'=='0' goto cpuwin
if '%user%'=='-100' goto cpuwin
if '%user%'=='-200' goto cpuwin
if '%user%'=='-300' goto cpuwin
goto gameplay
:nocpunuke
echo.
echo I can't use a nuke since I don't have any more left!
echo.
ping localhost -n 4 >nul
set cpucount=0
goto cpu1
:cpuairstrike
cls
if '%cpuairstrike%'=='0' goto nocpuairstrike
echo.
echo I have fired an airstrike on the %country%!
echo.
ping localhost -n 4 >nul
echo Hit!
echo.
echo %country% has lost 300 DEF!
echo.
ping localhost -n 4 >nul
set /a user=%user% - 300
set /a cpuairstrike=%cpuairstrike% - 1
if '%user%'=='0' goto cpuwin
if '%user%'=='-100' goto cpuwin
if '%user%'=='-200' goto cpuwin
if '%user%'=='-300' goto cpuwin
goto gameplay
:nocpuairstrike
echo.
echo I can't use an airstrike since I don't have any more left!
echo.
ping localhost -n 4 >nul
set cpucount=0
goto cpu1
:cpumissiles
cls
if '%cpumissiles%'=='0' goto nocpumissiles
echo.
echo I have fired multiple missiles headed towards the %country%!
echo.
ping localhost -n 4 >nul
echo Hit!
echo.
echo %country% has lost 200 DEF!
echo.
ping localhost -n 4 >nul
set /a user=%user% - 200
set /a cpumissiles=%cpumissiles% - 1
if '%user%'=='0' goto cpuwin
if '%user%'=='-100' goto cpuwin
if '%user%'=='-200' goto cpuwin
if '%user%'=='-300' goto cpuwin
goto gameplay
:nocpumissiles
echo.
echo I can't use missiles since I don't have any more left!
echo.
ping localhost -n 4 >nul
set cpucount=0
goto cpu1
:cpuwin
cls
echo.
echo It was a long battle today. I have emerged victorious, even though you tried
echo very well.
echo.
pause
:cpuwin2
cls
echo.
echo It was a long battle today. I have emerged victorious, even though you tried
echo very well.
echo.
set /p replay=Type anything to replay the game. Type 'x' to exit:
if '%replay%'=='x' goto suggest
if '%replay%'=='' goto cpuwin2
goto players
:p1name
cls
set p1name=
echo.
set /p p1name=Player 1, please type in your name (One word):
if '%p1name%'=='' goto p1name
:p2name
cls
set p2name=
echo.
set /p p2name=Player 2, please type in your name (One word):
if '%p2name%'=='%p1name%' goto p2name
if '%p2name%'=='' goto p2name
rem Easter Egg:
if '%p1name%'=='Vincent' goto p1win
if '%p2name%'=='Vincent' goto p2win
:p1country
cls
set p1country=
echo.
echo Welcome %p1name%!
echo.
set /p p1country=Choose your country; USA, Russia, or Canada:
if '%p1country%'=='usa' goto p1country1
if '%p1country%'=='USA' goto p1country1
if '%p1country%'=='Usa' goto p1country1
if '%p1country%'=='Russia' goto p1country2
if '%p1country%'=='russia' goto p1country2
if '%p1country%'=='canada' goto p1country3
if '%p1country%'=='Canada' goto p1country3
goto p1country
:p1country1
set p1country=USA
goto p2country
:p1country2
set p1country=Russia
goto p2country
:p1country3
set p1country=Canada
:p2country
cls
set p2country=
echo.
echo Welcome %p2name%!
echo.
set /p p2country=Choose your country; USA, Russia, or Canada:
if '%p2country%'=='%p1country%' goto na
if '%p2country%'=='usa' goto p2country1
if '%p2country%'=='USA' goto p2country1
if '%p2country%'=='Usa' goto p2country1
if '%p2country%'=='Russia' goto p2country2
if '%p2country%'=='russia' goto p2country2
if '%p2country%'=='canada' goto p2country3
if '%p2country%'=='Canada' goto p2country3
goto p2country
:na
cls
echo.
echo You can't choose %p1country% because %p1name% has already chosen it.
pause >nul
goto p2country
:p2country1
set p2country=USA
goto begin2
:p2country2
set p2country=Russia
goto begin2
:p2country3
set p2country=Canada
:begin2
set p1health=1000
set p2health=1000
set p1nuke=1
set p1airstrike=2
set p1missiles=3
set p2nuke=1
set p2airstrike=2
set p2missiles=3
:p1gameplay
cls
set move=
set choice=
echo.
echo %p1name%, your turn.
echo                                                               %p1country%: %p1health% DEF
echo Options:
echo                                                               %p2country%: %p2health% DEF
echo 1. Fire NUKE x %p1nuke%
echo.
echo 2. Fire Airstrike x %p1airstrike%
echo.
echo 3. Fire Missiles x %p1missiles%
echo.
echo 4. Surrender
echo.
echo 5. Do nothing
echo.
set /p move=Select your option:
if '%move%'=='1' goto p1nuke
if '%move%'=='2' goto p1airstrike
if '%move%'=='3' goto p1missiles
if '%move%'=='4' goto p1surrender
if '%move%'=='5' goto p2gameplay
goto p1gameplay
:p1nuke
cls
if '%p1nuke%'=='0' goto nop1nuke
echo.
echo %p1name% has fired a NUKE headed towards %p2country%!
echo.
ping localhost -n 4 >nul
echo Hit!
echo.
echo %p2country% has lost 400 DEF!
echo.
pause
set /a p2health=%p2health% - 400
set p1nuke=0
if '%p2health%'=='0' goto p1win
if '%p2health%'=='-100' goto p1win
if '%p2health%'=='-200' goto p1win
if '%p2health%'=='-300' goto p1win
goto p2gameplay
:nop1nuke
echo.
echo You can't use a nuke since you don't have any more left!
echo.
pause
goto p1gameplay
:p1airstrike
cls
if '%p1airstrike%'=='0' goto nop1airstrike
echo.
echo %p1name% has fired an airstrike on %p2country%!
echo.
ping localhost -n 4 >nul
echo Hit!
echo.
echo %p2country% has lost 300 DEF!
echo.
pause
set /a p2health=%p2health% - 300
set /a p1airstrike=%p1airstrike% - 1
if '%p2health%'=='0' goto p1win
if '%p2health%'=='-100' goto p1win
if '%p2health%'=='-200' goto p1win
if '%p2health%'=='-300' goto p1win
goto p2gameplay
:nop1airstrike
echo.
echo You can't use an airstrike since you don't have any more left!
echo.
pause
goto p1gameplay
:p1missiles
cls
if '%p1missiles%'=='0' goto nop1missiles
echo.
echo %p1name% has fired multiple missiles headed towards %p2country%!
echo.
ping localhost -n 4 >nul
echo Hit!
echo.
echo %p2country% has lost 200 DEF!
echo.
pause
set /a p2health=%p2health% - 200
set /a p1missiles=%p1missiles% - 1
if '%p2health%'=='0' goto p1win
if '%p2health%'=='-100' goto p1win
if '%p2health%'=='-200' goto p1win
if '%p2health%'=='-300' goto p1win
goto p2gameplay
:nop1missiles
echo.
echo You can't use missiles since you don't have any more left!
echo.
pause
goto p1gameplay
:p1surrender
cls
echo.
echo %p2name% has won Total War!!!
echo.
pause
:p1surrender2
cls
echo.
echo %p2name% has won Total War!!!
echo.
set /p replay=Type anything to replay the game. Type 'x' to exit:
if '%replay%'=='x' goto suggest
if '%replay%'=='' goto p1surrender2
goto players
:p1win
cls
echo.
echo %p1name% has won Total War!!!
echo.
pause
:p1win2
cls
echo.
echo %p1name% has won Total War!!!
echo.
set /p replay=Type anything to replay the game. Type 'x' to exit:
if '%replay%'=='x' goto suggest
if '%replay%'=='' goto p1win2
goto players
:p2gameplay
cls
set move=
set choice=
echo.
echo %p2name%, your turn.
echo                                                               %p2country%: %p2health% DEF
echo Options:
echo                                                               %p1country%: %p1health% DEF
echo 1. Fire NUKE x %p2nuke%
echo.
echo 2. Fire Airstrike x %p2airstrike%
echo.
echo 3. Fire Missiles x %p2missiles%
echo.
echo 4. Surrender
echo.
echo 5. Do nothing
echo.
set /p move=Select your option:
if '%move%'=='1' goto p2nuke
if '%move%'=='2' goto p2airstrike
if '%move%'=='3' goto p2missiles
if '%move%'=='4' goto p2surrender
if '%move%'=='5' goto p1gameplay
goto p2gameplay
:p2nuke
cls
if '%p2nuke%'=='0' goto nop2nuke
echo.
echo %p2name% has fired a NUKE headed towards %p1country%!
echo.
ping localhost -n 4 >nul
echo Hit!
echo.
echo %p1country% has lost 400 DEF!
echo.
pause
set /a p1health=%p1health% - 400
set p2nuke=0
if '%p1health%'=='0' goto p2win
if '%p1health%'=='-100' goto p2win
if '%p1health%'=='-200' goto p2win
if '%p1health%'=='-300' goto p2win
goto p1gameplay
:nop2nuke
echo.
echo You can't use a nuke since you don't have any more left!
echo.
pause
goto p2gameplay
:p2airstrike
cls
if '%p2airstrike%'=='0' goto nop2airstrike
echo.
echo %p2name% has fired an airstrike on %p1country%!
echo.
ping localhost -n 4 >nul
echo Hit!
echo.
echo %p1country% has lost 300 DEF!
echo.
pause
set /a p1health=%p1health% - 300
set /a p2airstrike=%p2airstrike% - 1
if '%p1health%'=='0' goto p2win
if '%p1health%'=='-100' goto p2win
if '%p1health%'=='-200' goto p2win
if '%p1health%'=='-300' goto p2win
goto p1gameplay
:nop2airstrike
echo.
echo You can't use an airstrike since you don't have any more left!
echo.
pause
goto p2gameplay
:p2missiles
cls
if '%p2missiles%'=='0' goto nop2missiles
echo.
echo %p2name% has fired multiple missiles headed towards %p1country%!
echo.
ping localhost -n 4 >nul
echo Hit!
echo.
echo %p1country% has lost 200 DEF!
echo.
pause
set /a p1health=%p1health% - 200
set /a p2missiles=%p2missiles% - 1
if '%p1health%'=='0' goto p2win
if '%p1health%'=='-100' goto p2win
if '%p1health%'=='-200' goto p2win
if '%p1health%'=='-300' goto p2win
goto p1gameplay
:nop2missiles
echo.
echo You can't use missiles since you don't have any more left!
echo.
pause
goto p2gameplay
:p2surrender
cls
echo.
echo %p1name% has won Total War!!!
echo.
pause
:p2surrender2
cls
echo.
echo %p1name% has won Total War!!!
echo.
set /p replay=Type anything to replay the game. Type 'x' to exit:
if '%replay%'=='x' goto suggest
if '%replay%'=='' goto p2surrender2
goto players
:p2win
cls
echo.
echo %p2name% has won Total War!!!
echo.
pause
:p2win2
cls
echo.
echo %p2name% has won Total War!!!
echo.
set /p replay=Type anything to replay the game. Type 'x' to exit:
if '%replay%'=='x' goto suggest
if '%replay%'=='' goto p2win2
goto players
:suggest
cls
echo.
echo Before you leave, can you suggest a country I can add to the file?
echo.
set /p suggestion=Suggest a country here:
if '%suggestion%'=='' goto suggest
echo %suggestion% >> suggestions.txt
<p>thanks i love this game it seems to run perfectly</p>
<p>Why won't the game let me play? It opens the window then it closes</p>
Why does it crash whenever i input a number??!!<br><br>@echo off<br>color de<br>title Micah's TRIVIA<br>echo.<br>echo ---------------<br>echo.<br>echo Welcome to Micah's TRIVIA!!!!!<br>echo.<br>echo ---------------<br>echo.<br><br>set lives=3<br><br>pause<br>cls<br><br>:question1<br><br>echo lives=%lives% <br><br>echo Question 1:<br><br><br>echo What Is My Middle Name?<br>echo.<br>echo ---------------<br>echo.<br>echo 1. John<br>echo 2. Randell<br>echo 3. Andre<br><br>set /p MiddleName =C:/<br><br>if %MiddleName%==1 goto incorrect1<br>if %Middlename%==2 goto correct1<br>if %Middlename%==3 goto incorrect1<br>goto incorrect1<br><br>:incorrect1<br>cls<br>echo That was an incorrect answer!<br>pause<br>goto question1<br><br>:Correct1<br>cls<br>echo Thats right!!<br>pause
<p>One attack you should add is Hack. It makes them other player lose his turn and deals 50 damage.</p>
<p>You should make a WWI/WWII version.</p><p>Countries to add: China, Japan, France, Germany, England.</p><p>Features to add: You should add an option to change the text color.</p><p>Power-Ups: Some power ups to give added health or something like that.</p><p>You should add more attacks.</p>
<p>Can you add Germany into the game</p>
<p>;( pls tell me</p>
<p>how do i play the game ?</p>
<p>Use color 8e... Looks really nice... Its yellow text on a light gray background... I'm currently working on my own war based game called &quot;Nuclear Warfare&quot; and have that as my color... looks great and easy to read</p>
<p>i have a problem with this naruto batch file i was trying to mess with can you help??</p>
<p>Here is my version of the game, in a MLG theme.</p><p>@echo off<br> color 2F<br> title MLG Fighting<br> echo.<br> echo Welcome to MLG Fighting, created by Vincent Allain, edited by Matthew Evan to<br> echo make MLG Fighting.<br> echo.<br> echo (Origional Game Name Was Total War)<br> pause<br> :players<br> cls<br> set player=<br> set replay=<br> echo.<br> set /p player=Select 1 or 2 player mode:<br> if '%player%'=='1' goto name<br> if '%player%'=='2' goto p1name<br> goto players<br> :name<br> cls<br> set name=<br> echo.<br> set /p name=Please type in your name (One word):<br> if '%name%'=='' goto name<br> rem Easter Egg:<br> if '%name%'=='Vincent' goto win<br> if '%name%'=='Nitro' goto win<br> :country<br> cls<br> set country=<br> set enemy=<br> echo.<br> echo Welcome %name%!<br> echo.<br> set /p country=Choose your person; SnoopDogg, Lenny, or Shrek:<br> if '%country%'=='snoopdogg' goto enemy1<br> if '%country%'=='SnoopDogg' goto enemy1<br> if '%country%'=='Snoopdogg' goto enemy1<br> if '%country%'=='Lenny' goto enemy2<br> if '%country%'=='lenny' goto enemy2<br> if '%country%'=='Shrek' goto enemy3<br> if '%country%'=='shrek' goto enemy3<br> goto country<br> :enemy1<br> set country=SnoopDogg<br> goto enemy<br> :enemy2<br> set country=Lenny<br> goto enemy<br> :enemy3<br> set country=Shrek<br> :enemy<br> set /a cpucountryrand=%random% %%5 +1<br> if '%cpucountryrand%'=='0' goto enemy<br> if '%cpucountryrand%'=='1' set enemy=Lenny<br> if '%cpucountryrand%'=='2' set enemy=SnoopDogg<br> if '%cpucountryrand%'=='3' set enemy=Shrek<br> if '%cpucountryrand%'=='4' goto enemy<br> if '%cpucountryrand%'=='5' goto enemy<br> if '%enemy%'=='%country%' goto enemy<br> :begin<br> set user=1000<br> set cpu=1000<br> set nuke=1<br> set airstrike=2<br> set missiles=3<br> set cpunuke=1<br> set cpuairstrike=2<br> set cpumissiles=3<br> :gameplay<br> cls<br> set move=<br> set choice=<br> set cpucount=0<br> echo.<br> echo %name%, your turn.<br> echo %country%: %user% HP<br> echo Options:<br> echo %enemy%: %cpu% HP<br> echo 1. Drink Mtn Dew x %nuke%<br> echo.<br> echo 2. Noscope x %airstrike%<br> echo.<br> echo 3. Throw Bomb x %missiles%<br> echo.<br> echo 4. Surrender<br> echo.<br> echo 5. Do nothing<br> echo.<br> set /p move=Select your option:<br> if '%move%'=='1' goto nuke<br> if '%move%'=='2' goto airstrike<br> if '%move%'=='3' goto missiles<br> if '%move%'=='4' goto surrender<br> if '%move%'=='5' goto cpu1<br> goto gameplay<br> :nuke<br> cls<br> if '%nuke%'=='0' goto nonuke<br> echo.<br> echo %name% has drank a Mtn Dew, and threw the can toward's %enemy%!<br> echo.<br> ping localhost -n 4 &gt;nul<br> echo Hit!<br> echo.<br> echo %enemy% has lost 400 HP!<br> echo.<br> pause<br> set /a cpu=%cpu% - 400<br> set nuke=0<br> if '%cpu%'=='0' goto win<br> if '%cpu%'=='-100' goto win<br> if '%cpu%'=='-200' goto win<br> if '%cpu%'=='-300' goto win<br> goto cpu1<br> :nonuke<br> echo.<br> echo You can't drink a Mtn Dew since you don't have any more left!<br> echo.<br> pause<br> goto gameplay<br> :airstrike<br> cls<br> if '%airstrike%'=='0' goto noairstrike<br> echo.<br> echo %name% has attemted to noscope %enemy%!<br> echo.<br> ping localhost -n 4 &gt;nul<br> echo Get Rect!<br> echo.<br> echo %enemy% has lost 300 HP!<br> echo.<br> pause<br> set /a cpu=%cpu% - 300<br> set /a airstrike=%airstrike% - 1<br> if '%cpu%'=='0' goto win<br> if '%cpu%'=='-100' goto win<br> if '%cpu%'=='-200' goto win<br> if '%cpu%'=='-300' goto win<br> goto cpu1<br> :noairstrike<br> echo.<br> echo You can't noscope since you don't have any more bullets left!<br> echo.<br> pause<br> goto gameplay<br> :missiles<br> cls<br> if '%missiles%'=='0' goto nomissiles<br> echo.<br> echo %name% has thrown a bomb headed towards the %enemy%!<br> echo.<br> ping localhost -n 4 &gt;nul<br> echo Kaboom!<br> echo.<br> echo %enemy% has lost 200 HP!<br> echo.<br> pause<br> set /a cpu=%cpu% - 200<br> set /a missiles=%missiles% - 1<br> if '%cpu%'=='0' goto win<br> if '%cpu%'=='-100' goto win<br> if '%cpu%'=='-200' goto win<br> if '%cpu%'=='-300' goto win<br> goto cpu1<br> :nomissiles<br> echo.<br> echo You can't use bombs since you don't have any more left!<br> echo.<br> pause<br> goto gameplay<br> :surrender<br> cls<br> echo.<br> echo &quot;I may have lost the battle, but I still have our deritos...&quot;<br> echo.<br> pause<br> :end<br> cls<br> echo.<br> echo &quot;I may have lost the battle, but I still have our deritos...&quot;<br> echo.<br> set /p replay=Type anything to replay the game. Type 'x' to exit:<br> if '%replay%'=='x' goto suggest<br> if '%replay%'=='' goto end<br> goto players<br> :win<br> cls<br> echo.<br> echo You have won!!!<br> echo.<br> pause<br> :win2<br> cls<br> echo.<br> echo You have won!!!<br> echo.<br> set /p replay=Type anything to replay the game. Type 'x' to exit:<br> if '%replay%'=='x' goto suggest<br> if '%replay%'=='' goto win2<br> goto players<br> :cpu1<br> cls<br> set /a cpucount=%cpucount% + 1<br> if '%cpucount%'=='10' goto cpu2<br> echo.<br> echo My turn.<br> echo %country%: %user% HP<br> echo Options:<br> echo %enemy%: %cpu% HP<br> echo 1. Drink Mtn Dew x %cpunuke%<br> echo.<br> echo 2. Noscope x %cpuairstrike%<br> echo.<br> echo 3. Throw Bomb x %cpumissiles%<br> echo.<br> echo 4. Surrender<br> echo.<br> echo 5. Do nothing<br> echo.<br> echo Select your option:/<br> ping localhost -n 1 &gt;nul<br> ping localhost -n 1 &gt;nul<br> ping localhost -n 1 &gt;nul<br> ping localhost -n 1 &gt;nul<br> cls<br> echo.<br> echo My turn.<br> echo %country%: %user% HP<br> echo Options:<br> echo %enemy%: %cpu% HP<br> echo 1. Drink Mtn Dew x %cpunuke%<br> echo.<br> echo 2. Noscope x %cpuairstrike%<br> echo.<br> echo 3. Throw Bomb x %cpumissiles%<br> echo.<br> echo 4. Surrender<br> echo.<br> echo 5. Do nothing<br> echo.<br> echo Select your option:-<br> ping localhost -n 1 &gt;nul<br> ping localhost -n 1 &gt;nul<br> ping localhost -n 1 &gt;nul<br> ping localhost -n 1 &gt;nul<br> cls<br> echo.<br> echo My turn.<br> echo %country%: %user% HP<br> echo Options:<br> echo %enemy%: %cpu% HP<br> echo 1. Drink Mtn Dew x %cpunuke%<br> echo.<br> echo 2. Noscope x %cpuairstrike%<br> echo.<br> echo 3. Throw Bomb x %cpumissiles%<br> echo.<br> echo 4. Surrender<br> echo.<br> echo 5. Do nothing<br> echo.<br> echo Select your option:\<br> ping localhost -n 1 &gt;nul<br> ping localhost -n 1 &gt;nul<br> ping localhost -n 1 &gt;nul<br> ping localhost -n 1 &gt;nul<br> goto cpu1<br> :cpu2<br> cls<br> set /a choice=%random% %%6<br> if '%choice%'=='0' goto cpu2<br> if '%choice%'=='4' goto cpu2<br> if '%choice%'=='6' goto cpu2<br> echo.<br> echo My turn.<br> echo %country%: %user% HP<br> echo Options:<br> echo %enemy%: %cpu% HP<br> echo 1. Drink Mtn Dew x %cpunuke%<br> echo.<br> echo 2. Noscope x %cpuairstrike%<br> echo.<br> echo 3. Throw Bomb x %cpumissiles%<br> echo.<br> echo 4. Surrender<br> echo.<br> echo 5. Do nothing<br> echo.<br> echo Select your option:%choice%<br> ping localhost -n 4 &gt;nul<br> if '%choice%'=='1' goto cpunuke<br> if '%choice%'=='2' goto cpuairstrike<br> if '%choice%'=='3' goto cpumissiles<br> if '%choice%'=='5' goto gameplay<br> :cpunuke<br> cls<br> if '%cpunuke%'=='0' goto nocpunuke<br> echo.<br> echo I have drank a Mtn Dew and threw the can towards %country%!<br> echo.<br> ping localhost -n 4 &gt;nul<br> echo Hit!<br> echo.<br> echo %country% has lost 400 HP!<br> echo.<br> ping localhost -n 4 &gt;nul<br> set /a user=%user% - 400<br> set cpunuke=0<br> if '%user%'=='0' goto cpuwin<br> if '%user%'=='-100' goto cpuwin<br> if '%user%'=='-200' goto cpuwin<br> if '%user%'=='-300' goto cpuwin<br> goto gameplay<br> :nocpunuke<br> echo.<br> echo I can't drink a Mtn Dew since I don't have any more left!<br> echo.<br> ping localhost -n 4 &gt;nul<br> set cpucount=0<br> goto cpu1<br> :cpuairstrike<br> cls<br> if '%cpuairstrike%'=='0' goto nocpuairstrike<br> echo.<br> echo I have thrown a bomb headed towards %country%!<br> echo.<br> ping localhost -n 4 &gt;nul<br> echo Kaboom!<br> echo.<br> echo %country% has lost 300 HP!<br> echo.<br> ping localhost -n 4 &gt;nul<br> set /a user=%user% - 300<br> set /a cpuairstrike=%cpuairstrike% - 1<br> if '%user%'=='0' goto cpuwin<br> if '%user%'=='-100' goto cpuwin<br> if '%user%'=='-200' goto cpuwin<br> if '%user%'=='-300' goto cpuwin<br> goto gameplay<br> :nocpuairstrike<br> echo.<br> echo I can't noscope since I don't have any more bullets left!<br> echo.<br> ping localhost -n 4 &gt;nul<br> set cpucount=0<br> goto cpu1<br> :cpumissiles<br> cls<br> if '%cpumissiles%'=='0' goto nocpumissiles<br> echo.<br> echo I have thrown a bomb headed towards %country%!<br> echo.<br> ping localhost -n 4 &gt;nul<br> echo Kaboom!<br> echo.<br> echo %country% has lost 200 HP!<br> echo.<br> ping localhost -n 4 &gt;nul<br> set /a user=%user% - 200<br> set /a cpumissiles=%cpumissiles% - 1<br> if '%user%'=='0' goto cpuwin<br> if '%user%'=='-100' goto cpuwin<br> if '%user%'=='-200' goto cpuwin<br> if '%user%'=='-300' goto cpuwin<br> goto gameplay<br> :nocpumissiles<br> echo.<br> echo I can't use bombs since I don't have any more left!<br> echo.<br> ping localhost -n 4 &gt;nul<br> set cpucount=0<br> goto cpu1<br> :cpuwin<br> cls<br> echo.<br> echo It was a long battle today. I have emerged victorious, even though you tried<br> echo to noscope me many times.<br> echo.<br> pause<br> :cpuwin2<br> cls<br> echo.<br> echo It was a long battle today. I have emerged victorious, even though you tried<br> echo to noscope me many times.<br> echo.<br> set /p replay=Type anything to replay the game. Type 'x' to exit:<br> if '%replay%'=='x' goto suggest<br> if '%replay%'=='' goto cpuwin2<br> goto players<br> :p1name<br> cls<br> set p1name=<br> echo.<br> set /p p1name=Player 1, please type in your name (One word):<br> if '%p1name%'=='' goto p1name<br> :p2name<br> cls<br> set p2name=<br> echo.<br> set /p p2name=Player 2, please type in your name (One word):<br> if '%p2name%'=='%p1name%' goto p2name<br> if '%p2name%'=='' goto p2name<br> rem Easter Egg:<br> if '%p1name%'=='Nitro' goto p1win<br> if '%p2name%'=='Nitro' goto p2win<br> :p1country<br> cls<br> set p1country=<br> echo.<br> echo Welcome %p1name%!<br> echo.<br> set /p p1country=Choose your person; SnoopDogg, Lenny, or Shrek:<br> if '%p1country%'=='snoopdogg' goto p1country1<br> if '%p1country%'=='SnoopDogg' goto p1country1<br> if '%p1country%'=='Snoopdogg' goto p1country1<br> if '%p1country%'=='Lenny' goto p1country2<br> if '%p1country%'=='lenny' goto p1country2<br> if '%p1country%'=='shrek' goto p1country3<br> if '%p1country%'=='Shrek' goto p1country3<br> goto p1country<br> :p1country1<br> set p1country=Snoop Dogg<br> goto p2country<br> :p1country2<br> set p1country=Lenny<br> goto p2country<br> :p1country3<br> set p1country=Shrek<br> :p2country<br> cls<br> set p2country=<br> echo.<br> echo Welcome %p2name%!<br> echo.<br> set /p p2country=Choose your person; SnoopDogg, Lenny, or Shrek:<br> if '%p2country%'=='%p1country%' goto na<br> if '%p2country%'=='snoopdogg' goto p2country1<br> if '%p2country%'=='Snoopdogg' goto p2country1<br> if '%p2country%'=='SnoopDogg' goto p2country1<br> if '%p2country%'=='Lenny' goto p2country2<br> if '%p2country%'=='lenny' goto p2country2<br> if '%p2country%'=='shrek' goto p2country3<br> if '%p2country%'=='Shrek' goto p2country3<br> goto p2country<br> :na<br> cls<br> echo.<br> echo You can't choose %p1country% because %p1name% has already chosen him.<br> pause &gt;nul<br> goto p2country<br> :p2country1<br> set p2country=Snoop Dogg<br> goto begin2<br> :p2country2<br> set p2country=Lenny<br> goto begin2<br> :p2country3<br> set p2country=Shrek<br> :begin2<br> set p1health=1000<br> set p2health=1000<br> set p1nuke=1<br> set p1airstrike=2<br> set p1missiles=3<br> set p2nuke=1<br> set p2airstrike=2<br> set p2missiles=3<br> :p1gameplay<br> cls<br> set move=<br> set choice=<br> echo.<br> echo %p1name%, your turn.<br> echo %p1country%: %p1health% HP<br> echo Options:<br> echo %p2country%: %p2health% HP<br> echo 1. Drink Mtn Dew x %p1nuke%<br> echo.<br> echo 2. Noscope x %p1airstrike%<br> echo.<br> echo 3. Throw Bombs x %p1missiles%<br> echo.<br> echo 4. Surrender<br> echo.<br> echo 5. Do nothing<br> echo.<br> set /p move=Select your option:<br> if '%move%'=='1' goto p1nuke<br> if '%move%'=='2' goto p1airstrike<br> if '%move%'=='3' goto p1missiles<br> if '%move%'=='4' goto p1surrender<br> if '%move%'=='5' goto p2gameplay<br> goto p1gameplay<br> :p1nuke<br> cls<br> if '%p1nuke%'=='0' goto nop1nuke<br> echo.<br> echo %p1name% has drank a Mtn Dew and threw the can towards %p2country%!<br> echo.<br> ping localhost -n 4 &gt;nul<br> echo Hit!<br> echo.<br> echo %p2country% has lost 400 HP!<br> echo.<br> pause<br> set /a p2health=%p2health% - 400<br> set p1nuke=0<br> if '%p2health%'=='0' goto p1win<br> if '%p2health%'=='-100' goto p1win<br> if '%p2health%'=='-200' goto p1win<br> if '%p2health%'=='-300' goto p1win<br> goto p2gameplay<br> :nop1nuke<br> echo.<br> echo You can't drink a Mtn Dew since you don't have any more left!<br> echo.<br> pause<br> goto p1gameplay<br> :p1airstrike<br> cls<br> if '%p1airstrike%'=='0' goto nop1airstrike<br> echo.<br> echo %p1name% has attemted to noscope %p2country%!<br> echo.<br> ping localhost -n 4 &gt;nul<br> echo Gotie!<br> echo.<br> echo %p2country% has lost 300 HP!<br> echo.<br> pause<br> set /a p2health=%p2health% - 300<br> set /a p1airstrike=%p1airstrike% - 1<br> if '%p2health%'=='0' goto p1win<br> if '%p2health%'=='-100' goto p1win<br> if '%p2health%'=='-200' goto p1win<br> if '%p2health%'=='-300' goto p1win<br> goto p2gameplay<br> :nop1airstrike<br> echo.<br> echo You can't noscope since you don't have any more bullets left!<br> echo.<br> pause<br> goto p1gameplay<br> :p1missiles<br> cls<br> if '%p1missiles%'=='0' goto nop1missiles<br> echo.<br> echo %p1name% has attemted to noscope %p2country%!<br> echo.<br> ping localhost -n 4 &gt;nul<br> echo Gotie!<br> echo.<br> echo %p2country% has lost 200 HP!<br> echo.<br> pause<br> set /a p2health=%p2health% - 200<br> set /a p1missiles=%p1missiles% - 1<br> if '%p2health%'=='0' goto p1win<br> if '%p2health%'=='-100' goto p1win<br> if '%p2health%'=='-200' goto p1win<br> if '%p2health%'=='-300' goto p1win<br> goto p2gameplay<br> :nop1missiles<br> echo.<br> echo You can't noscope since you don't have any more bullets left!<br> echo.<br> pause<br> goto p1gameplay<br> :p1surrender<br> cls<br> echo.<br> echo %p2name% has won!!!<br> echo.<br> pause<br> :p1surrender2<br> cls<br> echo.<br> echo %p2name% has won!!!<br> echo.<br> set /p replay=Type anything to replay the game. Type 'x' to exit:<br> if '%replay%'=='x' goto suggest<br> if '%replay%'=='' goto p1surrender2<br> goto players<br> :p1win<br> cls<br> echo.<br> echo %p1name% has won!!!<br> echo.<br> pause<br> :p1win2<br> cls<br> echo.<br> echo %p1name% has won!!!<br> echo.<br> set /p replay=Type anything to replay the game. Type 'x' to exit:<br> if '%replay%'=='x' goto suggest<br> if '%replay%'=='' goto p1win2<br> goto players<br> :p2gameplay<br> cls<br> set move=<br> set choice=<br> echo.<br> echo %p2name%, your turn.<br> echo %p2country%: %p2health% HP<br> echo Options:<br> echo %p1country%: %p1health% HP<br> echo 1. Drink Mtn Dew x %p2nuke%<br> echo.<br> echo 2. Noscope x %p2airstrike%<br> echo.<br> echo 3. Throw Bombs x %p2missiles%<br> echo.<br> echo 4. Surrender<br> echo.<br> echo 5. Do nothing<br> echo.<br> set /p move=Select your option:<br> if '%move%'=='1' goto p2nuke<br> if '%move%'=='2' goto p2airstrike<br> if '%move%'=='3' goto p2missiles<br> if '%move%'=='4' goto p2surrender<br> if '%move%'=='5' goto p1gameplay<br> goto p2gameplay<br> :p2nuke<br> cls<br> if '%p2nuke%'=='0' goto nop2nuke<br> echo.<br> echo %p2name% has drank a Mtn Dew and threw a can headed towards %p1country%!<br> echo.<br> ping localhost -n 4 &gt;nul<br> echo Hit!<br> echo.<br> echo %p1country% has lost 400 HP!<br> echo.<br> pause<br> set /a p1health=%p1health% - 400<br> set p2nuke=0<br> if '%p1health%'=='0' goto p2win<br> if '%p1health%'=='-100' goto p2win<br> if '%p1health%'=='-200' goto p2win<br> if '%p1health%'=='-300' goto p2win<br> goto p1gameplay<br> :nop2nuke<br> echo.<br> echo You can't use a Mtn Dew since you don't have any more left!<br> echo.<br> pause<br> goto p2gameplay<br> :p2airstrike<br> cls<br> if '%p2airstrike%'=='0' goto nop2airstrike<br> echo.<br> echo %p2name% has noscoped %p1country%!<br> echo.<br> ping localhost -n 4 &gt;nul<br> echo Hit!<br> echo.<br> echo %p1country% has lost 300 HP!<br> echo.<br> pause<br> set /a p1health=%p1health% - 300<br> set /a p2airstrike=%p2airstrike% - 1<br> if '%p1health%'=='0' goto p2win<br> if '%p1health%'=='-100' goto p2win<br> if '%p1health%'=='-200' goto p2win<br> if '%p1health%'=='-300' goto p2win<br> goto p1gameplay<br> :nop2airstrike<br> echo.<br> echo You can't noscope since you don't have any bullets left!<br> echo.<br> pause<br> goto p2gameplay<br> :p2missiles<br> cls<br> if '%p2missiles%'=='0' goto nop2missiles<br> echo.<br> echo %p2name% has thrown bombs towards %p1country%!<br> echo.<br> ping localhost -n 4 &gt;nul<br> echo Hit!<br> echo.<br> echo %p1country% has lost 200 HP!<br> echo.<br> pause<br> set /a p1health=%p1health% - 200<br> set /a p2missiles=%p2missiles% - 1<br> if '%p1health%'=='0' goto p2win<br> if '%p1health%'=='-100' goto p2win<br> if '%p1health%'=='-200' goto p2win<br> if '%p1health%'=='-300' goto p2win<br> goto p1gameplay<br> :nop2missiles<br> echo.<br> echo You can't use bombs since you don't have any more left!<br> echo.<br> pause<br> goto p2gameplay<br> :p2surrender<br> cls<br> echo.<br> echo %p1name% has won!!!<br> echo.<br> pause<br> :p2surrender2<br> cls<br> echo.<br> echo %p1name% has won!!!<br> echo.<br> set /p replay=Type anything to replay the game. Type 'x' to exit:<br> if '%replay%'=='x' goto suggest<br> if '%replay%'=='' goto p2surrender2<br> goto players<br> :p2win<br> cls<br> echo.<br> echo %p2name% has won!!!<br> echo.<br> pause<br> :p2win2<br> cls<br> echo.<br> echo %p2name% has won!!!<br> echo.<br> set /p replay=Type anything to replay the game. Type 'x' to exit:<br> if '%replay%'=='x' goto suggest<br> if '%replay%'=='' goto p2win2<br> goto players<br> :suggest<br> cls</p>
<p>I Love This Batch Game, Soooo Much Fun.</p><p>Would You Mind If My friend And I Added A Few Things To It To Make It A Longer Lasting Game?</p><p>If You Say Yes We Will Credit You As The Original Maker.</p><p>Thanks, MidgetCoder Out</p>
<p>Go ahead! This was just a project I did on my free time, so if you modify it, I don't mind. Just remember to cite me.</p>
<p>I changed the code up a bit to make it more efficient, changed DEF amount to higher and increased weapon values, also added in a heal self option, to give yourself DEF as opposed to sending an attack... anyone wants my code im happy to share my improvments.</p>
<p>Could I get the code for that, I'd love to put it in 1.3!</p>
<p>I completely lost track of this instructable prob to late now but here is my version of the game here can download it here: https://app.box.com/s/uv9ervbgthbsodyli73az01gp7b2m8kt its old now prob way outdated to anything you may have done, my heal addons are called :healself &amp; :noheal if you want just those elements, and of course need the corresponding set variables and options in the menus but im sure you know that. </p>
Cheers man, thanks heaps we will definitely cite you,<br><br>Cheers MidgetCoder<br>
<p>hay anyone know any batch files i can use cause i might be hacking a website called infinite campus if any one would like to join me / help me out I would be vary happy :)</p><p>ps here is a link</p><p> https://portal.swcs.us/campus/portal/southwestern.jsp</p>
<p>No, people cannot hack a school grade keeping website with a batch file. You ten year olds don't even know what you mean when you say &quot;hack&quot;.</p>
<p>How do i run this, sorry I'm just a total noob with a general interest in these sort of this. I copy and pasted it into notepad++ and saved it as a batch file however that did not work... What do I do?</p>
<p>try to use the noraml notepad.txt, copy it in, when you save you have to save as, and for example you wanna name it as&quot;totalwar&quot;, you have o type &quot;totalwar.bat&quot;, and select &quot;all files&quot;</p>
<p>I've created Version 1.2.1, a minor patch, but it fixes an issue that I found strange. It basically just allows your text to change back to its default setting after losing or winning a war, and it also includes an update log/changelog!</p><p>@echo off</p><p>color 0f</p><p>title TOTAL WAR!!!V1.2.1</p><p>echo.</p><p>echo Welcome to Total WarV1.2.1, created by Vincent Allain, edited by CreepKill2003.</p><p>echo UPDATE LOG- V1.2.1</p><p>echo -Will no longer keep your text color as green or red when you restart after winning or losing a match.</p><p>echo -We now have an update log!</p><p>echo.</p><p>pause</p><p>:players</p><p>color 0f</p><p>cls</p><p>set player=</p><p>set replay=</p><p>echo.</p><p>set /p player=Select 1 or 2 player mode:</p><p>if '%player%'=='1' goto name</p><p>if '%player%'=='2' goto p1name</p><p>goto players</p><p>:name</p><p>cls</p><p>set name=</p><p>echo.</p><p>set /p name=Please type in your name (One word):</p><p>if '%name%'=='' goto name</p><p>rem Easter Egg:</p><p>if '%name%'=='Vincent' goto win</p><p>if '%name%'=='CreepKill2003' goto win</p><p>:country</p><p>cls</p><p>set country=</p><p>set enemy=</p><p>echo.</p><p>echo Welcome %name%!</p><p>echo.</p><p>set /p country=Choose your country; USA, Russia, UK, or Canada:</p><p>if '%country%'=='usa' goto enemy1</p><p>if '%country%'=='USA' goto enemy1</p><p>if '%country%'=='Usa' goto enemy1</p><p>if '%country%'=='Russia' goto enemy2</p><p>if '%country%'=='russia' goto enemy2</p><p>if '%country%'=='canada' goto enemy3</p><p>if '%country%'=='Canada' goto enemy3</p><p>if '%country%'=='UK' goto enemy4</p><p>if '%country%'=='uk' goto enemy4</p><p>if '%country%'=='Uk' goto enemy4</p><p>goto country</p><p>:enemy1</p><p>set country=USA</p><p>goto enemy</p><p>:enemy2</p><p>set country=Russia</p><p>goto enemy</p><p>:enemy3</p><p>set country=Canada</p><p>:enemy4</p><p>set country=UK</p><p>:enemy</p><p>set /a cpucountryrand=%random% %%6 +1</p><p>if '%cpucountryrand%'=='0' goto enemy</p><p>if '%cpucountryrand%'=='1' set enemy=Russia</p><p>if '%cpucountryrand%'=='2' set enemy=USA</p><p>if '%cpucountryrand%'=='3' set enemy=Canada</p><p>if '%cpucountryrand%'=='4' set enemy=UK</p><p>if '%cpucountryrand%'=='5' goto enemy</p><p>if '%cpucountryrand%'=='6' goto enemy</p><p>if '%enemy%'=='%country%' goto enemy</p><p>:begin</p><p>set user=1000</p><p>set cpu=1000</p><p>set nuke=1</p><p>set airstrike=2</p><p>set missiles=3</p><p>set cpunuke=1</p><p>set cpuairstrike=2</p><p>set cpumissiles=3</p><p>:gameplay</p><p>cls</p><p>set move=</p><p>set choice=</p><p>set cpucount=0</p><p>echo.</p><p>echo %name%, your turn.</p><p>echo %country%: %user% DEF</p><p>echo Options:</p><p>echo %enemy%: %cpu% DEF</p><p>echo 1. Fire NUKE x %nuke%</p><p>echo.</p><p>echo 2. Fire Airstrike x %airstrike%</p><p>echo.</p><p>echo 3. Fire Missiles x %missiles%</p><p>echo.</p><p>echo 4. Surrender</p><p>echo.</p><p>echo 5. Do nothing</p><p>echo.</p><p>set /p move=Select your option:</p><p>if '%move%'=='1' goto nuke</p><p>if '%move%'=='2' goto airstrike</p><p>if '%move%'=='3' goto missiles</p><p>if '%move%'=='4' goto surrender</p><p>if '%move%'=='5' goto cpu1</p><p>goto gameplay</p><p>:nuke</p><p>cls</p><p>if '%nuke%'=='0' goto nonuke</p><p>echo.</p><p>echo %name% has fired a NUKE headed towards %enemy%!</p><p>echo.</p><p>ping localhost -n 4 &gt;nul</p><p>echo Hit!</p><p>echo.</p><p>echo %enemy% has lost 400 DEF!</p><p>echo.</p><p>pause</p><p>set /a cpu=%cpu% - 400</p><p>set nuke=0</p><p>if '%cpu%'=='0' goto win</p><p>if '%cpu%'=='-100' goto win</p><p>if '%cpu%'=='-200' goto win</p><p>if '%cpu%'=='-300' goto win</p><p>goto cpu1</p><p>:nonuke</p><p>echo.</p><p>echo You can't use a nuke since you don't have any more left!</p><p>echo.</p><p>pause</p><p>goto gameplay</p><p>:airstrike</p><p>cls</p><p>if '%airstrike%'=='0' goto noairstrike</p><p>echo.</p><p>echo %name% has fired an airstrike on %enemy%!</p><p>echo.</p><p>ping localhost -n 4 &gt;nul</p><p>echo Hit!</p><p>echo.</p><p>echo %enemy% has lost 300 DEF!</p><p>echo.</p><p>pause</p><p>set /a cpu=%cpu% - 300</p><p>set /a airstrike=%airstrike% - 1</p><p>if '%cpu%'=='0' goto win</p><p>if '%cpu%'=='-100' goto win</p><p>if '%cpu%'=='-200' goto win</p><p>if '%cpu%'=='-300' goto win</p><p>goto cpu1</p><p>:noairstrike</p><p>echo.</p><p>echo You can't use an airstrike since you don't have any more left!</p><p>echo.</p><p>pause</p><p>goto gameplay</p><p>:missiles</p><p>cls</p><p>if '%missiles%'=='0' goto nomissiles</p><p>echo.</p><p>echo %name% has fired multiple missiles headed towards %enemy%!</p><p>echo.</p><p>ping localhost -n 4 &gt;nul</p><p>echo Hit!</p><p>echo.</p><p>echo %enemy% has lost 200 DEF!</p><p>echo.</p><p>pause</p><p>set /a cpu=%cpu% - 200</p><p>set /a missiles=%missiles% - 1</p><p>if '%cpu%'=='0' goto win</p><p>if '%cpu%'=='-100' goto win</p><p>if '%cpu%'=='-200' goto win</p><p>if '%cpu%'=='-300' goto win</p><p>goto cpu1</p><p>:nomissiles</p><p>echo.</p><p>echo You can't use missiles since you don't have any more left!</p><p>echo.</p><p>pause</p><p>goto gameplay</p><p>:surrender</p><p>color 0c</p><p>cls</p><p>echo.</p><p>echo &quot;We may have lost the war, but we still have our dignity...&quot;</p><p>echo.</p><p>pause</p><p>:end</p><p>cls</p><p>echo.</p><p>echo &quot;We may have lost the war, but we still have our dignity...&quot;</p><p>echo.</p><p>set /p replay=Type anything to replay the game. Type 'x' to exit:</p><p>if '%replay%'=='x' goto suggest</p><p>if '%replay%'=='' goto end</p><p>goto players</p><p>:win</p><p>color 02</p><p>cls</p><p>echo.</p><p>echo You have won Total War!!!</p><p>echo.</p><p>pause</p><p>:win2</p><p>cls</p><p>echo.</p><p>echo You have won Total War!!!</p><p>echo.</p><p>set /p replay=Type anything to replay the game. Type 'x' to exit:</p><p>if '%replay%'=='x' goto suggest</p><p>if '%replay%'=='' goto win2</p><p>goto players</p><p>:cpu1</p><p>cls</p><p>set /a cpucount=%cpucount% + 1</p><p>if '%cpucount%'=='10' goto cpu2</p><p>echo.</p><p>echo My turn.</p><p>echo %country%: %user% DEF</p><p>echo Options:</p><p>echo %enemy%: %cpu% DEF</p><p>echo 1. Fire NUKE x %cpunuke%</p><p>echo.</p><p>echo 2. Fire Airstrike x %cpuairstrike%</p><p>echo.</p><p>echo 3. Fire Missiles x %cpumissiles%</p><p>echo.</p><p>echo 4. Surrender</p><p>echo.</p><p>echo 5. Do nothing</p><p>echo.</p><p>echo Select your option:/</p><p>ping localhost -n 1 &gt;nul</p><p>ping localhost -n 1 &gt;nul</p><p>ping localhost -n 1 &gt;nul</p><p>ping localhost -n 1 &gt;nul</p><p>cls</p><p>echo.</p><p>echo My turn.</p><p>echo %country%: %user% DEF</p><p>echo Options:</p><p>echo %enemy%: %cpu% DEF</p><p>echo 1. Fire NUKE x %cpunuke%</p><p>echo.</p><p>echo 2. Fire Airstrike x %cpuairstrike%</p><p>echo.</p><p>echo 3. Fire Missiles x %cpumissiles%</p><p>echo.</p><p>echo 4. Surrender</p><p>echo.</p><p>echo 5. Do nothing</p><p>echo.</p><p>echo Select your option:-</p><p>ping localhost -n 1 &gt;nul</p><p>ping localhost -n 1 &gt;nul</p><p>ping localhost -n 1 &gt;nul</p><p>ping localhost -n 1 &gt;nul</p><p>cls</p><p>echo.</p><p>echo My turn.</p><p>echo %country%: %user% DEF</p><p>echo Options:</p><p>echo %enemy%: %cpu% DEF</p><p>echo 1. Fire NUKE x %cpunuke%</p><p>echo.</p><p>echo 2. Fire Airstrike x %cpuairstrike%</p><p>echo.</p><p>echo 3. Fire Missiles x %cpumissiles%</p><p>echo.</p><p>echo 4. Surrender</p><p>echo.</p><p>echo 5. Do nothing</p><p>echo.</p><p>echo Select your option:\</p><p>ping localhost -n 1 &gt;nul</p><p>ping localhost -n 1 &gt;nul</p><p>ping localhost -n 1 &gt;nul</p><p>ping localhost -n 1 &gt;nul</p><p>goto cpu1</p><p>:cpu2</p><p>cls</p><p>set /a choice=%random% %%6</p><p>if '%choice%'=='0' goto cpu2</p><p>if '%choice%'=='4' goto cpu2</p><p>if '%choice%'=='6' goto cpu2</p><p>echo.</p><p>echo My turn.</p><p>echo %country%: %user% DEF</p><p>echo Options:</p><p>echo %enemy%: %cpu% DEF</p><p>echo 1. Fire NUKE x %cpunuke%</p><p>echo.</p><p>echo 2. Fire Airstrike x %cpuairstrike%</p><p>echo.</p><p>echo 3. Fire Missiles x %cpumissiles%</p><p>echo.</p><p>echo 4. Surrender</p><p>echo.</p><p>echo 5. Do nothing</p><p>echo.</p><p>echo Select your option:%choice%</p><p>ping localhost -n 4 &gt;nul</p><p>if '%choice%'=='1' goto cpunuke</p><p>if '%choice%'=='2' goto cpuairstrike</p><p>if '%choice%'=='3' goto cpumissiles</p><p>if '%choice%'=='5' goto gameplay</p><p>:cpunuke</p><p>cls</p><p>if '%cpunuke%'=='0' goto nocpunuke</p><p>echo.</p><p>echo I have fired a NUKE headed towards %country%!</p><p>echo.</p><p>ping localhost -n 4 &gt;nul</p><p>echo Hit!</p><p>echo.</p><p>echo %country% has lost 400 DEF!</p><p>echo.</p><p>ping localhost -n 4 &gt;nul</p><p>set /a user=%user% - 400</p><p>set cpunuke=0</p><p>if '%user%'=='0' goto cpuwin</p><p>if '%user%'=='-100' goto cpuwin</p><p>if '%user%'=='-200' goto cpuwin</p><p>if '%user%'=='-300' goto cpuwin</p><p>goto gameplay</p><p>:nocpunuke</p><p>echo.</p><p>echo I can't use a nuke since I don't have any more left!</p><p>echo.</p><p>ping localhost -n 4 &gt;nul</p><p>set cpucount=0</p><p>goto cpu1</p><p>:cpuairstrike</p><p>cls</p><p>if '%cpuairstrike%'=='0' goto nocpuairstrike</p><p>echo.</p><p>echo I have fired an airstrike on %country%!</p><p>echo.</p><p>ping localhost -n 4 &gt;nul</p><p>echo Hit!</p><p>echo.</p><p>echo %country% has lost 300 DEF!</p><p>echo.</p><p>ping localhost -n 4 &gt;nul</p><p>set /a user=%user% - 300</p><p>set /a cpuairstrike=%cpuairstrike% - 1</p><p>if '%user%'=='0' goto cpuwin</p><p>if '%user%'=='-100' goto cpuwin</p><p>if '%user%'=='-200' goto cpuwin</p><p>if '%user%'=='-300' goto cpuwin</p><p>goto gameplay</p><p>:nocpuairstrike</p><p>echo.</p><p>echo I can't use an airstrike since I don't have any more left!</p><p>echo.</p><p>ping localhost -n 4 &gt;nul</p><p>set cpucount=0</p><p>goto cpu1</p><p>:cpumissiles</p><p>cls</p><p>if '%cpumissiles%'=='0' goto nocpumissiles</p><p>echo.</p><p>echo I have fired multiple missiles headed towards %country%!</p><p>echo.</p><p>ping localhost -n 4 &gt;nul</p><p>echo Hit!</p><p>echo.</p><p>echo %country% has lost 200 DEF!</p><p>echo.</p><p>ping localhost -n 4 &gt;nul</p><p>set /a user=%user% - 200</p><p>set /a cpumissiles=%cpumissiles% - 1</p><p>if '%user%'=='0' goto cpuwin</p><p>if '%user%'=='-100' goto cpuwin</p><p>if '%user%'=='-200' goto cpuwin</p><p>if '%user%'=='-300' goto cpuwin</p><p>goto gameplay</p><p>:nocpumissiles</p><p>echo.</p><p>echo I can't use missiles since I don't have any more left!</p><p>echo.</p><p>ping localhost -n 4 &gt;nul</p><p>set cpucount=0</p><p>goto cpu1</p><p>:cpuwin</p><p>color 0c</p><p>cls</p><p>echo.</p><p>echo It was a long battle today. I have emerged victorious, even though you tried</p><p>echo very well.</p><p>echo.</p><p>pause</p><p>:cpuwin2</p><p>cls</p><p>echo.</p><p>echo It was a long battle today. I have emerged victorious, even though you tried</p><p>echo very well.</p><p>echo.</p><p>set /p replay=Type anything to replay the game. Type 'x' to exit:</p><p>if '%replay%'=='x' goto suggest</p><p>if '%replay%'=='' goto cpuwin2</p><p>goto players</p><p>:p1name</p><p>cls</p><p>set p1name=</p><p>echo.</p><p>set /p p1name=Player 1, please type in your name (One word):</p><p>if '%p1name%'=='' goto p1name</p><p>:p2name</p><p>cls</p><p>set p2name=</p><p>echo.</p><p>set /p p2name=Player 2, please type in your name (One word):</p><p>if '%p2name%'=='%p1name%' goto p2name</p><p>if '%p2name%'=='' goto p2name</p><p>rem Easter Egg:</p><p>if '%p1name%'=='Vincent' goto p1win</p><p>if '%p2name%'=='Vincent' goto p2win</p><p>:p1country</p><p>cls</p><p>set p1country=</p><p>echo.</p><p>echo Welcome %p1name%!</p><p>echo.</p><p>set /p p1country=Choose your country; USA, Russia, or Canada:</p><p>if '%p1country%'=='usa' goto p1country1</p><p>if '%p1country%'=='USA' goto p1country1</p><p>if '%p1country%'=='Usa' goto p1country1</p><p>if '%p1country%'=='Russia' goto p1country2</p><p>if '%p1country%'=='russia' goto p1country2</p><p>if '%p1country%'=='canada' goto p1country3</p><p>if '%p1country%'=='Canada' goto p1country3</p><p>if '%p1country%'=='UK' got p1country4</p><p>if '%p1country%'=='uk' got p1country4</p><p>if '%p1country%'=='Uk' got p1country4</p><p>goto p1country</p><p>:p1country1</p><p>set p1country=USA</p><p>goto p2country</p><p>:p1country2</p><p>set p1country=Russia</p><p>goto p2country</p><p>:p1country3</p><p>set p1country=Canada</p><p>:p1country4</p><p>set p1country=UK</p><p>:p2country</p><p>cls</p><p>set p2country=</p><p>echo.</p><p>echo Welcome %p2name%!</p><p>echo.</p><p>set /p p2country=Choose your country; USA, Russia, UK, or Canada:</p><p>if '%p2country%'=='%p1country%' goto na</p><p>if '%p2country%'=='usa' goto p2country1</p><p>if '%p2country%'=='USA' goto p2country1</p><p>if '%p2country%'=='Usa' goto p2country1</p><p>if '%p2country%'=='Russia' goto p2country2</p><p>if '%p2country%'=='russia' goto p2country2</p><p>if '%p2country%'=='canada' goto p2country3</p><p>if '%p2country%'=='Canada' goto p2country3</p><p>if '%p2country%'=='UK' got p2country4</p><p>if '%p2country%'=='uk' got p2country4</p><p>if '%p2country%'=='Uk' got p2country4</p><p>goto p2country</p><p>:na</p><p>cls</p><p>echo.</p><p>echo You can't choose %p1country% because %p1name% has already chosen it.</p><p>pause &gt;nul</p><p>goto p2country</p><p>:p2country1</p><p>set p2country=USA</p><p>goto begin2</p><p>:p2country2</p><p>set p2country=Russia</p><p>goto begin2</p><p>:p2country3</p><p>set p2country=Canada</p><p>goto begin2</p><p>:p2country4</p><p>set p2country=UK</p><p>goto begin2</p><p>:begin2</p><p>set p1health=1000</p><p>set p2health=1000</p><p>set p1nuke=1</p><p>set p1airstrike=2</p><p>set p1missiles=3</p><p>set p2nuke=1</p><p>set p2airstrike=2</p><p>set p2missiles=3</p><p>:p1gameplay</p><p>cls</p><p>set move=</p><p>set choice=</p><p>echo.</p><p>echo %p1name%, your turn.</p><p>echo %p1country%: %p1health% DEF</p><p>echo Options:</p><p>echo %p2country%: %p2health% DEF</p><p>echo 1. Fire NUKE x %p1nuke%</p><p>echo.</p><p>echo 2. Fire Airstrike x %p1airstrike%</p><p>echo.</p><p>echo 3. Fire Missiles x %p1missiles%</p><p>echo.</p><p>echo 4. Surrender</p><p>echo.</p><p>echo 5. Do nothing</p><p>echo.</p><p>set /p move=Select your option:</p><p>if '%move%'=='1' goto p1nuke</p><p>if '%move%'=='2' goto p1airstrike</p><p>if '%move%'=='3' goto p1missiles</p><p>if '%move%'=='4' goto p1surrender</p><p>if '%move%'=='5' goto p2gameplay</p><p>goto p1gameplay</p><p>:p1nuke</p><p>cls</p><p>if '%p1nuke%'=='0' goto nop1nuke</p><p>echo.</p><p>echo %p1name% has fired a NUKE headed towards %p2country%!</p><p>echo.</p><p>ping localhost -n 4 &gt;nul</p><p>echo Hit!</p><p>echo.</p><p>echo %p2country% has lost 400 DEF!</p><p>echo.</p><p>pause</p><p>set /a p2health=%p2health% - 400</p><p>set p1nuke=0</p><p>if '%p2health%'=='0' goto p1win</p><p>if '%p2health%'=='-100' goto p1win</p><p>if '%p2health%'=='-200' goto p1win</p><p>if '%p2health%'=='-300' goto p1win</p><p>goto p2gameplay</p><p>:nop1nuke</p><p>echo.</p><p>echo You can't use a nuke since you don't have any more left!</p><p>echo.</p><p>pause</p><p>goto p1gameplay</p><p>:p1airstrike</p><p>cls</p><p>if '%p1airstrike%'=='0' goto nop1airstrike</p><p>echo.</p><p>echo %p1name% has fired an airstrike on %p2country%!</p><p>echo.</p><p>ping localhost -n 4 &gt;nul</p><p>echo Hit!</p><p>echo.</p><p>echo %p2country% has lost 300 DEF!</p><p>echo.</p><p>pause</p><p>set /a p2health=%p2health% - 300</p><p>set /a p1airstrike=%p1airstrike% - 1</p><p>if '%p2health%'=='0' goto p1win</p><p>if '%p2health%'=='-100' goto p1win</p><p>if '%p2health%'=='-200' goto p1win</p><p>if '%p2health%'=='-300' goto p1win</p><p>goto p2gameplay</p><p>:nop1airstrike</p><p>echo.</p><p>echo You can't use an airstrike since you don't have any more left!</p><p>echo.</p><p>pause</p><p>goto p1gameplay</p><p>:p1missiles</p><p>cls</p><p>if '%p1missiles%'=='0' goto nop1missiles</p><p>echo.</p><p>echo %p1name% has fired multiple missiles headed towards %p2country%!</p><p>echo.</p><p>ping localhost -n 4 &gt;nul</p><p>echo Hit!</p><p>echo.</p><p>echo %p2country% has lost 200 DEF!</p><p>echo.</p><p>pause</p><p>set /a p2health=%p2health% - 200</p><p>set /a p1missiles=%p1missiles% - 1</p><p>if '%p2health%'=='0' goto p1win</p><p>if '%p2health%'=='-100' goto p1win</p><p>if '%p2health%'=='-200' goto p1win</p><p>if '%p2health%'=='-300' goto p1win</p><p>goto p2gameplay</p><p>:nop1missiles</p><p>echo.</p><p>echo You can't use missiles since you don't have any more left!</p><p>echo.</p><p>pause</p><p>goto p1gameplay</p><p>:p1surrender</p><p>color 02</p><p>cls</p><p>echo.</p><p>echo %p2name% has won Total War!!!</p><p>echo.</p><p>pause</p><p>:p1surrender2</p><p>cls</p><p>echo.</p><p>echo %p2name% has won Total War!!!</p><p>echo.</p><p>set /p replay=Type anything to replay the game. Type 'x' to exit:</p><p>if '%replay%'=='x' goto suggest</p><p>if '%replay%'=='' goto p1surrender2</p><p>goto players</p><p>:p1win</p><p>color 02</p><p>cls</p><p>echo.</p><p>echo %p1name% has won Total War!!!</p><p>echo.</p><p>pause</p><p>:p1win2</p><p>cls</p><p>echo.</p><p>echo %p1name% has won Total War!!!</p><p>echo.</p><p>set /p replay=Type anything to replay the game. Type 'x' to exit:</p><p>if '%replay%'=='x' goto suggest</p><p>if '%replay%'=='' goto p1win2</p><p>goto players</p><p>:p2gameplay</p><p>cls</p><p>set move=</p><p>set choice=</p><p>echo.</p><p>echo %p2name%, your turn.</p><p>echo %p2country%: %p2health% DEF</p><p>echo Options:</p><p>echo %p1country%: %p1health% DEF</p><p>echo 1. Fire NUKE x %p2nuke%</p><p>echo.</p><p>echo 2. Fire Airstrike x %p2airstrike%</p><p>echo.</p><p>echo 3. Fire Missiles x %p2missiles%</p><p>echo.</p><p>echo 4. Surrender</p><p>echo.</p><p>echo 5. Do nothing</p><p>echo.</p><p>set /p move=Select your option:</p><p>if '%move%'=='1' goto p2nuke</p><p>if '%move%'=='2' goto p2airstrike</p><p>if '%move%'=='3' goto p2missiles</p><p>if '%move%'=='4' goto p2surrender</p><p>if '%move%'=='5' goto p1gameplay</p><p>goto p2gameplay</p><p>:p2nuke</p><p>cls</p><p>if '%p2nuke%'=='0' goto nop2nuke</p><p>echo.</p><p>echo %p2name% has fired a NUKE headed towards %p1country%!</p><p>echo.</p><p>ping localhost -n 4 &gt;nul</p><p>echo Hit!</p><p>echo.</p><p>echo %p1country% has lost 400 DEF!</p><p>echo.</p><p>pause</p><p>set /a p1health=%p1health% - 400</p><p>set p2nuke=0</p><p>if '%p1health%'=='0' goto p2win</p><p>if '%p1health%'=='-100' goto p2win</p><p>if '%p1health%'=='-200' goto p2win</p><p>if '%p1health%'=='-300' goto p2win</p><p>goto p1gameplay</p><p>:nop2nuke</p><p>echo.</p><p>echo You can't use a nuke since you don't have any more left!</p><p>echo.</p><p>pause</p><p>goto p2gameplay</p><p>:p2airstrike</p><p>cls</p><p>if '%p2airstrike%'=='0' goto nop2airstrike</p><p>echo.</p><p>echo %p2name% has fired an airstrike on %p1country%!</p><p>echo.</p><p>ping localhost -n 4 &gt;nul</p><p>echo Hit!</p><p>echo.</p><p>echo %p1country% has lost 300 DEF!</p><p>echo.</p><p>pause</p><p>set /a p1health=%p1health% - 300</p><p>set /a p2airstrike=%p2airstrike% - 1</p><p>if '%p1health%'=='0' goto p2win</p><p>if '%p1health%'=='-100' goto p2win</p><p>if '%p1health%'=='-200' goto p2win</p><p>if '%p1health%'=='-300' goto p2win</p><p>goto p1gameplay</p><p>:nop2airstrike</p><p>echo.</p><p>echo You can't use an airstrike since you don't have any more left!</p><p>echo.</p><p>pause</p><p>goto p2gameplay</p><p>:p2missiles</p><p>cls</p><p>if '%p2missiles%'=='0' goto nop2missiles</p><p>echo.</p><p>echo %p2name% has fired multiple missiles headed towards %p1country%!</p><p>echo.</p><p>ping localhost -n 4 &gt;nul</p><p>echo Hit!</p><p>echo.</p><p>echo %p1country% has lost 200 DEF!</p><p>echo.</p><p>pause</p><p>set /a p1health=%p1health% - 200</p><p>set /a p2missiles=%p2missiles% - 1</p><p>if '%p1health%'=='0' goto p2win</p><p>if '%p1health%'=='-100' goto p2win</p><p>if '%p1health%'=='-200' goto p2win</p><p>if '%p1health%'=='-300' goto p2win</p><p>goto p1gameplay</p><p>:nop2missiles</p><p>echo.</p><p>echo You can't use missiles since you don't have any more left!</p><p>echo.</p><p>pause</p><p>goto p2gameplay</p><p>:p2surrender</p><p>color 02</p><p>cls</p><p>echo.</p><p>echo %p1name% has won Total War!!!</p><p>echo.</p><p>pause</p><p>:p2surrender2</p><p>cls</p><p>echo.</p><p>echo %p1name% has won Total War!!!</p><p>echo.</p><p>set /p replay=Type anything to replay the game. Type 'x' to exit:</p><p>if '%replay%'=='x' goto suggest</p><p>if '%replay%'=='' goto p2surrender2</p><p>goto players</p><p>color 02</p><p>:p2win</p><p>cls</p><p>echo.</p><p>echo %p2name% has won Total War!!!</p><p>echo.</p><p>pause</p><p>:p2win2</p><p>cls</p><p>echo.</p><p>echo %p2name% has won Total War!!!</p><p>echo.</p><p>set /p replay=Type anything to replay the game. Type 'x' to exit:</p><p>if '%replay%'=='x' goto suggest</p><p>if '%replay%'=='' goto p2win2</p><p>goto players</p><p>:suggest</p><p>cls</p><p>echo.</p><p>echo Before you leave, can you suggest a country I can add to the file?</p><p>echo.</p><p>set /p suggestion=Suggest a country here:</p><p>if '%suggestion%'=='' goto suggest</p><p>echo %suggestion% &gt;&gt; suggestions.txt</p>
Nice
Nice!!!!
Nice .bat file only not any good graphics, as always with batch
<p>Well, .bat or batch files are run with cmd, which is basically just a control panel to help you control different settings on your computer, and isn't exactly MADE to run games, but still can be made to.</p>
<p>Hey, this is a great game, and me, being a tech guy, I messed around with the coding, and ended up doing this.</p><p>@echo off</p><p>color 0f</p><p>title TOTAL WAR!!!V1.2</p><p>echo.</p><p>echo Welcome to Total WarV1.2, created by Vincent Allain, edited by CreepKill2003.</p><p>echo.</p><p>pause</p><p>:players</p><p>cls</p><p>set player=</p><p>set replay=</p><p>echo.</p><p>set /p player=Select 1 or 2 player mode:</p><p>if '%player%'=='1' goto name</p><p>if '%player%'=='2' goto p1name</p><p>goto players</p><p>:name</p><p>cls</p><p>set name=</p><p>echo.</p><p>set /p name=Please type in your name (One word):</p><p>if '%name%'=='' goto name</p><p>rem Easter Egg:</p><p>if '%name%'=='Vincent' goto win</p><p>if '%name%'=='CreepKill2003' goto win</p><p>:country</p><p>cls</p><p>set country=</p><p>set enemy=</p><p>echo.</p><p>echo Welcome %name%!</p><p>echo.</p><p>set /p country=Choose your country; USA, Russia, UK, or Canada:</p><p>if '%country%'=='usa' goto enemy1</p><p>if '%country%'=='USA' goto enemy1</p><p>if '%country%'=='Usa' goto enemy1</p><p>if '%country%'=='Russia' goto enemy2</p><p>if '%country%'=='russia' goto enemy2</p><p>if '%country%'=='canada' goto enemy3</p><p>if '%country%'=='Canada' goto enemy3</p><p>if '%country%'=='UK' goto enemy4</p><p>if '%country%'=='uk' goto enemy4</p><p>if '%country%'=='Uk' goto enemy4</p><p>goto country</p><p>:enemy1</p><p>set country=USA</p><p>goto enemy</p><p>:enemy2</p><p>set country=Russia</p><p>goto enemy</p><p>:enemy3</p><p>set country=Canada</p><p>:enemy4</p><p>set country=UK</p><p>:enemy</p><p>set /a cpucountryrand=%random% %%6 +1</p><p>if '%cpucountryrand%'=='0' goto enemy</p><p>if '%cpucountryrand%'=='1' set enemy=Russia</p><p>if '%cpucountryrand%'=='2' set enemy=USA</p><p>if '%cpucountryrand%'=='3' set enemy=Canada</p><p>if '%cpucountryrand%'=='4' set enemy=UK</p><p>if '%cpucountryrand%'=='5' goto enemy</p><p>if '%cpucountryrand%'=='6' goto enemy</p><p>if '%enemy%'=='%country%' goto enemy</p><p>:begin</p><p>set user=1000</p><p>set cpu=1000</p><p>set nuke=1</p><p>set airstrike=2</p><p>set missiles=3</p><p>set cpunuke=1</p><p>set cpuairstrike=2</p><p>set cpumissiles=3</p><p>:gameplay</p><p>cls</p><p>set move=</p><p>set choice=</p><p>set cpucount=0</p><p>echo.</p><p>echo %name%, your turn.</p><p>echo %country%: %user% DEF</p><p>echo Options:</p><p>echo %enemy%: %cpu% DEF</p><p>echo 1. Fire NUKE x %nuke%</p><p>echo.</p><p>echo 2. Fire Airstrike x %airstrike%</p><p>echo.</p><p>echo 3. Fire Missiles x %missiles%</p><p>echo.</p><p>echo 4. Surrender</p><p>echo.</p><p>echo 5. Do nothing</p><p>echo.</p><p>set /p move=Select your option:</p><p>if '%move%'=='1' goto nuke</p><p>if '%move%'=='2' goto airstrike</p><p>if '%move%'=='3' goto missiles</p><p>if '%move%'=='4' goto surrender</p><p>if '%move%'=='5' goto cpu1</p><p>goto gameplay</p><p>:nuke</p><p>cls</p><p>if '%nuke%'=='0' goto nonuke</p><p>echo.</p><p>echo %name% has fired a NUKE headed towards %enemy%!</p><p>echo.</p><p>ping localhost -n 4 &gt;nul</p><p>echo Hit!</p><p>echo.</p><p>echo %enemy% has lost 400 DEF!</p><p>echo.</p><p>pause</p><p>set /a cpu=%cpu% - 400</p><p>set nuke=0</p><p>if '%cpu%'=='0' goto win</p><p>if '%cpu%'=='-100' goto win</p><p>if '%cpu%'=='-200' goto win</p><p>if '%cpu%'=='-300' goto win</p><p>goto cpu1</p><p>:nonuke</p><p>echo.</p><p>echo You can't use a nuke since you don't have any more left!</p><p>echo.</p><p>pause</p><p>goto gameplay</p><p>:airstrike</p><p>cls</p><p>if '%airstrike%'=='0' goto noairstrike</p><p>echo.</p><p>echo %name% has fired an airstrike on %enemy%!</p><p>echo.</p><p>ping localhost -n 4 &gt;nul</p><p>echo Hit!</p><p>echo.</p><p>echo %enemy% has lost 300 DEF!</p><p>echo.</p><p>pause</p><p>set /a cpu=%cpu% - 300</p><p>set /a airstrike=%airstrike% - 1</p><p>if '%cpu%'=='0' goto win</p><p>if '%cpu%'=='-100' goto win</p><p>if '%cpu%'=='-200' goto win</p><p>if '%cpu%'=='-300' goto win</p><p>goto cpu1</p><p>:noairstrike</p><p>echo.</p><p>echo You can't use an airstrike since you don't have any more left!</p><p>echo.</p><p>pause</p><p>goto gameplay</p><p>:missiles</p><p>cls</p><p>if '%missiles%'=='0' goto nomissiles</p><p>echo.</p><p>echo %name% has fired multiple missiles headed towards %enemy%!</p><p>echo.</p><p>ping localhost -n 4 &gt;nul</p><p>echo Hit!</p><p>echo.</p><p>echo %enemy% has lost 200 DEF!</p><p>echo.</p><p>pause</p><p>set /a cpu=%cpu% - 200</p><p>set /a missiles=%missiles% - 1</p><p>if '%cpu%'=='0' goto win</p><p>if '%cpu%'=='-100' goto win</p><p>if '%cpu%'=='-200' goto win</p><p>if '%cpu%'=='-300' goto win</p><p>goto cpu1</p><p>:nomissiles</p><p>echo.</p><p>echo You can't use missiles since you don't have any more left!</p><p>echo.</p><p>pause</p><p>goto gameplay</p><p>:surrender</p><p>color 0c</p><p>cls</p><p>echo.</p><p>echo &quot;We may have lost the war, but we still have our dignity...&quot;</p><p>echo.</p><p>pause</p><p>:end</p><p>cls</p><p>echo.</p><p>echo &quot;We may have lost the war, but we still have our dignity...&quot;</p><p>echo.</p><p>set /p replay=Type anything to replay the game. Type 'x' to exit:</p><p>if '%replay%'=='x' goto suggest</p><p>if '%replay%'=='' goto end</p><p>goto players</p><p>:win</p><p>color 02</p><p>cls</p><p>echo.</p><p>echo You have won Total War!!!</p><p>echo.</p><p>pause</p><p>:win2</p><p>cls</p><p>echo.</p><p>echo You have won Total War!!!</p><p>echo.</p><p>set /p replay=Type anything to replay the game. Type 'x' to exit:</p><p>if '%replay%'=='x' goto suggest</p><p>if '%replay%'=='' goto win2</p><p>goto players</p><p>:cpu1</p><p>cls</p><p>set /a cpucount=%cpucount% + 1</p><p>if '%cpucount%'=='10' goto cpu2</p><p>echo.</p><p>echo My turn.</p><p>echo %country%: %user% DEF</p><p>echo Options:</p><p>echo %enemy%: %cpu% DEF</p><p>echo 1. Fire NUKE x %cpunuke%</p><p>echo.</p><p>echo 2. Fire Airstrike x %cpuairstrike%</p><p>echo.</p><p>echo 3. Fire Missiles x %cpumissiles%</p><p>echo.</p><p>echo 4. Surrender</p><p>echo.</p><p>echo 5. Do nothing</p><p>echo.</p><p>echo Select your option:/</p><p>ping localhost -n 1 &gt;nul</p><p>ping localhost -n 1 &gt;nul</p><p>ping localhost -n 1 &gt;nul</p><p>ping localhost -n 1 &gt;nul</p><p>cls</p><p>echo.</p><p>echo My turn.</p><p>echo %country%: %user% DEF</p><p>echo Options:</p><p>echo %enemy%: %cpu% DEF</p><p>echo 1. Fire NUKE x %cpunuke%</p><p>echo.</p><p>echo 2. Fire Airstrike x %cpuairstrike%</p><p>echo.</p><p>echo 3. Fire Missiles x %cpumissiles%</p><p>echo.</p><p>echo 4. Surrender</p><p>echo.</p><p>echo 5. Do nothing</p><p>echo.</p><p>echo Select your option:-</p><p>ping localhost -n 1 &gt;nul</p><p>ping localhost -n 1 &gt;nul</p><p>ping localhost -n 1 &gt;nul</p><p>ping localhost -n 1 &gt;nul</p><p>cls</p><p>echo.</p><p>echo My turn.</p><p>echo %country%: %user% DEF</p><p>echo Options:</p><p>echo %enemy%: %cpu% DEF</p><p>echo 1. Fire NUKE x %cpunuke%</p><p>echo.</p><p>echo 2. Fire Airstrike x %cpuairstrike%</p><p>echo.</p><p>echo 3. Fire Missiles x %cpumissiles%</p><p>echo.</p><p>echo 4. Surrender</p><p>echo.</p><p>echo 5. Do nothing</p><p>echo.</p><p>echo Select your option:\</p><p>ping localhost -n 1 &gt;nul</p><p>ping localhost -n 1 &gt;nul</p><p>ping localhost -n 1 &gt;nul</p><p>ping localhost -n 1 &gt;nul</p><p>goto cpu1</p><p>:cpu2</p><p>cls</p><p>set /a choice=%random% %%6</p><p>if '%choice%'=='0' goto cpu2</p><p>if '%choice%'=='4' goto cpu2</p><p>if '%choice%'=='6' goto cpu2</p><p>echo.</p><p>echo My turn.</p><p>echo %country%: %user% DEF</p><p>echo Options:</p><p>echo %enemy%: %cpu% DEF</p><p>echo 1. Fire NUKE x %cpunuke%</p><p>echo.</p><p>echo 2. Fire Airstrike x %cpuairstrike%</p><p>echo.</p><p>echo 3. Fire Missiles x %cpumissiles%</p><p>echo.</p><p>echo 4. Surrender</p><p>echo.</p><p>echo 5. Do nothing</p><p>echo.</p><p>echo Select your option:%choice%</p><p>ping localhost -n 4 &gt;nul</p><p>if '%choice%'=='1' goto cpunuke</p><p>if '%choice%'=='2' goto cpuairstrike</p><p>if '%choice%'=='3' goto cpumissiles</p><p>if '%choice%'=='5' goto gameplay</p><p>:cpunuke</p><p>cls</p><p>if '%cpunuke%'=='0' goto nocpunuke</p><p>echo.</p><p>echo I have fired a NUKE headed towards %country%!</p><p>echo.</p><p>ping localhost -n 4 &gt;nul</p><p>echo Hit!</p><p>echo.</p><p>echo %country% has lost 400 DEF!</p><p>echo.</p><p>ping localhost -n 4 &gt;nul</p><p>set /a user=%user% - 400</p><p>set cpunuke=0</p><p>if '%user%'=='0' goto cpuwin</p><p>if '%user%'=='-100' goto cpuwin</p><p>if '%user%'=='-200' goto cpuwin</p><p>if '%user%'=='-300' goto cpuwin</p><p>goto gameplay</p><p>:nocpunuke</p><p>echo.</p><p>echo I can't use a nuke since I don't have any more left!</p><p>echo.</p><p>ping localhost -n 4 &gt;nul</p><p>set cpucount=0</p><p>goto cpu1</p><p>:cpuairstrike</p><p>cls</p><p>if '%cpuairstrike%'=='0' goto nocpuairstrike</p><p>echo.</p><p>echo I have fired an airstrike on %country%!</p><p>echo.</p><p>ping localhost -n 4 &gt;nul</p><p>echo Hit!</p><p>echo.</p><p>echo %country% has lost 300 DEF!</p><p>echo.</p><p>ping localhost -n 4 &gt;nul</p><p>set /a user=%user% - 300</p><p>set /a cpuairstrike=%cpuairstrike% - 1</p><p>if '%user%'=='0' goto cpuwin</p><p>if '%user%'=='-100' goto cpuwin</p><p>if '%user%'=='-200' goto cpuwin</p><p>if '%user%'=='-300' goto cpuwin</p><p>goto gameplay</p><p>:nocpuairstrike</p><p>echo.</p><p>echo I can't use an airstrike since I don't have any more left!</p><p>echo.</p><p>ping localhost -n 4 &gt;nul</p><p>set cpucount=0</p><p>goto cpu1</p><p>:cpumissiles</p><p>cls</p><p>if '%cpumissiles%'=='0' goto nocpumissiles</p><p>echo.</p><p>echo I have fired multiple missiles headed towards %country%!</p><p>echo.</p><p>ping localhost -n 4 &gt;nul</p><p>echo Hit!</p><p>echo.</p><p>echo %country% has lost 200 DEF!</p><p>echo.</p><p>ping localhost -n 4 &gt;nul</p><p>set /a user=%user% - 200</p><p>set /a cpumissiles=%cpumissiles% - 1</p><p>if '%user%'=='0' goto cpuwin</p><p>if '%user%'=='-100' goto cpuwin</p><p>if '%user%'=='-200' goto cpuwin</p><p>if '%user%'=='-300' goto cpuwin</p><p>goto gameplay</p><p>:nocpumissiles</p><p>echo.</p><p>echo I can't use missiles since I don't have any more left!</p><p>echo.</p><p>ping localhost -n 4 &gt;nul</p><p>set cpucount=0</p><p>goto cpu1</p><p>:cpuwin</p><p>color 0c</p><p>cls</p><p>echo.</p><p>echo It was a long battle today. I have emerged victorious, even though you tried</p><p>echo very well.</p><p>echo.</p><p>pause</p><p>:cpuwin2</p><p>cls</p><p>echo.</p><p>echo It was a long battle today. I have emerged victorious, even though you tried</p><p>echo very well.</p><p>echo.</p><p>set /p replay=Type anything to replay the game. Type 'x' to exit:</p><p>if '%replay%'=='x' goto suggest</p><p>if '%replay%'=='' goto cpuwin2</p><p>goto players</p><p>:p1name</p><p>cls</p><p>set p1name=</p><p>echo.</p><p>set /p p1name=Player 1, please type in your name (One word):</p><p>if '%p1name%'=='' goto p1name</p><p>:p2name</p><p>cls</p><p>set p2name=</p><p>echo.</p><p>set /p p2name=Player 2, please type in your name (One word):</p><p>if '%p2name%'=='%p1name%' goto p2name</p><p>if '%p2name%'=='' goto p2name</p><p>rem Easter Egg:</p><p>if '%p1name%'=='Vincent' goto p1win</p><p>if '%p2name%'=='Vincent' goto p2win</p><p>:p1country</p><p>cls</p><p>set p1country=</p><p>echo.</p><p>echo Welcome %p1name%!</p><p>echo.</p><p>set /p p1country=Choose your country; USA, Russia, or Canada:</p><p>if '%p1country%'=='usa' goto p1country1</p><p>if '%p1country%'=='USA' goto p1country1</p><p>if '%p1country%'=='Usa' goto p1country1</p><p>if '%p1country%'=='Russia' goto p1country2</p><p>if '%p1country%'=='russia' goto p1country2</p><p>if '%p1country%'=='canada' goto p1country3</p><p>if '%p1country%'=='Canada' goto p1country3</p><p>if '%p1country%'=='UK' got p1country4</p><p>if '%p1country%'=='uk' got p1country4</p><p>if '%p1country%'=='Uk' got p1country4</p><p>goto p1country</p><p>:p1country1</p><p>set p1country=USA</p><p>goto p2country</p><p>:p1country2</p><p>set p1country=Russia</p><p>goto p2country</p><p>:p1country3</p><p>set p1country=Canada</p><p>:p1country4</p><p>set p1country=UK</p><p>:p2country</p><p>cls</p><p>set p2country=</p><p>echo.</p><p>echo Welcome %p2name%!</p><p>echo.</p><p>set /p p2country=Choose your country; USA, Russia, UK, or Canada:</p><p>if '%p2country%'=='%p1country%' goto na</p><p>if '%p2country%'=='usa' goto p2country1</p><p>if '%p2country%'=='USA' goto p2country1</p><p>if '%p2country%'=='Usa' goto p2country1</p><p>if '%p2country%'=='Russia' goto p2country2</p><p>if '%p2country%'=='russia' goto p2country2</p><p>if '%p2country%'=='canada' goto p2country3</p><p>if '%p2country%'=='Canada' goto p2country3</p><p>if '%p2country%'=='UK' got p2country4</p><p>if '%p2country%'=='uk' got p2country4</p><p>if '%p2country%'=='Uk' got p2country4</p><p>goto p2country</p><p>:na</p><p>cls</p><p>echo.</p><p>echo You can't choose %p1country% because %p1name% has already chosen it.</p><p>pause &gt;nul</p><p>goto p2country</p><p>:p2country1</p><p>set p2country=USA</p><p>goto begin2</p><p>:p2country2</p><p>set p2country=Russia</p><p>goto begin2</p><p>:p2country3</p><p>set p2country=Canada</p><p>goto begin2</p><p>:p2country4</p><p>set p2country=UK</p><p>goto begin2</p><p>:begin2</p><p>set p1health=1000</p><p>set p2health=1000</p><p>set p1nuke=1</p><p>set p1airstrike=2</p><p>set p1missiles=3</p><p>set p2nuke=1</p><p>set p2airstrike=2</p><p>set p2missiles=3</p><p>:p1gameplay</p><p>cls</p><p>set move=</p><p>set choice=</p><p>echo.</p><p>echo %p1name%, your turn.</p><p>echo %p1country%: %p1health% DEF</p><p>echo Options:</p><p>echo %p2country%: %p2health% DEF</p><p>echo 1. Fire NUKE x %p1nuke%</p><p>echo.</p><p>echo 2. Fire Airstrike x %p1airstrike%</p><p>echo.</p><p>echo 3. Fire Missiles x %p1missiles%</p><p>echo.</p><p>echo 4. Surrender</p><p>echo.</p><p>echo 5. Do nothing</p><p>echo.</p><p>set /p move=Select your option:</p><p>if '%move%'=='1' goto p1nuke</p><p>if '%move%'=='2' goto p1airstrike</p><p>if '%move%'=='3' goto p1missiles</p><p>if '%move%'=='4' goto p1surrender</p><p>if '%move%'=='5' goto p2gameplay</p><p>goto p1gameplay</p><p>:p1nuke</p><p>cls</p><p>if '%p1nuke%'=='0' goto nop1nuke</p><p>echo.</p><p>echo %p1name% has fired a NUKE headed towards %p2country%!</p><p>echo.</p><p>ping localhost -n 4 &gt;nul</p><p>echo Hit!</p><p>echo.</p><p>echo %p2country% has lost 400 DEF!</p><p>echo.</p><p>pause</p><p>set /a p2health=%p2health% - 400</p><p>set p1nuke=0</p><p>if '%p2health%'=='0' goto p1win</p><p>if '%p2health%'=='-100' goto p1win</p><p>if '%p2health%'=='-200' goto p1win</p><p>if '%p2health%'=='-300' goto p1win</p><p>goto p2gameplay</p><p>:nop1nuke</p><p>echo.</p><p>echo You can't use a nuke since you don't have any more left!</p><p>echo.</p><p>pause</p><p>goto p1gameplay</p><p>:p1airstrike</p><p>cls</p><p>if '%p1airstrike%'=='0' goto nop1airstrike</p><p>echo.</p><p>echo %p1name% has fired an airstrike on %p2country%!</p><p>echo.</p><p>ping localhost -n 4 &gt;nul</p><p>echo Hit!</p><p>echo.</p><p>echo %p2country% has lost 300 DEF!</p><p>echo.</p><p>pause</p><p>set /a p2health=%p2health% - 300</p><p>set /a p1airstrike=%p1airstrike% - 1</p><p>if '%p2health%'=='0' goto p1win</p><p>if '%p2health%'=='-100' goto p1win</p><p>if '%p2health%'=='-200' goto p1win</p><p>if '%p2health%'=='-300' goto p1win</p><p>goto p2gameplay</p><p>:nop1airstrike</p><p>echo.</p><p>echo You can't use an airstrike since you don't have any more left!</p><p>echo.</p><p>pause</p><p>goto p1gameplay</p><p>:p1missiles</p><p>cls</p><p>if '%p1missiles%'=='0' goto nop1missiles</p><p>echo.</p><p>echo %p1name% has fired multiple missiles headed towards %p2country%!</p><p>echo.</p><p>ping localhost -n 4 &gt;nul</p><p>echo Hit!</p><p>echo.</p><p>echo %p2country% has lost 200 DEF!</p><p>echo.</p><p>pause</p><p>set /a p2health=%p2health% - 200</p><p>set /a p1missiles=%p1missiles% - 1</p><p>if '%p2health%'=='0' goto p1win</p><p>if '%p2health%'=='-100' goto p1win</p><p>if '%p2health%'=='-200' goto p1win</p><p>if '%p2health%'=='-300' goto p1win</p><p>goto p2gameplay</p><p>:nop1missiles</p><p>echo.</p><p>echo You can't use missiles since you don't have any more left!</p><p>echo.</p><p>pause</p><p>goto p1gameplay</p><p>:p1surrender</p><p>color 02</p><p>cls</p><p>echo.</p><p>echo %p2name% has won Total War!!!</p><p>echo.</p><p>pause</p><p>:p1surrender2</p><p>cls</p><p>echo.</p><p>echo %p2name% has won Total War!!!</p><p>echo.</p><p>set /p replay=Type anything to replay the game. Type 'x' to exit:</p><p>if '%replay%'=='x' goto suggest</p><p>if '%replay%'=='' goto p1surrender2</p><p>goto players</p><p>:p1win</p><p>color 02</p><p>cls</p><p>echo.</p><p>echo %p1name% has won Total War!!!</p><p>echo.</p><p>pause</p><p>:p1win2</p><p>cls</p><p>echo.</p><p>echo %p1name% has won Total War!!!</p><p>echo.</p><p>set /p replay=Type anything to replay the game. Type 'x' to exit:</p><p>if '%replay%'=='x' goto suggest</p><p>if '%replay%'=='' goto p1win2</p><p>goto players</p><p>:p2gameplay</p><p>cls</p><p>set move=</p><p>set choice=</p><p>echo.</p><p>echo %p2name%, your turn.</p><p>echo %p2country%: %p2health% DEF</p><p>echo Options:</p><p>echo %p1country%: %p1health% DEF</p><p>echo 1. Fire NUKE x %p2nuke%</p><p>echo.</p><p>echo 2. Fire Airstrike x %p2airstrike%</p><p>echo.</p><p>echo 3. Fire Missiles x %p2missiles%</p><p>echo.</p><p>echo 4. Surrender</p><p>echo.</p><p>echo 5. Do nothing</p><p>echo.</p><p>set /p move=Select your option:</p><p>if '%move%'=='1' goto p2nuke</p><p>if '%move%'=='2' goto p2airstrike</p><p>if '%move%'=='3' goto p2missiles</p><p>if '%move%'=='4' goto p2surrender</p><p>if '%move%'=='5' goto p1gameplay</p><p>goto p2gameplay</p><p>:p2nuke</p><p>cls</p><p>if '%p2nuke%'=='0' goto nop2nuke</p><p>echo.</p><p>echo %p2name% has fired a NUKE headed towards %p1country%!</p><p>echo.</p><p>ping localhost -n 4 &gt;nul</p><p>echo Hit!</p><p>echo.</p><p>echo %p1country% has lost 400 DEF!</p><p>echo.</p><p>pause</p><p>set /a p1health=%p1health% - 400</p><p>set p2nuke=0</p><p>if '%p1health%'=='0' goto p2win</p><p>if '%p1health%'=='-100' goto p2win</p><p>if '%p1health%'=='-200' goto p2win</p><p>if '%p1health%'=='-300' goto p2win</p><p>goto p1gameplay</p><p>:nop2nuke</p><p>echo.</p><p>echo You can't use a nuke since you don't have any more left!</p><p>echo.</p><p>pause</p><p>goto p2gameplay</p><p>:p2airstrike</p><p>cls</p><p>if '%p2airstrike%'=='0' goto nop2airstrike</p><p>echo.</p><p>echo %p2name% has fired an airstrike on %p1country%!</p><p>echo.</p><p>ping localhost -n 4 &gt;nul</p><p>echo Hit!</p><p>echo.</p><p>echo %p1country% has lost 300 DEF!</p><p>echo.</p><p>pause</p><p>set /a p1health=%p1health% - 300</p><p>set /a p2airstrike=%p2airstrike% - 1</p><p>if '%p1health%'=='0' goto p2win</p><p>if '%p1health%'=='-100' goto p2win</p><p>if '%p1health%'=='-200' goto p2win</p><p>if '%p1health%'=='-300' goto p2win</p><p>goto p1gameplay</p><p>:nop2airstrike</p><p>echo.</p><p>echo You can't use an airstrike since you don't have any more left!</p><p>echo.</p><p>pause</p><p>goto p2gameplay</p><p>:p2missiles</p><p>cls</p><p>if '%p2missiles%'=='0' goto nop2missiles</p><p>echo.</p><p>echo %p2name% has fired multiple missiles headed towards %p1country%!</p><p>echo.</p><p>ping localhost -n 4 &gt;nul</p><p>echo Hit!</p><p>echo.</p><p>echo %p1country% has lost 200 DEF!</p><p>echo.</p><p>pause</p><p>set /a p1health=%p1health% - 200</p><p>set /a p2missiles=%p2missiles% - 1</p><p>if '%p1health%'=='0' goto p2win</p><p>if '%p1health%'=='-100' goto p2win</p><p>if '%p1health%'=='-200' goto p2win</p><p>if '%p1health%'=='-300' goto p2win</p><p>goto p1gameplay</p><p>:nop2missiles</p><p>echo.</p><p>echo You can't use missiles since you don't have any more left!</p><p>echo.</p><p>pause</p><p>goto p2gameplay</p><p>:p2surrender</p><p>color 02</p><p>cls</p><p>echo.</p><p>echo %p1name% has won Total War!!!</p><p>echo.</p><p>pause</p><p>:p2surrender2</p><p>cls</p><p>echo.</p><p>echo %p1name% has won Total War!!!</p><p>echo.</p><p>set /p replay=Type anything to replay the game. Type 'x' to exit:</p><p>if '%replay%'=='x' goto suggest</p><p>if '%replay%'=='' goto p2surrender2</p><p>goto players</p><p>color 02</p><p>:p2win</p><p>cls</p><p>echo.</p><p>echo %p2name% has won Total War!!!</p><p>echo.</p><p>pause</p><p>:p2win2</p><p>cls</p><p>echo.</p><p>echo %p2name% has won Total War!!!</p><p>echo.</p><p>set /p replay=Type anything to replay the game. Type 'x' to exit:</p><p>if '%replay%'=='x' goto suggest</p><p>if '%replay%'=='' goto p2win2</p><p>goto players</p><p>:suggest</p><p>cls</p><p>echo.</p><p>echo Before you leave, can you suggest a country I can add to the file?</p><p>echo.</p><p>set /p suggestion=Suggest a country here:</p><p>if '%suggestion%'=='' goto suggest</p><p>echo %suggestion% &gt;&gt; suggestions.txt</p><p>So, this, as mentioned in the script, is a 1.2 version of the game, slightly improved to change colors when you win or lose, and have an extra country added in: The UK. Also, I hope you don't mind, but I noticed your Easter egg, and I added myself into it. Hope you enjoy this updated version!</p>
<p>But i fixed it myself.</p>
<p>It has a problem. When i launch it i see: D:\Users\(User)\Desktop&gt;echo off</p>
you should use color 0a it would like nice
<p>Well, at least it works. However, the script is way too long and everything could be a lot easier. </p><p>A simple example: </p><p>&quot;IF &quot;%country%&quot; == &quot;USA&quot; GOTO :enemy2</p><p>IF &quot;%country%&quot; == &quot;Usa&quot; GOTO :enemy2</p><p>IF &quot;%country%&quot; == &quot;usa&quot; GOTO :enemy2.&quot;</p><p>This can be lots easier with just writing the following:</p><p>&quot;IF /I &quot;%country%&quot; == &quot;USA&quot; GOTO :enemy2&quot;</p>
<p>Awesome!!!</p>
<p>Remarkable !</p><p>Very well done!</p><p>Creativity at its finest :) Keep it up!</p>
Nice game, but on my computer it doens't work how it must work. <br>You writed: if '%name%' == '' goto name <br>On my computer the program just closes.
my cousin said he made this batch file, that means he is a liar <br> <br>
i have some idea of what that will do. how did you manage to work it all out?

About This Instructable

42,884views

23favorites

License:

More by BATCHFILEMASTER:War Based Game in Batch File 
Add instructable to: