Advertisement
Heacien

TotalWar:Nuke_V2.3.5

Aug 29th, 2015
349
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 32.21 KB | None | 0 0
  1. REM *~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*
  2. REM *How to install:
  3. REM * 1.Copy the complete code.
  4. REM * 2.Open up your notes program.
  5. REM * 3.Put the code in.
  6. REM * 4.Save the notes as WorldWar-3.bat
  7. REM *  !It's important to have the .bat at end!
  8. REM * 5.Doubleclick on It and trust the program.
  9. REM * 6.Have Fun :D
  10. REM *   Additional: Send suggestions or bugs to info.heacien@gmail.com :)
  11. REM *     Thx for playing. Have a good Day.
  12. REM *~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*
  13. REM * TotalWar:Nuke. A Textbased Batch Game In Pure Batch
  14. REM * Copyright (C) 2015  Heacien, {Plus others users}
  15. REM *
  16. REM * This program is free software: you can redistribute it and/or modify
  17. REM * it under the terms of the GNU General Public License as published by
  18. REM * the Free Software Foundation, either version 2.1.4 of the License, or
  19. REM * (at your option) any later version.
  20. REM *
  21. REM * This program is distributed in the hope that it will be useful,
  22. REM * but WITHOUT ANY WARRANTY; without even the implied warranty of
  23. REM * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  24. REM * GNU General Public License for more details.
  25. REM *
  26. REM * You should have received a copy of the GNU General Public License
  27. REM * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  28. REM *~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*
  29. :start
  30. @echo off
  31. cls
  32. color 0c
  33. title TOTAL WAR : NUKE
  34. set version=Version 2.3.4
  35. rem echo Welcome to Total War : Nuke, by Heacien.
  36. echo \---------------------------------------------------\
  37. echo  \ %version%     TOTAL WAR : NUKE                \
  38. echo   \---------------------------------------------------\
  39. echo.
  40. echo %version%
  41. echo.
  42. pause
  43. :players
  44. cls
  45. set player=
  46. set replay=
  47. echo \---------------------------------------------------\
  48. echo  \ %version%     TOTAL WAR : NUKE                \
  49. echo   \---------------------------------------------------\
  50. echo.
  51. echo      #---------------------#
  52. echo      #Type '1' Singleplayer# & if '%op%'=='13' echo W - Win / E - End / S - Suggestion
  53. echo      #Type '2' two player  #
  54. echo      #Type '3' changelog   #
  55. echo      #---------------------#
  56. choice /c 123EWS /N /M "Make a selection"
  57. if %errorlevel%==1 goto name
  58. if %errorlevel%==2 goto p1name
  59. if %errorlevel%==3 goto changelog
  60. if %errorlevel%==4 goto end
  61. if %errorlevel%==5 goto win
  62. if %errorlevel%==6 goto suggesta
  63. :name
  64. cls
  65. set name=
  66. echo \---------------------------------------------------\
  67. echo  \ %version%     TOTAL WAR : NUKE                \
  68. echo   \---------------------------------------------------\
  69. echo.
  70. set /p name=Please type in your name (One word):
  71. if '%name%'=='' goto name
  72. rem Easter Egg:
  73. if '%name%'=='Vincent' goto win
  74. if '%name%'=='Heacien' goto win
  75. :country
  76. cls
  77. set country=
  78. set enemy=
  79. echo \---------------------------------------------------\
  80. echo  \ %version%     TOTAL WAR : NUKE                \
  81. echo   \---------------------------------------------------\
  82. echo      ______________________
  83. echo         Welcome %name%!
  84. echo      #--------------------#
  85. echo      #Choose your country #
  86. echo      #USA      Germany    #
  87. echo      #Russia   Canada     #
  88. echo      #France   Turkey     #
  89. echo      #Japan    Switzerland#
  90. echo      #Mexico   NSA        #
  91. echo      #--------------------#
  92. echo.
  93. set /p country=Choose your Country:
  94. if /i '%country%'=='usa' goto USA
  95. if /i '%country%'=='russia' goto Russia
  96. if /i '%country%'=='canada' goto Canada
  97. if /i '%country%'=='germany' goto Germany
  98. if /i '%country%'=='japan' goto Japan
  99. if /i '%country%'=='turkey' goto Turkey
  100. if /i '%country%'=='france' goto France
  101. if /i '%country%'=='switzerland' goto Switzerland
  102. if /i '%country%'=='mexico' goto Mexico
  103. if /i '%country%'=='nsa' goto NSA
  104. goto enemy
  105. rem Enemy
  106. :USA
  107. set country=USA
  108. goto enemy
  109. :Russia
  110. set country=Russia
  111. goto enemy
  112. :Canada
  113. set country=Canada
  114. goto enemy
  115. :Germany
  116. set country=Germany
  117. goto enemy
  118. :Japan
  119. set country=Japan
  120. goto enemy
  121. :Turkey
  122. set country=Turkey
  123. goto enemy
  124. :France
  125. set country=France
  126. goto enemy
  127. :Switzerland
  128. set country=Switzerland
  129. goto enemy
  130. :Mexico
  131. set country=Mexico
  132. goto enemy
  133. :NSA
  134. set country=NSA
  135. goto enemy
  136. REM Enemy
  137. :enemy
  138. set /a cpucountryrand=%random% %%10 +1
  139. if '%cpucountryrand%'=='0' goto enemy
  140. if '%cpucountryrand%'=='1' set enemy=Russia
  141. if '%cpucountryrand%'=='2' set enemy=USA
  142. if '%cpucountryrand%'=='3' set enemy=Canada
  143. if '%cpucountryrand%'=='4' set enemy=Germany
  144. if '%cpucountryrand%'=='5' set enemy=Japan
  145. if '%cpucountryrand%'=='6' set enemy=Turkey
  146. if '%cpucountryrand%'=='7' set enemy=France
  147. if '%cpucountryrand%'=='8' set enemy=Sitzerland
  148. if '%cpucountryrand%'=='9' set enemy=Mexico
  149. if '%cpucountryrand%'=='10' set enemy=NSA
  150. if '%cpucountryrand%'=='11' goto enemy
  151. if '%enemy%'=='%country%' goto enemy
  152. cls
  153. echo \---------------------------------------------------\
  154. echo  \ %version%     TOTAL WAR : NUKE                \
  155. echo   \---------------------------------------------------\
  156. echo.           Your country: -=%country%=-
  157. echo.                    AGAINST
  158. echo            Youre enemy is: -=%enemy%=-
  159. timeout 4 /nobreak >nul
  160. :difficulty
  161. set difficulty=
  162. cls
  163. echo \---------------------------------------------------\
  164. echo  \ %version%     TOTAL WAR : NUKE                \
  165. echo   \---------------------------------------------------\
  166. echo.
  167. echo Select Noobmode(0), Normal(1), Hard(2) or Overkill(x).
  168. set /p difficulty=
  169. if '%difficulty%'=='Noobmode' goto difnoob
  170. if '%difficulty%'=='noobmode' goto difnoob
  171. if '%difficulty%'=='0' goto difnoob
  172. if '%difficulty%'=='Normal' goto difnorm
  173. if '%difficulty%'=='normal' goto difnorm
  174. if '%difficulty%'=='1' goto difnorm
  175. if '%difficulty%'=='Hard' goto difhard
  176. if '%difficulty%'=='hard' goto difhard
  177. if '%difficulty%'=='2' goto difhard
  178. if '%difficulty%'=='Overkill' goto difover
  179. if '%difficulty%'=='overkill' goto difover
  180. if '%difficulty%'=='x' goto difover
  181. goto difficulty
  182. :difnoob
  183. title Loading ...
  184. cls
  185. echo \---------------------------------------------------\
  186. echo  \ %version%     TOTAL WAR : NUKE                \
  187. echo   \---------------------------------------------------\
  188. echo.
  189. echo loading Noobmode ...
  190. timeout 1 /nobreak >nul
  191. tite TOTAL WAR : NUKE
  192. set user=99999
  193. set cpu=20000
  194. set money=99999
  195. set nuke=999
  196. set airstrike=999
  197. set missiles=999
  198. set cpunuke=9999
  199. set cpuairstrike=9999
  200. set cpumissiles=9999
  201. cls
  202. echo \---------------------------------------------------\
  203. echo  \ %version%     TOTAL WAR : NUKE                \
  204. echo   \---------------------------------------------------\
  205. echo.
  206. echo Noobmode loaded
  207. timeout 1 /nobreak >nul
  208. goto gameplay
  209. :difnorm
  210. title Loading ...
  211. cls
  212. echo \---------------------------------------------------\
  213. echo  \ %version%     TOTAL WAR : NUKE                \
  214. echo   \---------------------------------------------------\
  215. echo.
  216. echo loading Normalmode ...
  217. timeout 1 /nobreak >nul
  218. tite TOTAL WAR : NUKE
  219. set user=2000
  220. set cpu=1500
  221. set money=100
  222. set nuke=1
  223. set airstrike=2
  224. set missiles=3
  225. set cpunuke=1
  226. set cpuairstrike=5
  227. set cpumissiles=9999
  228. cls
  229. echo \---------------------------------------------------\
  230. echo  \ %version%     TOTAL WAR : NUKE                \
  231. echo   \---------------------------------------------------\
  232. echo.
  233. echo Normalmode loaded
  234. timeout 1 /nobreak >nul
  235. goto gameplay
  236. :difhard
  237. title Loading ...
  238. cls
  239. echo \---------------------------------------------------\
  240. echo  \ %version%     TOTAL WAR : NUKE                \
  241. echo   \---------------------------------------------------\
  242. echo.
  243. echo loading difficulty Hard ...
  244. timeout 1 /nobreak >nul
  245. tite TOTAL WAR : NUKE
  246. set user=2000
  247. set cpu=2000
  248. set money=100
  249. set nuke=1
  250. set airstrike=2
  251. set missiles=3
  252. set cpunuke=5
  253. set cpuairstrike=999
  254. set cpumissiles=9999
  255. cls
  256. echo \---------------------------------------------------\
  257. echo  \ %version%     TOTAL WAR : NUKE                \
  258. echo   \---------------------------------------------------\
  259. echo.
  260. echo Hard loaded
  261. timeout 1 /nobreak >nul
  262. goto gameplay
  263. :difover
  264. title Loading ...
  265. cls
  266. echo \---------------------------------------------------\
  267. echo  \ %version%     TOTAL WAR : NUKE                \
  268. echo   \---------------------------------------------------\
  269. echo.
  270. echo loading Overkill ...
  271. timeout 1 /nobreak >nul
  272. tite TOTAL WAR : NUKE
  273. set user=20000
  274. set cpu=30000
  275. set money=0
  276. set nuke=1
  277. set airstrike=2
  278. set missiles=999
  279. set cpunuke=9999
  280. set cpuairstrike=9999
  281. set cpumissiles=9999
  282. cls
  283. echo \---------------------------------------------------\
  284. echo  \ %version%     TOTAL WAR : NUKE                \
  285. echo   \---------------------------------------------------\
  286. echo.
  287. echo Overkill loaded
  288. timeout 1 /nobreak >nul
  289. goto gameplay
  290. :begin
  291. set user=1000
  292. set cpu=1000
  293. set money=100
  294. set nuke=1
  295. set airstrike=2
  296. set missiles=3
  297. set cpunuke=1
  298. set cpuairstrike=2
  299. set cpumissiles=3
  300. :gameplay
  301. cls
  302. title TOTAL WAR : NUKE
  303. set move=
  304. set choice=
  305. set cpucount=0
  306. echo \---------------------------------------------------\
  307. echo  \ %version%     TOTAL WAR : NUKE                \
  308. echo   \---------------------------------------------------\
  309. echo %name%, your turn.
  310. echo                                                               %country%: %user% DEF
  311. echo Options:
  312. echo                                                               %enemy%: %cpu% DEF
  313. echo 1. Fire NUKE x %nuke%
  314. echo                                                               Money: %money% $
  315. echo 2. Fire Airstrike x %airstrike%
  316. echo.
  317. echo 3. Fire Missiles x %missiles%
  318. echo.
  319. echo 4. Go to shop
  320. echo ______________________________________________________________________________
  321. echo.
  322. echo 5. Surrender
  323. echo.
  324. echo 6. Do nothing
  325. echo.
  326. echo.
  327. set /p move=Select your option:
  328. if '%move%'=='1' goto nuke
  329. if '%move%'=='2' goto airstrike
  330. if '%move%'=='3' goto missiles
  331. if '%move%'=='4' goto shop
  332. if '%move%'=='5' goto surrender
  333. if '%move%'=='6' goto donothing
  334. if '%move%'=='1234' goto abcdefg
  335. rem if '%move%'=='moneyboss' set /a cheats=1
  336. rem if '%move%'=='moneyboss' set money=99999
  337. rem if '%move%'=='chucknorris' set /a cheats=1
  338. rem if '%move%'=='chucknorris' goto win
  339. goto gameplay
  340. :shop
  341. title Shop
  342. cls
  343. :shopa
  344. set moneyget=1500 * %moneyupg%
  345. set buy=
  346. echo \---------------------------------------------------\
  347. echo  \ %version%     TOTAL WAR : NUKE                \
  348. echo   \---------------------------------------------------\
  349. echo %name%, you can buy anything if you have the money for that.
  350. echo                                                               %country%: %user% DEF
  351. echo Shop:
  352. echo                                                               %enemy%: %cpu% DEF
  353. echo 1. NUKE      (4000$)
  354. echo                                                               Money: %money% $
  355. echo 2. AIRSTRIKE (3250$)
  356. echo.
  357. echo 3. MISSLES   (2500$)
  358. echo.
  359. echo 4. 500 DEF   (5000$)
  360. echo.
  361. echo 5. 1000 DEF  (8000$)
  362. echo.
  363. echo 6. 200% Money  (----$)
  364. echo.
  365. echo 7. Leave Shop
  366. echo.
  367. set /p buy=Select your option:
  368. if '%buy%'=='1' goto buynuke
  369. if '%buy%'=='2' goto buyairstrike
  370. if '%buy%'=='3' goto buymissles
  371. if '%buy%'=='4' goto buydefa
  372. if '%buy%'=='5' goto buydefb
  373. if '%buy%'=='6' goto buymoney
  374. if '%buy%'=='7' goto gameplay
  375. goto shop
  376. rem Shop
  377. :nomoney
  378. cls
  379. echo.
  380. echo You don't have enough money to buy.
  381. echo.
  382. pause
  383. goto shop
  384. :buynuke
  385. cls
  386. set buyhistory=+1 Nuke for 4000$
  387. if '%money%' LSS '4000' goto nomoney
  388. echo %buyhistory% >> buyhistory.txt
  389. set /a money=%money% - 4000
  390. set /a nuke=%nuke% + 1
  391. echo +1 Nuke
  392. goto shopa
  393. :buyairstrike
  394. cls
  395. set buyhistory=+1 Airstrike for 3250$
  396. if '%money%' LSS '3250' goto nomoney
  397. echo %buyhistory% >> buyhistory.txt
  398. set /a money=%money% - 3250
  399. set /a airstrike=%airstrike% + 1
  400. echo +1 Airstrike
  401. goto shopa
  402. :buymissles
  403. cls
  404. set buyhistory=+1 Missles for 2500
  405. if '%money%' LSS '2500' goto nomoney
  406. echo %buyhistory% >> buyhistory.txt
  407. set /a money=%money% - 2500
  408. set /a missiles=%missiles% + 1
  409. echo +1 Missles
  410. goto shopa
  411. :buydefa
  412. cls
  413. set buyhistory=+500 DEF for 5000$
  414. if '%money%' LSS '5000' goto nomoney
  415. echo %buyhistory% >> buyhistory.txt
  416. set /a money=%money% - 5000
  417. set /a user=%user% + 500
  418. echo +500 DEF
  419. goto shopa
  420. :buydefb
  421. cls
  422. set buyhistory=+1000 DEF for 8000$
  423. if '%money%' LSS '8000' goto nomoney
  424. echo %buyhistory% >> buyhistory.txt
  425. set /a money=%money% - 8000
  426. set /a user=%user% + 1000
  427. echo +1000 DEF
  428. goto shopa
  429. :buymoney
  430. cls
  431. set buyhistory=+200% Money for ----$
  432. if '%money%' LSS '99999999999' goto nomoney
  433. echo %buyhistory% >> buyhistory.txt
  434. set /a money=%money% - 9000
  435. set /a moneyupg=%moneyupg% * 2
  436. echo +1000 DEF
  437. goto shopa
  438. :nuke
  439. cls
  440. if '%nuke%'=='0' goto nonuke
  441. echo.
  442. echo %name% has fired a NUKE headed towards the %enemy%!
  443. echo.
  444. timeout 2 /nobreak >nul
  445. echo Hit!
  446. echo.
  447. echo %enemy% has lost 400 DEF!
  448. echo.
  449. pause
  450. set /a money=%money% + 1500
  451. set /a cpu=%cpu% - 400
  452. set /a nuke=%nuke% - 1
  453. if '%cpu%'=='0' goto win
  454. if '%cpu%'=='-100' goto win
  455. if '%cpu%'=='-200' goto win
  456. if '%cpu%'=='-300' goto win
  457. goto cpu1
  458. :nonuke
  459. echo.
  460. echo You can't use a nuke since you don't have any more left!
  461. echo.
  462. pause
  463. goto gameplay
  464. :airstrike
  465. cls
  466. if '%airstrike%'=='0' goto noairstrike
  467. echo.
  468. echo %name% has fired an airstrike on the %enemy%!
  469. echo.
  470. timeout 2 /nobreak >nul
  471. echo Hit!
  472. echo.
  473. echo %enemy% has lost 300 DEF!
  474. echo.
  475. pause
  476. set /a money=%money% + 1500
  477. set /a cpu=%cpu% - 300
  478. set /a airstrike=%airstrike% - 1
  479. if '%cpu%'=='0' goto win
  480. if '%cpu%'=='-100' goto win
  481. if '%cpu%'=='-200' goto win
  482. if '%cpu%'=='-300' goto win
  483. goto cpu1
  484. :noairstrike
  485. echo.
  486. echo You can't use an airstrike since you don't have any more left!
  487. echo.
  488. pause
  489. goto gameplay
  490. :missiles
  491. cls
  492. if '%missiles%'=='0' goto nomissiles
  493. echo.
  494. echo %name% has fired multiple missiles headed towards the %enemy%!
  495. echo.
  496. timeout 2 /nobreak >nul
  497. echo Hit!
  498. echo.
  499. echo %enemy% has lost 200 DEF!
  500. echo.
  501. pause
  502. set /a money=%money% + 1500
  503. set /a cpu=%cpu% - 200
  504. set /a missiles=%missiles% - 1
  505. if '%cpu%'=='0' goto win
  506. if '%cpu%'=='-100' goto win
  507. if '%cpu%'=='-200' goto win
  508. if '%cpu%'=='-300' goto win
  509. goto cpu1
  510. :nomissiles
  511. echo.
  512. echo You can't use missiles since you don't have any more left!
  513. echo.
  514. pause
  515. goto gameplay
  516. :surrender
  517. cls
  518. echo.
  519. echo "We may have lost the war, but we still have our dignity..."
  520. echo.
  521. pause
  522. :end
  523. cls
  524. echo.
  525. echo "We may have lost the war, but we still have our dignity..."
  526. echo.
  527. set /p replay=Type anything to replay the game. Type 'x' to exit:
  528. if '%replay%'=='x' goto suggest
  529. if '%replay%'=='' goto end
  530. goto players
  531. :win
  532. set winscore=1
  533. cls
  534. echo.
  535. echo You have won Total War!!!
  536. echo.
  537. pause
  538. :win2
  539. cls
  540. echo.
  541. echo You have won Total War!!!
  542. echo.
  543. set /p replay=Type anything to replay the game. Type 'x' to exit:
  544. if '%replay%'=='x' goto suggest
  545. if '%replay%'=='' goto win2
  546. goto players
  547. :donothing
  548. set /a money=%money% + 1500
  549. goto cpu1
  550. :cpu1
  551. cls
  552. set /a cpucount=%cpucount% + 1
  553. if '%cpucount%'=='10' goto cpu2
  554. echo \---------------------------------------------------\
  555. echo  \ %version%     TOTAL WAR : NUKE                \
  556. echo   \---------------------------------------------------\
  557. echo My turn.
  558. echo                                                               %country%: %user% DEF
  559. echo Options:
  560. echo                                                               %enemy%: %cpu% DEF
  561. echo 1. Fire NUKE x %cpunuke%
  562. echo.
  563. echo 2. Fire Airstrike x %cpuairstrike%
  564. echo.
  565. echo 3. Fire Missiles x %cpumissiles%
  566. echo.
  567. echo 4. Go to shop
  568. echo ______________________________________________________________________________
  569. echo.
  570. echo 5. Surrender
  571. echo.
  572. echo 6. Do nothing
  573. echo.
  574. echo Select your option:/
  575. timeout 1 /nobreak >nul
  576. timeout 1 /nobreak >nul
  577. timeout 1 /nobreak >nul
  578. timeout 1 /nobreak >nul
  579. cls
  580. echo \---------------------------------------------------\
  581. echo  \ %version%     TOTAL WAR : NUKE                \
  582. echo   \---------------------------------------------------\
  583. echo My turn.
  584. echo                                                               %country%: %user% DEF
  585. echo Options:
  586. echo                                                               %enemy%: %cpu% DEF
  587. echo 1. Fire NUKE x %cpunuke%
  588. echo.
  589. echo 2. Fire Airstrike x %cpuairstrike%
  590. echo.
  591. echo 3. Fire Missiles x %cpumissiles%
  592. echo.
  593. echo 4. Go to shop
  594. echo ______________________________________________________________________________
  595. echo.
  596. echo 5. Surrender
  597. echo.
  598. echo 6. Do nothing
  599. echo.
  600. echo Select your option:-
  601. timeout 1 /nobreak >nul
  602. timeout 1 /nobreak >nul
  603. timeout 1 /nobreak >nul
  604. timeout 1 /nobreak >nul
  605. cls
  606. echo \---------------------------------------------------\
  607. echo  \ %version%     TOTAL WAR : NUKE                \
  608. echo   \---------------------------------------------------\
  609. echo My turn.
  610. echo                                                               %country%: %user% DEF
  611. echo Options:
  612. echo                                                               %enemy%: %cpu% DEF
  613. echo 1. Fire NUKE x %cpunuke%
  614. echo.
  615. echo 2. Fire Airstrike x %cpuairstrike%
  616. echo.
  617. echo 3. Fire Missiles x %cpumissiles%
  618. echo.
  619. echo 4. Go to shop
  620. echo ______________________________________________________________________________
  621. echo.
  622. echo 5. Surrender
  623. echo.
  624. echo 6. Do nothing
  625. echo.
  626. echo Select your option:\
  627. timeout 1 /nobreak >nul
  628. timeout 1 /nobreak >nul
  629. timeout 1 /nobreak >nul
  630. timeout 1 /nobreak >nul
  631. goto cpu1
  632. :cpu2
  633. cls
  634. set /a choice=%random% %%7
  635. if '%choice%'=='0' goto cpu2
  636. if '%choice%'=='4' goto cpu2
  637. if '%choice%'=='5' goto cpu2
  638. if '%choice%'=='6' goto cpu2
  639. echo \---------------------------------------------------\
  640. echo  \ %version%     TOTAL WAR : NUKE                \
  641. echo   \---------------------------------------------------\
  642. echo My turn.
  643. echo                                                               %country%: %user% DEF
  644. echo Options:
  645. echo                                                               %enemy%: %cpu% DEF
  646. echo 1. Fire NUKE x %cpunuke%
  647. echo.
  648. echo 2. Fire Airstrike x %cpuairstrike%
  649. echo.
  650. echo 3. Fire Missiles x %cpumissiles%
  651. echo.
  652. echo 4. Go to shop
  653. echo ______________________________________________________________________________
  654. echo.
  655. echo 5. Surrender
  656. echo.
  657. echo 6. Do nothing
  658. echo.
  659. echo Select your option:%choice%
  660. timeout 2 /nobreak >nul
  661. if '%choice%'=='1' goto cpunuke
  662. if '%choice%'=='2' goto cpuairstrike
  663. if '%choice%'=='3' goto cpumissiles
  664. if '%choice%'=='6' goto gameplay
  665. :cpunuke
  666. cls
  667. if '%cpunuke%'=='0' goto nocpunuke
  668. echo.
  669. echo I have fired a NUKE headed towards the %country%!
  670. echo.
  671. timeout 2 /nobreak >nul
  672. echo Hit!
  673. echo.
  674. echo %country% has lost 400 DEF!
  675. echo.
  676. timeout 2 /nobreak >nul
  677. set /a user=%user% - 400
  678. set cpunuke=0
  679. if '%user%'=='0' goto cpuwin
  680. if '%user%'=='-100' goto cpuwin
  681. if '%user%'=='-200' goto cpuwin
  682. if '%user%'=='-300' goto cpuwin
  683. goto gameplay
  684. :nocpunuke
  685. echo.
  686. echo I can't use a nuke since I don't have any more left!
  687. echo.
  688. timeout 2 /nobreak >nul
  689. set cpucount=0
  690. goto cpu1
  691. :cpuairstrike
  692. cls
  693. if '%cpuairstrike%'=='0' goto nocpuairstrike
  694. echo.
  695. echo I have fired an airstrike on the %country%!
  696. echo.
  697. timeout 2 /nobreak >nul
  698. echo Hit!
  699. echo.
  700. echo %country% has lost 300 DEF!
  701. echo.
  702. timeout 2 /nobreak >nul
  703. set /a user=%user% - 300
  704. set /a cpuairstrike=%cpuairstrike% - 1
  705. if '%user%'=='0' goto cpuwin
  706. if '%user%'=='-100' goto cpuwin
  707. if '%user%'=='-200' goto cpuwin
  708. if '%user%'=='-300' goto cpuwin
  709. goto gameplay
  710. :nocpuairstrike
  711. echo.
  712. echo I can't use an airstrike since I don't have any more left!
  713. echo.
  714. timeout 2 /nobreak >nul
  715. set cpucount=0
  716. goto cpu1
  717. :cpumissiles
  718. cls
  719. if '%cpumissiles%'=='0' goto nocpumissiles
  720. echo.
  721. echo I have fired multiple missiles headed towards the %country%!
  722. echo.
  723. timeout 2 /nobreak >nul
  724. echo Hit!
  725. echo.
  726. echo %country% has lost 200 DEF!
  727. echo.
  728. timeout 2 /nobreak >nul
  729. set /a user=%user% - 200
  730. set /a cpumissiles=%cpumissiles% - 1
  731. if '%user%'=='0' goto cpuwin
  732. if '%user%'=='-100' goto cpuwin
  733. if '%user%'=='-200' goto cpuwin
  734. if '%user%'=='-300' goto cpuwin
  735. goto gameplay
  736. :nocpumissiles
  737. echo.
  738. echo I can't use missiles since I don't have any more left!
  739. echo.
  740. timeout 2 /nobreak >nul
  741. set cpucount=0
  742. goto cpu1
  743. :cpuwin
  744. cls
  745. echo.
  746. echo It was a long battle today. I have emerged victorious, even though you tried
  747. echo very well.
  748. echo.
  749. pause
  750. :cpuwin2
  751. cls
  752. echo.
  753. echo It was a long battle today. I have emerged victorious, even though you tried
  754. echo very well.
  755. echo.
  756. set /p replay=Type anything to replay the game. Type 'x' to exit:
  757. if '%replay%'=='x' goto suggest
  758. if '%replay%'=='' goto cpuwin2
  759. goto players
  760. :p1name
  761. cls
  762. set p1name=
  763. echo.
  764. set /p p1name=Player 1, please type in your name (One word):
  765. if '%p1name%'=='' goto p1name
  766. :p2name
  767. cls
  768. set p2name=
  769. echo.
  770. set /p p2name=Player 2, please type in your name (One word):
  771. if '%p2name%'=='%p1name%' goto p2name
  772. if '%p2name%'=='' goto p2name
  773. rem Easter Egg:
  774. if '%p1name%'=='Vincent' goto p1win
  775. if '%p2name%'=='Vincent' goto p2win
  776. if '%p1name%'=='Heacien' goto p1win
  777. if '%p2name%'=='Heacien' goto p2win
  778. :p1country
  779. cls
  780. set p1country=
  781. echo.
  782. echo Welcome %p1name%!
  783. echo.
  784. set /p p1country=Choose your country; USA, Russia, or Canada:
  785. if '%p1country%'=='usa' goto p1country1
  786. if '%p1country%'=='USA' goto p1country1
  787. if '%p1country%'=='Usa' goto p1country1
  788. if '%p1country%'=='Russia' goto p1country2
  789. if '%p1country%'=='russia' goto p1country2
  790. if '%p1country%'=='canada' goto p1country3
  791. if '%p1country%'=='Canada' goto p1country3
  792. goto p1country
  793. :p1country1
  794. set p1country=USA
  795. goto p2country
  796. :p1country2
  797. set p1country=Russia
  798. goto p2country
  799. :p1country3
  800. set p1country=Canada
  801. :p2country
  802. cls
  803. set p2country=
  804. echo.
  805. echo Welcome %p2name%!
  806. echo.
  807. set /p p2country=Choose your country; USA, Russia, or Canada:
  808. if '%p2country%'=='%p1country%' goto na
  809. if '%p2country%'=='usa' goto p2country1
  810. if '%p2country%'=='USA' goto p2country1
  811. if '%p2country%'=='Usa' goto p2country1
  812. if '%p2country%'=='Russia' goto p2country2
  813. if '%p2country%'=='russia' goto p2country2
  814. if '%p2country%'=='canada' goto p2country3
  815. if '%p2country%'=='Canada' goto p2country3
  816. goto p2country
  817. :na
  818. cls
  819. echo.
  820. echo You can't choose %p1country% because %p1name% has already chosen it.
  821. pause >nul
  822. goto p2country
  823. :p2country1
  824. set p2country=USA
  825. goto begin2
  826. :p2country2
  827. set p2country=Russia
  828. goto begin2
  829. :p2country3
  830. set p2country=Canada
  831. :begin2
  832. set p1health=1000
  833. set p2health=1000
  834. set p1nuke=1
  835. set p1airstrike=2
  836. set p1missiles=3
  837. set p2nuke=1
  838. set p2airstrike=2
  839. set p2missiles=3
  840. :p1gameplay
  841. cls
  842. set move=
  843. set choice=
  844. echo \---------------------------------------------------\
  845. echo  \ %version%     TOTAL WAR : NUKE                \
  846. echo   \---------------------------------------------------\
  847. echo %p1name%, your turn.
  848. echo                                                               %p1country%: %p1health% DEF
  849. echo Options:
  850. echo                                                               %p2country%: %p2health% DEF
  851. echo 1. Fire NUKE x %p1nuke%
  852. echo.
  853. echo 2. Fire Airstrike x %p1airstrike%
  854. echo.
  855. echo 3. Fire Missiles x %p1missiles%
  856. echo.
  857. echo 4. Surrender
  858. echo.
  859. echo 5. Do nothing
  860. echo.
  861. set /p move=Select your option:
  862. if '%move%'=='1' goto p1nuke
  863. if '%move%'=='2' goto p1airstrike
  864. if '%move%'=='3' goto p1missiles
  865. if '%move%'=='4' goto p1surrender
  866. if '%move%'=='5' goto p2gameplay
  867. goto p1gameplay
  868. :p1nuke
  869. cls
  870. if '%p1nuke%'=='0' goto nop1nuke
  871. echo.
  872. echo %p1name% has fired a NUKE headed towards %p2country%!
  873. echo.
  874. timeout 2 /nobreak >nul
  875. echo Hit!
  876. echo.
  877. echo %p2country% has lost 400 DEF!
  878. echo.
  879. pause
  880. set /a p2health=%p2health% - 400
  881. set p1nuke=0
  882. if '%p2health%'=='0' goto p1win
  883. if '%p2health%'=='-100' goto p1win
  884. if '%p2health%'=='-200' goto p1win
  885. if '%p2health%'=='-300' goto p1win
  886. goto p2gameplay
  887. :nop1nuke
  888. echo.
  889. echo You can't use a nuke since you don't have any more left!
  890. echo.
  891. pause
  892. goto p1gameplay
  893. :p1airstrike
  894. cls
  895. if '%p1airstrike%'=='0' goto nop1airstrike
  896. echo.
  897. echo %p1name% has fired an airstrike on %p2country%!
  898. echo.
  899. timeout 2 /nobreak >nul
  900. echo Hit!
  901. echo.
  902. echo %p2country% has lost 300 DEF!
  903. echo.
  904. pause
  905. set /a p2health=%p2health% - 300
  906. set /a p1airstrike=%p1airstrike% - 1
  907. if '%p2health%'=='0' goto p1win
  908. if '%p2health%'=='-100' goto p1win
  909. if '%p2health%'=='-200' goto p1win
  910. if '%p2health%'=='-300' goto p1win
  911. goto p2gameplay
  912. :nop1airstrike
  913. echo.
  914. echo You can't use an airstrike since you don't have any more left!
  915. echo.
  916. pause
  917. goto p1gameplay
  918. :p1missiles
  919. cls
  920. if '%p1missiles%'=='0' goto nop1missiles
  921. echo.
  922. echo %p1name% has fired multiple missiles headed towards %p2country%!
  923. echo.
  924. timeout 2 /nobreak >nul
  925. echo Hit!
  926. echo.
  927. echo %p2country% has lost 200 DEF!
  928. echo.
  929. pause
  930. set /a p2health=%p2health% - 200
  931. set /a p1missiles=%p1missiles% - 1
  932. if '%p2health%'=='0' goto p1win
  933. if '%p2health%'=='-100' goto p1win
  934. if '%p2health%'=='-200' goto p1win
  935. if '%p2health%'=='-300' goto p1win
  936. goto p2gameplay
  937. :nop1missiles
  938. echo.
  939. echo You can't use missiles since you don't have any more left!
  940. echo.
  941. pause
  942. goto p1gameplay
  943. :p1surrender
  944. cls
  945. echo.
  946. echo %p2name% has won Total War!!!
  947. echo.
  948. pause
  949. :p1surrender2
  950. cls
  951. echo.
  952. echo %p2name% has won Total War!!!
  953. echo.
  954. set /p replay=Type anything to replay the game. Type 'x' to exit:
  955. if '%replay%'=='x' goto suggest
  956. if '%replay%'=='' goto p1surrender2
  957. goto players
  958. :p1win
  959. cls
  960. echo.
  961. echo %p1name% has won Total War!!!
  962. echo.
  963. pause
  964. :p1win2
  965. cls
  966. echo.
  967. echo %p1name% has won Total War!!!
  968. echo.
  969. set /p replay=Type anything to replay the game. Type 'x' to exit:
  970. if '%replay%'=='x' goto suggest
  971. if '%replay%'=='' goto p1win2
  972. goto players
  973. :p2gameplay
  974. cls
  975. set move=
  976. set choice=
  977. echo                                                               %version%
  978. echo %p2name%, your turn.
  979. echo                                                               %p2country%: %p2health% DEF
  980. echo Options:
  981. echo                                                               %p1country%: %p1health% DEF
  982. echo 1. Fire NUKE x %p2nuke%
  983. echo.
  984. echo 2. Fire Airstrike x %p2airstrike%
  985. echo.
  986. echo 3. Fire Missiles x %p2missiles%
  987. echo.
  988. echo 4. Surrender
  989. echo.
  990. echo 5. Do nothing
  991. echo.
  992. set /p move=Select your option:
  993. if '%move%'=='1' goto p2nuke
  994. if '%move%'=='2' goto p2airstrike
  995. if '%move%'=='3' goto p2missiles
  996. if '%move%'=='4' goto p2surrender
  997. if '%move%'=='5' goto p1gameplay
  998. goto p2gameplay
  999. :p2nuke
  1000. cls
  1001. if '%p2nuke%'=='0' goto nop2nuke
  1002. echo.
  1003. echo %p2name% has fired a NUKE headed towards %p1country%!
  1004. echo.
  1005. timeout 2 /nobreak >nul
  1006. echo Hit!
  1007. echo.
  1008. echo %p1country% has lost 400 DEF!
  1009. echo.
  1010. pause
  1011. set /a p1health=%p1health% - 400
  1012. set p2nuke=0
  1013. if '%p1health%'=='0' goto p2win
  1014. if '%p1health%'=='-100' goto p2win
  1015. if '%p1health%'=='-200' goto p2win
  1016. if '%p1health%'=='-300' goto p2win
  1017. goto p1gameplay
  1018. :nop2nuke
  1019. echo.
  1020. echo You can't use a nuke since you don't have any more left!
  1021. echo.
  1022. pause
  1023. goto p2gameplay
  1024. :p2airstrike
  1025. cls
  1026. if '%p2airstrike%'=='0' goto nop2airstrike
  1027. echo.
  1028. echo %p2name% has fired an airstrike on %p1country%!
  1029. echo.
  1030. timeout 2 /nobreak >nul
  1031. echo Hit!
  1032. echo.
  1033. echo %p1country% has lost 300 DEF!
  1034. echo.
  1035. pause
  1036. set /a p1health=%p1health% - 300
  1037. set /a p2airstrike=%p2airstrike% - 1
  1038. if '%p1health%'=='0' goto p2win
  1039. if '%p1health%'=='-100' goto p2win
  1040. if '%p1health%'=='-200' goto p2win
  1041. if '%p1health%'=='-300' goto p2win
  1042. goto p1gameplay
  1043. :nop2airstrike
  1044. echo.
  1045. echo You can't use an airstrike since you don't have any more left!
  1046. echo.
  1047. pause
  1048. goto p2gameplay
  1049. :p2missiles
  1050. cls
  1051. if '%p2missiles%'=='0' goto nop2missiles
  1052. echo.
  1053. echo %p2name% has fired multiple missiles headed towards %p1country%!
  1054. echo.
  1055. timeout 2 /nobreak >nul
  1056. echo Hit!
  1057. echo.
  1058. echo %p1country% has lost 200 DEF!
  1059. echo.
  1060. pause
  1061. set /a p1health=%p1health% - 200
  1062. set /a p2missiles=%p2missiles% - 1
  1063. if '%p1health%'=='0' goto p2win
  1064. if '%p1health%'=='-100' goto p2win
  1065. if '%p1health%'=='-200' goto p2win
  1066. if '%p1health%'=='-300' goto p2win
  1067. goto p1gameplay
  1068. :nop2missiles
  1069. echo.
  1070. echo You can't use missiles since you don't have any more left!
  1071. echo.
  1072. pause
  1073. goto p2gameplay
  1074. :p2surrender
  1075. cls
  1076. echo.
  1077. echo %p1name% has won Total War!!!
  1078. echo.
  1079. pause
  1080. :p2surrender2
  1081. cls
  1082. echo.
  1083. echo %p1name% has won Total War!!!
  1084. echo.
  1085. set /p replay=Type anything to replay the game. Type 'x' to exit:
  1086. if '%replay%'=='x' goto suggest
  1087. if '%replay%'=='' goto p2surrender2
  1088. goto players
  1089. :p2win
  1090. cls
  1091. echo.
  1092. echo %p2name% has won Total War!!!
  1093. echo.
  1094. pause
  1095. :p2win2
  1096. cls
  1097. echo.
  1098. echo %p2name% has won Total War!!!
  1099. echo.
  1100. set /p replay=Type anything to replay the game. Type 'x' to exit:
  1101. if '%replay%'=='x' goto suggest
  1102. if '%replay%'=='' goto p2win2
  1103. goto players
  1104. :changelog
  1105. color f9
  1106. :site_1
  1107. cls
  1108. echo Changelog:
  1109. echo  V 2.3.5
  1110. echo   -Bugs Fixed
  1111. echo   -Chrash fixed
  1112. echo   -Navigation Update
  1113. echo.
  1114. echo  V 2.3.4
  1115. echo   -Bug Client
  1116. echo   -Bug at Country-Selection
  1117. echo.
  1118. echo  V 2.3.3
  1119. echo   -Bugfix
  1120. echo   -Switzerland added
  1121. echo.
  1122. echo  V 2.3.2 # Bigger Update!
  1123. echo   -Japan, France and Turkey added
  1124. echo   -Gameplay fix
  1125. echo   -Overlay edited
  1126. echo   -Money patch 2.0
  1127. echo   -Bugfix
  1128. echo.
  1129. echo (Page 1/2)
  1130. choice /c NE /N /M "N - Next Page / E - Exit"
  1131. if %errorlevel%==1 goto :site_2
  1132. if %errorlevel%==2 goto :start
  1133. :site_2
  1134. cls
  1135. echo Changelog:
  1136. echo  V 2.3.1 # Money Update
  1137. echo   -Big money patch 1.0
  1138. echo   -Big difficulty patch
  1139. echo   -Scoresystem added
  1140. echo.
  1141. echo  V 2.2.1 # Suggestion update
  1142. echo   -Suggestionsystem-Upgrade
  1143. echo   -Scoresystem in work
  1144. echo.
  1145. echo  V 2.2.0 # Overlay update
  1146. echo   -Big overlay change
  1147. echo   -New Easter Egg
  1148. echo.
  1149. echo  V 2.1.6
  1150. echo   -Error-Freeze fixed
  1151. echo   -Some design changes
  1152. echo.
  1153. echo  V 2.1.5
  1154. echo   -Changelog complet fixed
  1155. echo   -Some design changes
  1156. echo.
  1157. echo (Page 2/3)
  1158. choice /c NME /N /M "N - Next Page / M - Previous Page / E - Exit"
  1159. if %errorlevel%==1 goto :site_3
  1160. if %errorlevel%==2 goto :site_1
  1161. if %errorlevel%==3 goto :start
  1162. :site_3
  1163. cls
  1164. echo Changelog:
  1165. echo  V 2.1.4
  1166. echo   -Changelog bugfix
  1167. echo.
  1168. echo  V 2.1.3
  1169. echo   -Changelog added
  1170. echo.
  1171. echo  V 2.1.2
  1172. echo   -Overkill chrash fixed
  1173. echo.
  1174. echo  V 2.0.0 - V 2.1.1
  1175. echo   -Shopsystem was added
  1176. echo.
  1177. echo  V 1.0
  1178. echo   -isn't my work - pls check out Vincent Allain alias BATCHFILEMASTER
  1179. echo.
  1180. echo (Page 3/3)
  1181. choice /c EM /N /M "M - Previous Page / E - Exit"
  1182. if %errorlevel%==1 goto :start
  1183. if %errorlevel%==2 goto :site_2
  1184. :abcdefg
  1185. color f9
  1186. cls
  1187. set /p Console=
  1188. if '%Console%'=='win' goto win
  1189. if '%Console%'=='changelog' goto changelog
  1190. if '%Console%'=='' goto abcdefg
  1191. :suggest
  1192. cls
  1193. del buyhistory.txt
  1194. color f9
  1195. rem :cheatsused
  1196. rem if '%cheats%'==1 (echo DESTRICTED for cheater) else (echo.)
  1197. rem if '%cheats%'==1 (goto cheatsused) else (echo.)
  1198. :score
  1199. cls
  1200. echo.
  1201. if '%difficulty%'=='noobmode' set difficulty=Noobmode
  1202. if '%difficulty%'=='0' set difficulty=Noobmode
  1203. if '%difficulty%'=='normal' set difficulty=Normal
  1204. if '%difficulty%'=='1' set difficulty=Normal
  1205. if '%difficulty%'=='hard' set difficulty=Hard
  1206. if '%difficulty%'=='2' set difficulty=Hard
  1207. if '%difficulty%'=='overkill' set difficulty=Overkill
  1208. if '%difficulty%'=='x' set difficulty=Overkill
  1209. if '%winscore%'=='1' (set winscore=won) else (set winscore=lost)
  1210. echo %date:~0% - %time:~0,8% - Player %name% has %winscore% as %country% against %enemy% in %difficulty%.
  1211. echo Look in youre score.txt for the score you have/had.
  1212. echo %date:~0% - %time:~0,8% - Player %name% has %winscore% as %country% against %enemy% in %difficulty%.>> score.txt
  1213. :suggesta
  1214. echo.
  1215. echo %version%
  1216. echo special thanks to Vincent Allain for writing the base of the game.
  1217. echo ___________________________________________________________________
  1218. echo.
  1219. echo Any suggestions bevor you leave? ('x' to leave)
  1220. echo (Please take a look in the suggestion.txt file)
  1221. echo (You can write 'cl' to get to the changelog)
  1222. echo (Write 'score' to save youre score) - In work
  1223. echo ___________________________________________________________________
  1224. echo.
  1225. set /p suggestion=
  1226. if '%suggestion%'=='score' goto score
  1227. if '%suggestion%'=='cl' goto changelog
  1228. if '%suggestion%'=='changelog' goto changelog
  1229. if '%suggestion%'=='' goto suggest
  1230. echo Pls send the suggestion.txt to info.heacien@gmail.com with 'Suggestions' in the title line. > suggestions.txt
  1231. echo If you have any suggestions ;) (Version: %version%) >> suggestions.txt
  1232. echo #-----------------------------------------------------------------------------------------------------------# >> suggestions.txt
  1233. echo # >> suggestions.txt
  1234. echo # >> suggestions.txt
  1235. echo # >> suggestions.txt
  1236. echo #-----------------------------------------------------------------------------------------------------------# >> suggestions.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement