Advertisement
CheikoAsami

Simple War Simulator WIP Updated 11/11/22 3:38 PM v0.3 Release

Nov 8th, 2022 (edited)
799
0
Never
3
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 83.75 KB | Gaming | 0 0
  1. @echo off
  2. color 0e
  3. title Simple War Simulator
  4. mode con: cols=106 lines=31
  5. rem Todo Complete Diplomacy sections Agreements
  6. rem Reformulate how names are distrubuted for Bounty Hunting Ships.
  7.  
  8. :start
  9. set msg=
  10. set saveEntered=0
  11. cls
  12. echo :-------------------------------------------:
  13. echo        Simple War Simulator
  14. echo :-------------------------------------------:
  15. echo 1) Start New
  16. echo 2) Load Game
  17. echo 0) Exit
  18. echo :-------------------------------------------:
  19. echo Version v0.3
  20. choice /c 120 /n >nul
  21. if %errorlevel% == 1 (
  22.     call :player
  23.     call :playerHunters
  24.     call :gameVars
  25.     goto startUP
  26.  )
  27. if %errorlevel% == 2 (
  28.     goto loadGame
  29. )
  30. if %errorlevel% == 3 (
  31.     exit
  32.  )
  33. goto start
  34.  
  35. :loadGame
  36. cls
  37. echo :-------------------:
  38. echo       Load Game
  39. echo :-------------------:
  40. echo    1) Load Save
  41. echo    2) Input Save Name %err%
  42. echo    0) Cancel
  43. echo :-------------------:
  44. echo Info: %msg%
  45. choice /c 120 /n >nul
  46. if %errorlevel% == 1 (
  47.     if %saveEntered% EQU 0 (
  48.         set msg=Input Save Name First!
  49.         goto loadGame
  50.     )
  51.     call :gameVars
  52.     call :player
  53.     call :load
  54.     call :getShipStats1
  55.     call :getShipStats2
  56.     call :getShipStats3
  57.     call :getShipStats4
  58.     call :getShipStats5
  59.     goto loadGame
  60. )
  61. if %errorlevel% == 2 (
  62.     set /p callSave=Enter Desired Save to Load.
  63.     set saveEntered=1
  64.     if exist %callSave%.bat (
  65.         set err=Matches
  66.     ) else (set err=Not Recognized.)
  67. )
  68. if %errorlevel% == 3 (
  69.     goto start
  70. )
  71. goto loadGame
  72.  
  73. :load
  74. if exist %callSave%.bat (
  75.     call %callSave%.bat
  76.     set msg=%callSave% Found Loaded Data.
  77. )
  78. goto home
  79. goto:eof
  80.  
  81. :saveGame
  82. cls
  83. echo :-------------------:
  84. echo       Save Game
  85. echo :-------------------:
  86. echo    1) Save
  87. echo    2) Name Save
  88. echo    0) Cancel
  89. echo :-------------------:
  90. echo Info: %msg%
  91. choice /c 120 /n >nul
  92. if %errorlevel% == 1 (
  93.     call :save
  94. )
  95. if %errorlevel% == 2 (
  96.     set /p saveName=Enter Save Name:
  97.     goto saveGame
  98. )
  99. if %errorlevel% == 3 (
  100.     goto options
  101. )
  102. goto saveGame
  103.  
  104. :save
  105. (
  106.     echo set playername=%playername%
  107.     echo set playerChoice=%playerChoice%
  108.     echo set playerResult=%playerResult%
  109.     echo set playerTarget=%playerTarget%
  110.     echo set playerVoice=%playerVoice%
  111.     echo set attackTarget=%attackTarget%
  112.     echo set credits=%credits%
  113.     echo set creditsBank=%creditsBank%
  114.     echo set coffers=%coffers%
  115.     echo set tax=%tax%
  116.     echo set banking=%banking%
  117.     echo set Ramount=%Ramount%
  118.     echo set amount=%amount%
  119.     echo set stationRank=%stationRank%
  120.     echo set stationTopic=%stationTopic%
  121.     echo set giftTo=%giftTo%
  122.     echo set sectors=%sectors%
  123.     echo set sectorsSet=%sectorsSet%
  124.     echo set tactics=%tactics%
  125.     echo set CP=%CP%
  126.     echo set PF=%PF%
  127.     echo set shipF=%shipF%
  128.     echo set shipC=%shipC%
  129.     echo set shipB=%shipB%
  130.     echo set hunterSelect=%hunterSelect%
  131.     echo set currentHuntee=%currentHuntee%
  132.     echo set playerHunter=%playerHunter%
  133.     echo set hunter1=%hunter1%
  134.     echo set hunter2=%hunter2%
  135.     echo set hunter3=%hunter3%
  136.     echo set hunterHull=%hunterHull%
  137.     echo set hunter1Hull=%hunter1Hull%
  138.     echo set hunter2Hull=%hunter2Hull%
  139.     echo set hunter3Hull=%hunter3Hull%
  140.     echo set hunterHullMax=%hunterHullMax%
  141.     echo set hunter1HullMax=%hunter1HullMax%
  142.     echo set hunter2HullMax=%hunter2HullMax%
  143.     echo set hunter3HullMax=%hunter3HullMax%
  144.     echo set hullUpgrade1=%hullUpgrade1%
  145.     echo set hullUpgrade2=%hullUpgrade2%
  146.     echo set hullUpgrade3=%hullUpgrade3%
  147.     echo set hullUpgrade4=%hullUpgrade4%
  148.     echo set multiplier=%multiplier%
  149.     echo set bountyMultiplier=%bountyMultiplier%
  150.     echo set bountyAvail=%bountyAvail%
  151.     echo set bountyCaught=%bountyCaught%
  152.     echo set RshipF=%RshipF%
  153.     echo set RshipC=%RshipC%
  154.     echo set RshipB=%RshipB%
  155.     echo set station1=%station1%
  156.     echo set station2=%station2%
  157.     echo set station3=%station3%
  158.     echo set station4=%station4%
  159.     echo set station5=%station5%
  160.     echo set station1Tact=%station1Tact%
  161.     echo set station2Tact=%station2Tact%
  162.     echo set station3Tact=%station3Tact%
  163.     echo set station4Tact=%station4Tact%
  164.     echo set station5Tact=%station5Tact%
  165.     echo set rep1=%rep1%
  166.     echo set rep2=%rep2%
  167.     echo set rep3=%rep3%
  168.     echo set rep4=%rep4%
  169.     echo set rep5=%rep5%
  170.     echo set stance1=%stance1%
  171.     echo set stance2=%stance2%
  172.     echo set stance3=%stance3%
  173.     echo set stance4=%stance4%
  174.     echo set stance5=%stance5%
  175.     echo set sectors1=%sectors1%
  176.     echo set sectors2=%sectors2%
  177.     echo set sectors3=%sectors3%
  178.     echo set sectors4=%sectors4%
  179.     echo set sectors5=%sectors5%
  180.     echo set shipF1=%shipF1%
  181.     echo set shipF2=%shipF2%
  182.     echo set shipF3=%shipF3%
  183.     echo set shipF4=%shipF4%
  184.     echo set shipF5=%shipF5%
  185.     echo set shipC1=%shipC1%
  186.     echo set shipC2=%shipC2%
  187.     echo set shipC3=%shipC3%
  188.     echo set shipC4=%shipC4%
  189.     echo set shipC5=%shipC5%
  190.     echo set shipB1=%shipB1%
  191.     echo set shipB2=%shipB2%
  192.     echo set shipB3=%shipB3%
  193.     echo set shipB4=%shipB4%
  194.     echo set shipB5=%shipB5%
  195.     ) > %saveName%.bat
  196.     set msg=Saved to %saveName%.bat!
  197. goto saveGame
  198.  
  199. :randomName
  200. if %runName% EQU 1 (
  201.     set name=Hermit
  202. )
  203. if %runName% EQU 2 (
  204.     set name=Aries
  205. )
  206. if %runName% EQU 3 (
  207.     set name=Jupiter
  208. )
  209. if %runName% EQU 4 (
  210.     set name=Mars
  211. )
  212. if %runName% EQU 5 (
  213.     set name=Luna
  214. )
  215. if %runName% EQU 6 (
  216.     set name=Eve
  217. )
  218. if %runName% EQU 7 (
  219.     set name=Pluto
  220. )
  221. if %runName% EQU 8 (
  222.     set name=Uranus
  223. )
  224. if %runName% EQU 9 (
  225.     set name=Earth
  226. )
  227. if %runName% EQU 10 (
  228.     set name=Unity
  229. )
  230. if %runName% EQU 11 (
  231.     set name=Voyager
  232. )
  233. if %runName% EQU 12 (
  234.     set name=Atlas
  235. )
  236. if %runName% EQU 13 (
  237.     set name=Cutler
  238. )
  239. if %runName% EQU 14 (
  240.     set name=Vermit
  241. )
  242. if %runName% EQU 15 (
  243.     set name=Mercury
  244. )
  245. if %runName% EQU 16 (
  246.     set name=Venus
  247. )
  248. if %runName% EQU 17 (
  249.     set name=Io
  250. )
  251. if %runName% EQU 18 (
  252.     set name=Titan
  253. )
  254. if %runName% EQU 19 (
  255.     set name=Europa
  256. )
  257. if %runName% EQU 20 (
  258.     set name=Sheperd
  259. )
  260. goto:eof
  261.  
  262. :randomName2
  263. if %runName2% EQU 1 (
  264.     set name2=Prime
  265. )
  266. if %runName2% EQU 2 (
  267.     set name2=Alpha
  268. )
  269. if %runName2% EQU 3 (
  270.     set name2=Omega
  271. )
  272. if %runName2% EQU 4 (
  273.     set name2=Centari
  274. )
  275. if %runName2% EQU 5 (
  276.     set name2=Uber
  277. )
  278. goto:eof
  279.  
  280. :gameVars
  281. set /a RshipF=%random%%%600+1
  282. set /a RshipC=%random%%%100+1
  283. set /a RshipB=%random%%%50+1
  284.  
  285. set /a shipFR=%random%%%75+1
  286. set /a shipCR=%random%%%100+1
  287. set /a shipBR=%random%%%145+1
  288.  
  289. rem /////////   OTHER STATION VARS   ///////
  290.  
  291. set /a stance1=%random%%%2+1
  292. set /a stance2=%random%%%2+1
  293. set /a stance3=%random%%%2+1
  294. set /a stance4=%random%%%2+1
  295. set /a stance5=%random%%%2+1
  296.  
  297. set /a rep1=%random%%%100+1
  298. set /a rep2=%random%%%100+1
  299. set /a rep3=%random%%%100+1
  300. set /a rep4=%random%%%100+1
  301. set /a rep5=%random%%%100+1
  302.  
  303. set /a sectors1=%random%%%12+1
  304. set /a sectors2=%random%%%12+1
  305. set /a sectors3=%random%%%12+1
  306. set /a sectors4=%random%%%12+1
  307. set /a sectors5=%random%%%12+1
  308.  
  309. set /a shipF1=%random%%%1800+1
  310. set /a shipF2=%random%%%1800+1
  311. set /a shipF3=%random%%%1800+1
  312. set /a shipF4=%random%%%1800+1
  313. set /a shipF5=%random%%%1800+1
  314.  
  315. set /a shipC1=%random%%%550+1
  316. set /a shipC2=%random%%%550+1
  317. set /a shipC3=%random%%%550+1
  318. set /a shipC4=%random%%%550+1
  319. set /a shipC5=%random%%%550+1
  320.  
  321. set /a shipB1=%random%%%155+1
  322. set /a shipB2=%random%%%155+1
  323. set /a shipB3=%random%%%155+1
  324. set /a shipB4=%random%%%155+1
  325. set /a shipB5=%random%%%155+1
  326.  
  327. set /a station1Tact=%random%%%5+1
  328. set /a station2Tact=%random%%%5+1
  329. set /a station3Tact=%random%%%5+1
  330. set /a station4Tact=%random%%%5+1
  331. set /a station5Tact=%random%%%5+1
  332.  
  333. set station1=
  334. set station2=
  335. set station3=
  336. set station4=
  337. set station5=
  338.  
  339. set attackTarget1=0
  340. set attackTarget2=0
  341. set attackTarget3=0
  342. set attackTarget4=0
  343. set attackTarget5=0
  344.  
  345. set attacker=0
  346. set defending=0
  347. set stance=0
  348.  
  349. call :getShipStats1
  350. call :getShipStats2
  351. call :getShipStats3
  352. call :getShipStats4
  353. call :getShipStats5
  354.  
  355. set /a year=%random%%%3000+1
  356. set /a turnBount=%random%%%8+1
  357. goto:eof
  358.  
  359. :player
  360. set playername=Error
  361. set playerChoice=2
  362. set playerResult=0
  363. set playerTarget=0
  364. set playerVoice=Defend
  365. set credits=0
  366. set creditsBank=0
  367. set coffers=0
  368. set tax=1
  369. set banking=1
  370. set Ramount=0
  371. set amount=0
  372. set stationRank=1
  373. set stationTopic=1
  374. set attackTarget=1
  375. set giftTo=1
  376. set sectors=0
  377. set sectorsSet=0
  378. set tactics=1
  379. set CP=0
  380. set PF=0
  381. set shipF=0
  382. set shipC=0
  383. set shipB=0
  384. set hunterSelect=1
  385. set currentHuntee=1
  386. set playerHunter=0
  387. set hunter1=0
  388. set hunter2=0
  389. set hunter3=0
  390. set hunterHull=0
  391. set hunter1Hull=0
  392. set hunter2Hull=0
  393. set hunter3Hull=0
  394. set hunterHullMax=5
  395. set hunter1HullMax=5
  396. set hunter2HullMax=5
  397. set hunter3HullMax=5
  398. set hullUpgrade1=1
  399. set hullUpgrade2=1
  400. set hullUpgrade3=1
  401. set hullUpgrade4=1
  402. set multiplier=1
  403. set bountyMultiplier=1
  404. set bountyAvail=5
  405. set bountyCaught=0
  406. goto:eof
  407.  
  408. :startUP
  409. cls
  410. echo --------------------------------
  411. echo What will be your Station Name?
  412. echo --------------------------------
  413. echo 1) Input
  414. echo 2) Random
  415. choice /c 12 /n >nul
  416. if %errorlevel% EQU 1 (
  417.     set /p playername=Station:
  418.     goto startUP2
  419. )
  420. if %errorlevel% EQU 2 (
  421.     set /a runName=%random%%%20+1
  422.     set /a runName2=%random%%%5+1
  423.     call :randomName
  424.     call :randomName2
  425.     set playername=%name2%%name%
  426.    
  427.    
  428.     goto startUPConfirm
  429. )
  430. :startUPConfirm
  431. cls
  432. echo --------------------------------
  433. echo Your Station will be: Station %playername%
  434. echo 1) Yes
  435. echo 2) No -Regenerate-
  436. echo --------------------------------
  437. choice /c 12 /n >nul
  438. if %errorlevel% == 1 (
  439.     goto startUP2
  440. )
  441. if %errorlevel% == 2 (
  442.     set /a runName=%random%%%20+1
  443.     set /a runName2=%random%%%5+1
  444.     call :randomName
  445.     call :randomName2
  446.     set playername=%name2%%name%
  447.     goto startUPConfirm
  448. )
  449. :startUP2
  450. cls
  451. echo -----------------------------------
  452. echo  What will the 5 other Stations be?
  453. echo -----------------------------------
  454. echo 1) Input
  455. echo 2) Random
  456. choice /c 12 /n >nul
  457. if %errorlevel% EQU 1 (
  458.     set /p station1=Station:
  459.     set /p station2=Station:
  460.     set /p station3=Station:
  461.     set /p station4=Station:
  462.     set /p station5=Station:
  463.     goto startUP3
  464. )
  465. if %errorlevel% EQU 2 (
  466.     call :station1Name
  467.     call :station2Name
  468.     call :station3Name
  469.     call :station4Name
  470.     call :station5Name
  471.     goto startUP2Confirm
  472. )
  473.  
  474. goto startUP2
  475.  
  476. :station1Name
  477.     set /a runName=%random%%%20+1
  478.     set /a runName2=%random%%%5+1
  479.     call :randomName
  480.     call :randomName2
  481.     set station1=%name2%%name%
  482. goto:eof
  483. :station2Name
  484.     set /a runName=%random%%%20+1
  485.     set /a runName2=%random%%%5+1
  486.     call :randomName
  487.     call :randomName2
  488.     set station2=%name2%%name%
  489. goto:eof
  490. :station3Name
  491.     set /a runName=%random%%%20+1
  492.     set /a runName2=%random%%%5+1
  493.     call :randomName
  494.     call :randomName2
  495.     set station3=%name2%%name%
  496. goto:eof
  497. :station4Name
  498.     set /a runName=%random%%%20+1
  499.     set /a runName2=%random%%%5+1
  500.     call :randomName
  501.     call :randomName2
  502.     set station4=%name2%%name%
  503. goto:eof
  504. :station5Name
  505.     set /a runName=%random%%%20+1
  506.     set /a runName2=%random%%%5+1
  507.     call :randomName
  508.     call :randomName2
  509.     set station5=%name2%%name%
  510. goto:eof
  511.  
  512. :startUP2Confirm
  513. cls
  514. echo ----------------------
  515. echo    Station %station1%
  516. echo    Station %station2%
  517. echo    Station %station3%
  518. echo    Station %station4%
  519. echo    Station %station5%
  520. echo ----------------------
  521. echo 1) Yes
  522. echo 2) No -Regenerate-
  523. choice /c 12 /n >nul
  524. if %errorlevel% == 1 (
  525.     goto startUP3
  526. )
  527. if %errorlevel% == 2 (
  528.     call :station1Name
  529.     call :station2Name
  530.     call :station3Name
  531.     call :station4Name
  532.     call :station5Name
  533.     goto startUP2Confirm
  534. )
  535. goto startUP2Confirm
  536.  
  537. :rivalList
  538. if %ranNegRep% EQU 1 (
  539.     set /a rep1-=150
  540. )
  541. if %ranNegRep% EQU 2 (
  542.     set /a rep2-=150
  543. )
  544. if %ranNegRep% EQU 3 (
  545.     set /a rep3-=150
  546. )
  547. if %ranNegRep% EQU 4 (
  548.     set /a rep4-=150
  549. )
  550. if %ranNegRep% EQU 5 (
  551.     set /a rep5-=150
  552. )
  553. goto:eof
  554.  
  555. :startUP3
  556. cls
  557. echo -------------------------
  558. echo         Origins
  559. echo -------------------------
  560. echo What were your Beginnings like:
  561. echo.
  562. echo 1-Your Father was a Fleet Commander, he died leaving you in charge of Station %playername%.
  563. echo `:-------------------------------------------------:'
  564. echo  -Bonus Military- +6 Tactics +40 Favor +15000 Credits
  565. echo.
  566. echo 2-Your Father was a Garrison Captain, you stayed at the Garrison  
  567. echo with the other Pilots and watched how he worked hangers at Station %playername%.
  568. echo `:-------------------------------------------------:'
  569. echo -Bonus Tactics- +8 Tactics +20 Favor +5000 Credits
  570. echo.
  571. echo 3-Your parents were refugees from a nearby uncivil Station's rule
  572. echo and formed an independant Stationing called Station %playername%.
  573. echo `:-------------------------------------------------:'
  574. echo -Rival Enemy- -150 Relations to ? +3 Tactics +10 Favor +2200 Credits
  575. echo.
  576. echo 4-Your parents raised you on Station %playername% during a peaceful
  577. echo time; you grew up and graduated Fleet Commanding courses.
  578. echo `:-------------------------------------------------:'
  579. echo -Basic Start- +2 Tactics +15 Favor +2500 Credits
  580. echo.
  581. set /p act=Choice#:
  582. if %act% EQU 1 (
  583.     set /a sectors=%random%%%12+1
  584.     set PF=40
  585.     set tactics=6
  586.     set credits=15000
  587.     set /a shipF=%random%%%1800+1
  588.     set /a shipC=%random%%%550+1
  589.     set /a shipB=%random%%%155+1
  590.     goto home
  591. )
  592. if %act% EQU 2 (
  593.     set /a sectors=%random%%%9+1
  594.     set PF=20
  595.     set tactics=8
  596.     set credits=5000
  597.     set /a shipF=%random%%%1600+1
  598.     set /a shipC=%random%%%350+1
  599.     set /a shipB=%random%%%95+1
  600.     goto home
  601. )
  602. if %act% EQU 3 (
  603.     set /a sectors=%random%%%6+1
  604.     set /a ranNegRep=%random%%%5+1
  605.     call :rivalList
  606.     set PF=10
  607.     set tactics=3
  608.     set credits=2200
  609.     set /a shipF=%random%%%1000+1
  610.     set /a shipC=%random%%%150+1
  611.     set /a shipB=%random%%%45+1
  612.     goto home
  613. )
  614. if %act% EQU 4 (
  615.     set /a sectors=%random%%%9+1
  616.     set PF=15
  617.     set tactics=2
  618.     set credits=2500
  619.     set /a shipF=%random%%%1600+1
  620.     set /a shipC=%random%%%350+1
  621.     set /a shipB=%random%%%95+1
  622.     goto home
  623. )
  624.  
  625. rem ///// Extras ///////
  626. if %act% EQU 5 (
  627.     set /a sectors=%random%%%12+1
  628.     set PF=40
  629.     set tactics=6
  630.     set credits=15000
  631.     set /a shipF=%random%%%1800+1
  632.     set /a shipC=%random%%%550+1
  633.     set /a shipB=%random%%%155+1
  634.     set stance1=2
  635.     set stance2=2
  636.     set stance3=2
  637.     set stance4=2
  638.     set stance5=2
  639.     goto home
  640. )
  641. if %act% EQU 6 (
  642.     set /a sectors=%random%%%12+1
  643.     set PF=40
  644.     set tactics=6
  645.     set credits=15000
  646.     set /a shipF=%random%%%1800+1
  647.     set /a shipC=%random%%%550+1
  648.     set /a shipB=%random%%%155+1
  649.     set stance1=1
  650.     set stance2=1
  651.     set stance3=1
  652.     set stance4=1
  653.     set stance5=1
  654.     goto home
  655. )
  656. goto startUP3
  657.  
  658. :getRecruitInflation
  659. set /a FBase=25+%shipFR%
  660. set /a CBase=40+%shipCR%
  661. set /a BBase=80+%shipBR%
  662. goto:eof
  663.  
  664. :getIsPlayerBroke
  665. if %credits% LSS %FBase% (
  666.     set b1=Not Affordable
  667. ) else (set b1=Affordable)
  668. if %credits% LSS %CBase% (
  669.     set b2=Not Affordable
  670. ) else (set b2=Affordable)
  671. if %credits% LSS %BBase% (
  672.     set b3=Not Affordable
  673. ) else (set b3=Affordable)
  674. goto:eof
  675.  
  676. :recruitStation
  677. call :getRecruitInflation
  678. call :getIsPlayerBroke
  679. cls
  680. echo ----------------------------------------------------------------------------------------------
  681. echo  Credits:%credits% /\ Ships:%ships% /\ Sectors:%sectors% /\ Public Favor:%PF% /\ Tactics:%tactics% /\ Year:%year%
  682. echo ----------------------------------------------------------------------------------------------
  683. echo    %playername% Ship Assembly
  684. echo --------------------
  685. echo    1) Recruit %playername% Fighter's -%RshipF%- %b1%
  686. echo    2) Recruit %playername% Corvette's -%RshipC%- %b2%
  687. echo    3) Recruit %playername% Battleship's -%RshipB%- %b3%
  688. echo    0) Return
  689. echo --------------------
  690. choice /c 1230 /n >nul
  691. if %errorlevel% == 1 (
  692.     if %credits% LSS %FBase% (
  693.         goto recruitStation
  694.     )
  695.     set W1=%playername% Fighter's
  696.     set W2=1
  697.     set W3=%RshipF%
  698.     goto recruitWindow
  699. )
  700. if %errorlevel% == 2 (
  701.     if %credits% LSS %CBase% (
  702.         goto recruitStation
  703.     )
  704.     set W1=%playername% Corvette's
  705.     set W2=2
  706.     set W3=%RshipC%
  707.     goto recruitWindow
  708. )
  709. if %errorlevel% == 3 (
  710.     if %credits% LSS %BBase% (
  711.         goto recruitStation
  712.     )
  713.     set W1=%playername% Battleship's
  714.     set W2=3
  715.     set W3=%RshipB%
  716.     goto recruitWindow
  717. )
  718. if %errorlevel% == 4 (
  719.     goto home
  720. )
  721. goto recruitStation
  722.  
  723. :getAvailable
  724. rem Total Cost of Recruitable Ships
  725. set /a CshipF=%RshipF%*%FBase%
  726. set /a CshipC=%RshipC%*%CBase%
  727. set /a CshipB=%RshipB%*%BBase%
  728.  
  729. if %W2% EQU 1 (
  730.     set Aship=%CshipF%
  731.     set /a W3=%RshipF%
  732.     set W4=%FBase%
  733.     set W5=%shipF%
  734. )
  735. if %W2% EQU 2 (
  736.     set Aship=%CshipC%
  737.     set /a W3=%RshipC%
  738.     set W4=%CBase%
  739.     set W5=%shipC%
  740. )
  741. if %W2% EQU 3 (
  742.     set Aship=%CshipB%
  743.     set /a W3=%RshipB%
  744.     set W4=%BBase%
  745.     set W5=%shipB%
  746. )
  747.  
  748. set /a Gship=(%credits% / %W4%)
  749.  
  750. goto:eof
  751.  
  752. :isOverRecruiting
  753. if %W2% EQU 1 (
  754. if %Ramount% GTR %RshipF% (
  755.         set Ramount=%RshipF%
  756.       )
  757.     )
  758. if %W2% EQU 2 (
  759. if %Ramount% GTR %RshipC% (
  760.         set Ramount=%RshipC%
  761.       )
  762.     )
  763. if %W2% EQU 3 (
  764. if %Ramount% GTR %RshipB% (
  765.         set Ramount=%RshipB%
  766.       )
  767.     )
  768. goto:eof
  769.  
  770. :recruitWindow
  771. call :getAvailable
  772. call :getTotalShips
  773. call :isOverRecruiting
  774. cls
  775. echo ----------------------------------------------------------------------------------------------
  776. echo  Credits:%credits% /\ Ships:%ships% /\ Sectors:%sectors% /\ Public Favor:%PF% /\ Tactics:%tactics% /\ Year:%year%
  777. echo ----------------------------------------------------------------------------------------------
  778. echo    Recruiting:%W1%
  779. echo ----------------------------------
  780. echo There are %W3% %W1% Available the total cost
  781. echo of all %W1% is %Aship% we have %credits% Credits
  782. echo we can afford %Gship%, just one costs %W4% in
  783. echo our fleet we have %W5%
  784. echo ----------------------------------
  785. echo 1) Recruit +%Ramount%
  786. echo 2) Recruit Amount
  787. echo 0) Return
  788. choice /c 120 /n >nul
  789.  
  790. if %errorlevel% == 1 (
  791.     if %W2% EQU 1 (
  792.         if %credits% LSS %FBase% (
  793.         goto recruitStation
  794.      )
  795.         if %RshipF% LEQ 0 (
  796.             set RshipF=0
  797.             goto recruitStation
  798.         )
  799.         if %Ramount% GTR %RshipF% (
  800.             set Ramount=%RshipF%
  801.         )
  802.      set /a shipF+=%Ramount%
  803.      set /a RshipF-=%Ramount%
  804.      set /a credits-=%FBase%*%Ramount%
  805.      goto recruitWindow
  806.     )
  807.    
  808.     if %W2% EQU 2 (
  809.         if %credits% LSS %CBase% (
  810.         goto recruitStation
  811.      )
  812.         if %RshipC% LEQ 0 (
  813.             set RshipC=0
  814.             goto recruitStation
  815.         )
  816.         if %Ramount% GTR %RshipC% (
  817.             set Ramount=%RshipC%
  818.         )
  819.      set /a shipC+=%Ramount%
  820.      set /a RshipC-=%Ramount%
  821.      set /a credits-=%CBase%*%Ramount%
  822.      goto recruitWindow
  823.     )
  824.    
  825.     if %W2% EQU 3 (
  826.         if %credits% LSS %BBase% (
  827.         goto recruitStation
  828.      )
  829.         if %RshipB% LEQ 0 (
  830.             set RshipB=0
  831.             goto recruitStation
  832.         )
  833.         if %Ramount% GTR %RshipB% (
  834.             set Ramount=%RshipB%
  835.         )
  836.      set /a shipB+=%Ramount%
  837.      set /a RshipB-=%Ramount%
  838.      set /a credits-=%BBase%*%Ramount%
  839.      goto recruitWindow
  840.     )
  841. )
  842.  
  843. if %errorlevel% == 2 (
  844.     if %W2% EQU 1 (
  845.         set /p Ramount=Amount of Fighters:
  846.         if %credits% LSS %FBase% (
  847.         goto recruitStation
  848.       )
  849.       if %Ramount% GTR %RshipF% (
  850.         set Ramount=%RshipF%
  851.         goto recruitWindow
  852.       )
  853.       goto recruitWindow
  854.      )
  855.      if %W2% EQU 2 (
  856.         set /p Ramount=Amount of Corvettes:
  857.         if %credits% LSS %CBase% (
  858.         goto recruitStation
  859.       )
  860.       if %Ramount% GTR %RshipC% (
  861.         set Ramount=%RshipC%
  862.         goto recruitWindow
  863.       )
  864.       goto recruitWindow
  865.      )
  866.      if %W2% EQU 3 (
  867.         set /p Ramount=Amount of Battleships:
  868.         if %credits% LSS %BBase% (
  869.         goto recruitStation
  870.       )
  871.       if %Ramount% GTR %RshipB% (
  872.         set Ramount=%RshipB%
  873.         goto recruitWindow
  874.       )
  875.       goto recruitWindow
  876.      )
  877. )
  878. if %errorlevel% == 3 goto recruitStation
  879. goto recruitStation
  880.  
  881. :stationStats
  882. call :getTotalShips
  883. call :getShipStats
  884. cls
  885. echo ----------------------------------------------------------------------------------------------
  886. echo  Credits:%credits% /\ Ships:%ships% /\ Sectors:%sectors% /\ Public Favor:%PF% /\ Tactics:%tactics% /\ Year:%year%
  887. echo ----------------------------------------------------------------------------------------------
  888. echo Naval Combat Power is %CP%
  889. echo Total Ships %ships%
  890. echo Fighters:%shipF% CP:%shipFS%
  891. echo Corvettes:%shipC% CP:%shipCS%
  892. echo Battleships:%shipB% CP:%shipBS%
  893. echo ----------------------
  894. pause>nul
  895. goto home
  896.  
  897. :getShipStats
  898. set /a shipFS=15*%shipF%
  899. set /a shipCS=65*%shipC%
  900. set /a shipBS=145*%shipB%
  901. goto:eof
  902.  
  903. :getTotalShips
  904. set /a ships=%shipF%+%shipC%+%shipB%
  905. set /a CP=%shipFS%+%shipCS%+%shipBS%
  906. goto:eof
  907.  
  908. :getPlayerVoice
  909. if %playerChoice% == 0 (
  910.     set playerVoice=No Stance
  911. )
  912. if %playerChoice% == 1 (
  913.     set playerVoice=Attack
  914. )
  915. if %playerChoice% == 2 (
  916.     set playerVoice=Defend
  917. )
  918. if %playerChoice% == 3 (
  919.     set playerVoice=Sector Discovery
  920. )
  921. goto:eof
  922.  
  923. :getIsBanking
  924. if %banking% EQU 1 (
  925.     set isBanking=Disabled
  926. )
  927. if %banking% EQU 2 (
  928.     set isBanking=Enabled
  929. )
  930. goto:eof
  931.  
  932. :getInterestRate
  933. set /a interest=%creditsBank% / 6
  934. goto:eof
  935.  
  936. :isOverBanking
  937. if %amount% GTR %credits% (
  938.         set msg=Cannot Deposit More than what you Have!
  939.         set amount=%credits%
  940.         goto bank
  941.     )
  942. goto:eof
  943.  
  944. :bank
  945. call :getIsBanking
  946. call :getInterestRate
  947. cls
  948. echo ----------------------------------------------------------------------------------------------
  949. echo  Credits:%credits% /\ Ships:%ships% /\ Sectors:%sectors% /\ Public Favor:%PF% /\ Tactics:%tactics% /\ Year:%year%
  950. echo ----------------------------------------------------------------------------------------------
  951. echo        Bank
  952. echo ---------------------
  953. echo Banked Credits:%creditsBank%
  954. echo `:---------------------:'
  955. echo.
  956. echo Personal Credits:%credits%
  957. echo `:---------------------:'
  958. echo Interest Per Turn: %interest%
  959. echo `:---------------------:'
  960. echo Info:%msg%
  961. echo `:---------------------:'
  962. echo 1) %isBanking% Banking -Automatic Deposit After Turn-
  963. echo 2) Set Amount %amount%
  964. echo 3) Deposit
  965. echo 4) Withdraw
  966. echo 0) Return
  967. choice /c 12340 /n >nul
  968. if %errorlevel% == 1 (
  969.     echo 1-Disable
  970.     echo 2-Enable
  971.     set /p banking=Input # Here:
  972. )
  973. if %errorlevel% == 2 (
  974.     call :isOverBanking
  975.     set /p amount=Set Amount:
  976.     goto bank
  977. )
  978. if %errorlevel% == 3 (
  979.     if %credits% LSS %amount% (
  980.         set msg=Not Enough Credits to Deposit!
  981.         goto bank
  982.     )
  983.     set /a credits-=%amount%
  984.     set /a creditsBank+=%amount%
  985.     goto bank
  986. )
  987. if %errorlevel% == 4 (
  988.     if %creditsBank% LSS %amount% (
  989.         set msg=Not Enough Credits to Withdraw!
  990.         goto bank
  991.     )
  992.     set /a credits+=%amount%
  993.     set /a creditsBank-=%amount%
  994.     goto bank
  995. )
  996. if %errorlevel% == 5 (
  997. goto home
  998. )
  999. goto bank
  1000.  
  1001. rem ////////////    HOME SECTION    ///////////////
  1002.  
  1003. :help
  1004. cls
  1005. echo -------------------------------------------
  1006. echo              Helping Hand
  1007. echo -------------------------------------------
  1008. echo How to make money: The Player Earns credits in two ways:
  1009. echo -Bounty Board is the Best Place to Make Money
  1010. echo -At The End of Each turn the Player Earns a small amount based on 250 x Sectors + Public Favor X2 + Bank Interest
  1011. echo -Your current Bank Credits Affect a LOT of your Wealth Generation, if you accumulate Negative Bank Credits you will be in debt and interest will start to consume you
  1012. echo if not paid off shortly. So Keep your Bank in the Positive and you'll be generating interest revenue.
  1013. echo -------------------------------------------
  1014. echo What to consider before ending a turn:
  1015. echo -Pressing 4 for -Action allows you to choose what your decision will be that Turn.
  1016. echo   -No Stance
  1017. echo   -Attack
  1018. echo   -Defend +2 Tactics
  1019. echo   -Sectoring +1 Sector
  1020. echo -Pressing 3 for -Diplomacy to Check the Diplomacy Tab; there is a chance you can make a deal with another Station to make Peace or even an Alliance to prevent future attacks.
  1021. echo -You can also choose which Station you'd like to attack Continously every Attack Turn in the Diplomacy Tab.
  1022. pause>nul
  1023. goto options
  1024.  
  1025. :options
  1026. cls
  1027. echo ---------------------
  1028. echo       Options
  1029. echo ---------------------
  1030. echo 1) Save
  1031. echo 2) Help
  1032. echo 0) Return
  1033. echo ---------------------
  1034. choice /c 120 /n >nul
  1035. if %errorlevel% == 1 (
  1036.     goto saveGame
  1037. )
  1038. if %errorlevel% == 2 (
  1039.     goto help
  1040. )
  1041. if %errorlevel% == 3 (
  1042.     goto home
  1043. )
  1044.  
  1045. goto options
  1046.  
  1047. :getStationStances
  1048. if %stance1% EQU 1 (
  1049.     set stanced1=At War
  1050. )
  1051. if %stance1% EQU 2 (
  1052.     set stanced1=At Peace
  1053. )
  1054. if %stance1% EQU 3 (
  1055.     set stanced1=Allied
  1056. )
  1057.  
  1058. if %stance2% EQU 1 (
  1059.     set stanced2=At War
  1060. )
  1061. if %stance2% EQU 2 (
  1062.     set stanced2=At Peace
  1063. )
  1064. if %stance2% EQU 3 (
  1065.     set stanced2=Allied
  1066. )
  1067.  
  1068. if %stance3% EQU 1 (
  1069.     set stanced3=At War
  1070. )
  1071. if %stance3% EQU 2 (
  1072.     set stanced3=At Peace
  1073. )
  1074. if %stance3% EQU 3 (
  1075.     set stanced3=Allied
  1076. )
  1077.  
  1078. if %stance4% EQU 1 (
  1079.     set stanced4=At War
  1080. )
  1081. if %stance4% EQU 2 (
  1082.     set stanced4=At Peace
  1083. )
  1084. if %stance4% EQU 3 (
  1085.     set stanced4=Allied
  1086. )
  1087.  
  1088. if %stance5% EQU 1 (
  1089.     set stanced5=At War
  1090. )
  1091. if %stance5% EQU 2 (
  1092.     set stanced5=At Peace
  1093. )
  1094. if %stance5% EQU 3 (
  1095.     set stanced5=Allied
  1096. )
  1097. goto:eof
  1098.  
  1099. :home
  1100. call :getStationStances
  1101. call :getShipStats
  1102. call :getTotalShips
  1103. call :getShipQuantity
  1104. call :getPlayerVoice
  1105. call :getPlayerDeath
  1106. call :getInterestRate
  1107. call :getUpkeep
  1108. call :getPlayerPay
  1109. call :getTopicStation
  1110. cls
  1111. echo ----------------------------------------------------------------------------------------------
  1112. echo  Credits:%credits% /\ Ships:%ships% /\ Sectors:%sectors% /\ Public Favor:%PF% /\ Tactics:%tactics% /\ Year:%year%
  1113. echo ----------------------------------------------------------------------------------------------
  1114. echo  Station %playername%
  1115. echo ---------------------
  1116. echo 1) Assemble Ships
  1117. echo 2) Station Statistics
  1118. echo 3) Diplomacy
  1119. echo 4) Action
  1120. echo 5) Bank
  1121. echo 6) Station Policies W
  1122. echo 7) Bounty Board
  1123. echo 8) Options -Help-
  1124. echo 0) End Turn
  1125. echo ----------------
  1126. echo Action:%playerVoice%
  1127. echo ----------------
  1128. echo Info:%msg%
  1129. echo ----------------
  1130. choice /c 123456780 /n >nul
  1131. if %errorlevel% == 1 (
  1132.     goto recruitStation
  1133. )
  1134. if %errorlevel% == 2 (
  1135.     goto stationStats
  1136. )
  1137. if %errorlevel% == 3 (
  1138.     goto diplomacy
  1139. )
  1140. if %errorlevel% == 4 (
  1141.     echo 0-No Stance
  1142.     echo 1-Attack
  1143.     echo 2-Defend
  1144.     echo 3-Sectoring
  1145.     set /p playerChoice=Action:
  1146.     if %playerChoice% EQU 0 (
  1147.         set playerVoice=No Stance
  1148.     )
  1149.     if %playerChoice% EQU 1 (
  1150.         set playerVoice=Attack
  1151.     )
  1152.     if %playerChoice% EQU 2 (
  1153.         set playerVoice=Defend
  1154.     )
  1155.     if %playerChoice% EQU 3 (
  1156.         set playerVoice=Sector Discovery.
  1157.     )
  1158.     goto home
  1159. )
  1160. if %errorlevel% == 5 (
  1161.     goto bank
  1162. )
  1163. if %errorlevel% == 6 (
  1164.     goto stationPolicies
  1165. )
  1166. if %errorlevel% == 7 (
  1167.     call :playerHunters
  1168.     goto bountyBoard
  1169. )
  1170. if %errorlevel% == 8 (
  1171.     goto options
  1172. )
  1173. if %errorlevel% == 9 (
  1174.     set /a year+=1
  1175.     set /a AI1=%random%%%5+1
  1176.     set /a AI2=%random%%%5+1
  1177.     set /a AI3=%random%%%5+1
  1178.     set /a AI4=%random%%%5+1
  1179.     set /a AI5=%random%%%5+1
  1180.     call :AIResultKind
  1181.     goto yearResults
  1182. )
  1183. goto home
  1184.  
  1185. rem /////////////// EVERYTHING ABOUT RESULT FUNCTION ////////////////
  1186.  
  1187. :AIResultKind
  1188. if %AI1% EQU 1 (
  1189.     set AIchoice1=Defend
  1190. )
  1191. if %AI1% EQU 2 (
  1192.     set AIchoice1=Attack
  1193. )
  1194. if %AI1% EQU 3 (
  1195.     set AIchoice1=Build Military
  1196. )
  1197. if %AI1% EQU 4 (
  1198.     set AIchoice1=Sector Discovery
  1199. )
  1200. if %AI1% EQU 5 (
  1201.     set AIchoice1=Declare
  1202. )
  1203.  
  1204. if %AI2% EQU 1 (
  1205.     set AIchoice2=Defend
  1206. )
  1207. if %AI2% EQU 2 (
  1208.     set AIchoice2=Attack
  1209. )
  1210. if %AI2% EQU 3 (
  1211.     set AIchoice2=Build Military
  1212. )
  1213. if %AI2% EQU 4 (
  1214.     set AIchoice2=Sector Discovery
  1215. )
  1216. if %AI2% EQU 5 (
  1217.     set AIchoice2=Declare
  1218. )
  1219.  
  1220. if %AI3% EQU 1 (
  1221.     set AIchoice3=Defend
  1222. )
  1223. if %AI3% EQU 2 (
  1224.     set AIchoice3=Attack
  1225. )
  1226. if %AI3% EQU 3 (
  1227.     set AIchoice3=Build Military
  1228. )
  1229. if %AI3% EQU 4 (
  1230.     set AIchoice3=Sector Discovery
  1231. )
  1232. if %AI3% EQU 5 (
  1233.     set AIchoice3=Declare
  1234. )
  1235.  
  1236. if %AI4% EQU 1 (
  1237.     set AIchoice4=Defend
  1238. )
  1239. if %AI4% EQU 2 (
  1240.     set AIchoice4=Attack
  1241. )
  1242. if %AI4% EQU 3 (
  1243.     set AIchoice4=Build Military
  1244. )
  1245. if %AI4% EQU 4 (
  1246.     set AIchoice4=Sector Discovery
  1247. )
  1248. if %AI4% EQU 5 (
  1249.     set AIchoice4=Declare
  1250. )
  1251.  
  1252. if %AI5% EQU 1 (
  1253.     set AIchoice5=Defend
  1254. )
  1255. if %AI5% EQU 2 (
  1256.     set AIchoice5=Attack
  1257. )
  1258. if %AI5% EQU 3 (
  1259.     set AIchoice5=Build Military
  1260. )
  1261. if %AI5% EQU 4 (
  1262.     set AIchoice5=Sector Discovery
  1263. )
  1264. if %AI5% EQU 5 (
  1265.     set AIchoice5=Declare
  1266. )
  1267.  
  1268. goto:eof
  1269.  
  1270. rem ///////// YEAR RESULTS ////////////
  1271.  
  1272. :getBanked
  1273. if %banking% EQU 1 (
  1274. set /a credits+=%yearlyKeep%
  1275. )
  1276. if %banking% EQU 2 (
  1277. set /a creditsBank+=%yearlyKeep%
  1278. )
  1279. goto:eof
  1280.  
  1281. :randomBounties
  1282. set /a turnBount=%random%%%8+1
  1283. set /a turnBounties=%turnBount%*%bountyMultiplier%
  1284. set /a bountyAvail+=%turnBounties%
  1285. goto:eof
  1286.  
  1287. :getUpkeep
  1288. set /a shipFUpkeep=5*%shipF%
  1289. set /a shipCUpkeep=8*%shipC%
  1290. set /a shipBUpkeep=12*%shipB%
  1291. set /a totalUpkeep=%shipFUpkeep%+%shipCUpkeep%+%shipBUpkeep%
  1292. goto:eof
  1293.  
  1294. :getRepLossRate
  1295. set enemyBase=3
  1296. set peaceBase=2
  1297. if %stance1% LSS 3 (
  1298.     if %stance1% EQU 1 (
  1299.     set /a rep1-=%enemyBase%
  1300.     set rep1Drift=%enemyBase%
  1301.     )
  1302.     set /a rep1-=%peaceBase%
  1303.     set rep1Drift=%peaceBase%
  1304. )
  1305. if %stance2% LSS 3 (
  1306.     if %stance2% EQU 1 (
  1307.     set /a rep2-=%enemyBase%
  1308.     set rep2Drift=%enemyBase%
  1309.     )
  1310.     set /a rep2-=%peaceBase%
  1311.     set rep2Drift=%peaceBase%
  1312. )
  1313. if %stance3% LSS 3 (
  1314.     if %stance3% EQU 1 (
  1315.     set /a rep3-=%enemyBase%
  1316.     set rep3Drift=%enemyBase%
  1317.     )
  1318.     set /a rep3-=%peaceBase%
  1319.     set rep3Drift=%peaceBase%
  1320. )
  1321. if %stance4% LSS 3 (
  1322.     if %stance4% EQU 1 (
  1323.     set /a rep4-=%enemyBase%
  1324.     set rep4Drift=%enemyBase%
  1325.     )
  1326.     set /a rep4-=%peaceBase%
  1327.     set rep4Drift=%peaceBase%
  1328. )
  1329. if %stance5% LSS 3 (
  1330.     if %stance5% EQU 1 (
  1331.     set /a rep5-=%enemyBase%
  1332.     set rep5Drift=%enemyBase%
  1333.     )
  1334.     set /a rep5-=%peaceBase%
  1335.     set rep5Drift=%peaceBase%
  1336. )
  1337. goto:eof
  1338.  
  1339. :gatherShipRecruits
  1340. set /a RshipF=%random%%%150+1
  1341. set /a RshipC=%random%%%25+1
  1342. set /a RshipB=%random%%%5+1
  1343. set /a RshipF=%RshipF%*%tactics%
  1344. set /a RshipC=%RshipC%*%tactics%
  1345. set /a RshipB=%RshipB%*%tactics%
  1346. goto:eof
  1347.  
  1348. :getPlayerPay
  1349. set /a yearly=250*%sectors%+(%PF%*2)+%tax%
  1350. set /a yearlyWithInterest=250*%sectors%+(%PF%*2)+%tax%+%interest%
  1351. set /a yearlyKeep=%yearly%-%totalUpkeep%
  1352. goto:eof
  1353.  
  1354. :yearResults
  1355. set playerResulted=1
  1356. set sectorsSet=0
  1357. set AI1Result=1
  1358. set AI2Result=1
  1359. set AI3Result=1
  1360. set AI4Result=1
  1361. set AI5Result=1
  1362. call :getShipStats1
  1363. call :getShipStats2
  1364. call :getShipStats3
  1365. call :getShipStats4
  1366. call :getShipStats5
  1367. call :attackList1
  1368. call :attacklist2
  1369. call :attacklist3
  1370. call :attacklist4
  1371. call :attacklist5
  1372. call :playerAttackList
  1373. call :getInterestRate
  1374. call :getUpkeep
  1375. call :getPlayerVoice
  1376. call :getPlayerPay
  1377. call :getBanked
  1378. call :randomBounties
  1379. call :gatherShipRecruits
  1380. call :getBuiltMilitary
  1381. call :getRepLossRate
  1382. call :gatherResults
  1383. call :getTopicStation
  1384. cls
  1385. echo ----------------------------------------------------------------------------------------------
  1386. echo  Credits:%credits% /\ Ships:%ships% /\ Sectors:%sectors% /\ Public Favor:%PF% /\ Tactics:%tactics% /\ Year:%year%
  1387. echo ----------------------------------------------------------------------------------------------
  1388. echo        Year Results
  1389. echo ----------------------------
  1390. echo Station %playername% will %playerVoice% this turn.
  1391. echo ----------------------------
  1392. echo Station %station1% will %AIchoice1% this turn.
  1393. echo ----------------------------
  1394. echo Station %station2% will %AIchoice2% this turn.
  1395. echo ----------------------------
  1396. echo Station %station3% will %AIchoice3% this turn.
  1397. echo ----------------------------
  1398. echo Station %station4% will %AIchoice4% this turn.
  1399. echo ----------------------------
  1400. echo Station %station5% will %AIchoice5% this turn.
  1401. echo ----------------------------
  1402. echo Interest:%interest% Credits
  1403. echo Income:%yearly% Credits
  1404. echo Income Compounded:%yearlyWithInterest% Credits
  1405. echo Upkeep:-%totalUpkeep% Credits
  1406. echo After Expense:=%yearlyKeep% Credits
  1407. echo New Bounties:+%turnBounties% Bounties
  1408. echo ----------------------------
  1409. echo Relations Drift:
  1410. echo Station %station1%: -%rep1Drift%
  1411. echo Station %station2%: -%rep2Drift%
  1412. echo Station %station3%: -%rep3Drift%
  1413. echo Station %station4%: -%rep4Drift%
  1414. echo Station %station5%: -%rep5Drift%
  1415. pause>nul
  1416. goto playerResult
  1417.  
  1418.  
  1419. rem ////// COLLECT OUTCOMES OF ALL CHOICES GENERATED FOR THE AI AND MADE BY THE PLAYER //////
  1420.  
  1421. :gatherResults
  1422. if %playerChoice% == 0 (
  1423.     set playerVoice=No Stance
  1424.     set playerResults=Station %playername% has no Stance.
  1425. )
  1426. if %playerChoice% == 1 (
  1427.     set playerTarget=%attackTarget%
  1428.     call :playerAttackList
  1429.     if %playerTarget% == 1 (
  1430.          goto gatherResults
  1431.     )
  1432.     set playerVoice=Attack
  1433.     call :resultsAttack
  1434. )
  1435. if %playerChoice% == 2 (
  1436.     set playerVoice=Defend
  1437.     set playerResult=1
  1438.     set /a tactics+=2
  1439.     set playerResults=Station %playername% decided to hold their position giving them a bonus +2 Tactics.
  1440. )
  1441. if %playerChoice% == 3 (
  1442.     if %sectorsSet% == 0 (
  1443.     set sectorsSet=1
  1444.     set playerVoice=Sector Discovery
  1445.     set /a sectors+=1
  1446.     set playerResults=Station %playername% explored deeper space gaining new territory +1 Sector
  1447.     )
  1448. )
  1449.  
  1450. if %AI1% EQU 1 (
  1451.     set AIchoice1=Defend
  1452.     set /a station1Tact+=2
  1453.     set result1=Station %station1% decided to hold their position giving them a bonus +2 Tactics.
  1454. )
  1455. if %AI1% EQU 2 (
  1456.     set /a attackTarget1=%random%%%5+1
  1457.     call :attackList1
  1458.     if %attackTarget1% EQU 1 (
  1459.         if %stance1% GEQ 2 goto gatherResults
  1460.     )
  1461.     set AIchoice1=Attack
  1462.     call :resultsAttack
  1463. )
  1464. if %AI1% EQU 3 (
  1465.     set AIchoice1=Build Military
  1466.     set /a shipF1+=%EshipF1%*%station1Tact%
  1467.     set /a shipC1+=%EshipC1%*%station1Tact%
  1468.     set /a shipB1+=%EshipB1%*%station1Tact%
  1469.     call :resultsBuild
  1470. )
  1471. if %AI1% EQU 4 (
  1472.     set AIchoice1=Sector Discovery
  1473.     set /a sectors1+=1
  1474.     set result1=Station %station1% explored deeper space gaining new territory +1 Sector
  1475. )
  1476. if %AI1% EQU 5 (
  1477.     if %rep1% LSS 0 (
  1478.         if %stance1% GTR 1 (
  1479.         set result1=Station %station1% has now Declared war on us!
  1480.         set stance1=1
  1481.         )
  1482.     )
  1483.     if %rep1% LSS 50 (
  1484.         if %stance1% GTR 2 (
  1485.         set result1=Station %station1% no longer sees benefit in our Alliance!
  1486.         set stance1=2
  1487.         )
  1488.     )
  1489.     if %rep1% GTR 75 (
  1490.         if %stance1% LSS 3 (
  1491.         set result1=Station %station1% Declares to form an Alliance with us!
  1492.         set stance1=3
  1493.         )
  1494.     )
  1495.     if %stance1% EQU 3 (
  1496.         set result1=Station %station1% See's interest in your Alliance and will Invest +1 Reputation with you.
  1497.         set /a rep1+=1
  1498.     )
  1499.     if %stance1% EQU 1 (
  1500.         set result1=Station %station1% See's negativity in your presence and will Invest -1 Reputation with you.
  1501.         set /a rep1-=1
  1502.     )
  1503. )
  1504.  
  1505. if %AI2% EQU 1 (
  1506.     set AI2Result=1
  1507.     set AIchoice2=Defend
  1508.     set /a station2Tact+=2
  1509.     set result2=Station %station2% decided to hold their position giving them a bonus +2 Tactics.
  1510. )
  1511. if %AI2% EQU 2 (
  1512.     set /a attackTarget2=%random%%%5+1
  1513.     call :attackList2
  1514.     if %attackTarget2% EQU 1 (
  1515.         if %stance2% GEQ 2 goto gatherResults
  1516.     )
  1517.     set AIchoice2=Attack
  1518.     call :resultsAttack
  1519. )
  1520. if %AI2% EQU 3 (
  1521.     set AIchoice2=Build Military
  1522.     set /a shipF2+=%EshipF2%*%station2Tact%
  1523.     set /a shipC2+=%EshipC2%*%station2Tact%
  1524.     set /a shipB2+=%EshipB2%*%station2Tact%
  1525.     call :resultsBuild
  1526. )
  1527. if %AI2% EQU 4 (
  1528.     set AIchoice2=Sector Discovery
  1529.     set /a sectors2+=1
  1530.     set result2=Station %station2% explored deeper space gaining new territory +1 Sector
  1531. )
  1532. if %AI2% EQU 5 (
  1533.     if %rep2% LSS 0 (
  1534.         if %stance2% GTR 1 (
  1535.         set result2=Station %station2% has now Declared war on us!
  1536.         set stance2=1
  1537.         )
  1538.     )
  1539.     if %rep2% LSS 50 (
  1540.         if %stance2% GTR 2 (
  1541.         set result2=Station %station2% no longer sees benefit in our Alliance!
  1542.         set stance2=2
  1543.         )
  1544.     )
  1545.     if %rep2% GTR 75 (
  1546.         if %stance2% LSS 3 (
  1547.         set result2=Station %station2% Declares to form an Alliance with us!
  1548.         set stance2=3
  1549.         )
  1550.     )
  1551.     if %stance2% EQU 3 (
  1552.         set result2=Station %station2% See's interest in your Alliance and will Invest +1 Reputation with you.
  1553.         set /a rep2+=1
  1554.     )
  1555.     if %stance2% EQU 1 (
  1556.         set result2=Station %station2% See's negativity in your presence and will Invest -1 Reputation with you.
  1557.         set /a rep2-=1
  1558.     )
  1559. )
  1560.  
  1561. if %AI3% EQU 1 (
  1562.     set AI3Result=1
  1563.     set AIchoice3=Defend
  1564.     set /a station3Tact+=2
  1565.     set result3=Station %station3% decided to hold their position giving them a bonus +2 Tactics.
  1566. )
  1567. if %AI3% EQU 2 (
  1568.     set /a attackTarget3=%random%%%5+1
  1569.     call :attackList3
  1570.     if %attackTarget3% EQU 1 (
  1571.         if %stance3% GEQ 2 goto gatherResults
  1572.     )
  1573.     set AIchoice3=Attack
  1574.     call :resultsAttack
  1575. )
  1576. if %AI3% EQU 3 (
  1577.     set AIchoice3=Build Military
  1578.     set /a shipF3+=%EshipF3%*%station3Tact%
  1579.     set /a shipC3+=%EshipC3%*%station3Tact%
  1580.     set /a shipB3+=%EshipB3%*%station3Tact%
  1581.     call :resultsBuild
  1582. )
  1583. if %AI3% EQU 4 (
  1584.     set AIchoice3=Sector Discovery
  1585.     set /a sectors3+=1
  1586.     set result3=Station %station3% explored deeper space gaining new territory +1 Sector
  1587. )
  1588. if %AI3% EQU 5 (
  1589.     if %rep3% LSS 0 (
  1590.         if %stance3% GTR 1 (
  1591.         set result3=Station %station3% has now Declared war on us!
  1592.         set stance3=1
  1593.         )
  1594.     )
  1595.     if %rep3% LSS 50 (
  1596.         if %stance3% GTR 2 (
  1597.         set result3=Station %station3% no longer sees benefit in our Alliance!
  1598.         set stance3=2
  1599.         )
  1600.     )
  1601.     if %rep3% GTR 75 (
  1602.         if %stance3% LSS 3 (
  1603.         set result3=Station %station3% Wishes to form an Alliance with us!
  1604.         set stance3=3
  1605.         )
  1606.     )
  1607.     if %stance3% EQU 3 (
  1608.         set result3=Station %station3% See's interest in your Alliance and will Invest +1 Reputation with you.
  1609.         set /a rep3+=1
  1610.     )
  1611.     if %stance3% EQU 1 (
  1612.         set result3=Station %station3% See's negativity in your presence and will Invest -1 Reputation with you.
  1613.         set /a rep3-=1
  1614.     )
  1615. )
  1616.  
  1617. if %AI4% EQU 1 (
  1618.     set AI4Result=1
  1619.     set AIchoice4=Defend
  1620.     set /a station4Tact+=2
  1621.     set result4=Station %station4% decided to hold their position giving them a bonus +2 Tactics.
  1622. )
  1623. if %AI4% EQU 2 (
  1624.     set /a attackTarget4=%random%%%5+1
  1625.     call :attackList4
  1626.     if %attackTarget4% EQU 1 (
  1627.         if %stance4% GEQ 2 goto gatherResults
  1628.     )
  1629.     set AIchoice4=Attack
  1630.     call :resultsAttack
  1631. )
  1632. if %AI4% EQU 3 (
  1633.     set AIchoice4=Build Military
  1634.     set /a shipF4+=%EshipF4%*%station4Tact%
  1635.     set /a shipC4+=%EshipC4%*%station4Tact%
  1636.     set /a shipB4+=%EshipB4%*%station4Tact%
  1637.     call :resultsBuild
  1638. )
  1639. if %AI4% EQU 4 (
  1640.     set AIchoice4=Sector Discovery
  1641.     set /a sectors4+=1
  1642.     set result4=Station %station4% explored deeper space gaining new territory +1 Sector
  1643. )
  1644. if %AI4% EQU 5 (
  1645.     if %rep4% LSS 0 (
  1646.         if %stance4% GTR 1 (
  1647.         set result4=Station %station4% has now Declared war on us!
  1648.         set stance4=1
  1649.         )
  1650.     )
  1651.     if %rep4% LSS 50 (
  1652.         if %stance4% GTR 2 (
  1653.         set result4=Station %station4% no longer sees benefit in our Alliance!
  1654.         set stance4=2
  1655.         )
  1656.     )
  1657.     if %rep4% GTR 75 (
  1658.         if %stance4% LSS 3 (
  1659.         set result4=Station %station4% Wishes to form an Alliance with us!
  1660.         set stance4=3
  1661.         )
  1662.     )
  1663.     if %stance4% EQU 3 (
  1664.         set result4=Station %station4% See's interest in your Alliance and will Invest +1 Reputation with you.
  1665.         set /a rep4+=1
  1666.     )
  1667.     if %stance4% EQU 1 (
  1668.         set result4=Station %station4% See's negativity in your presence and will Invest -1 Reputation with you.
  1669.         set /a rep4-=1
  1670.     )
  1671. )
  1672.  
  1673. if %AI5% EQU 1 (
  1674.     set AI5Result=1
  1675.     set AIchoice5=Defend
  1676.     set /a station5Tact+=2
  1677.     set result5=Station %station5% decided to hold their position giving them a bonus +2 Tactics.
  1678. )
  1679. if %AI5% EQU 2 (
  1680.     set /a attackTarget5=%random%%%5+1
  1681.     call :attackList5
  1682.     if %attackTarget5% EQU 1 (
  1683.         if %stance5% GEQ 2 goto gatherResults
  1684.     )
  1685.     set AIchoice5=Attack
  1686.     call :resultsAttack
  1687. )
  1688. if %AI5% EQU 3 (
  1689.     set AIchoice5=Build Military
  1690.     set /a shipF5+=%EshipF5%*%station5Tact%
  1691.     set /a shipC5+=%EshipC5%*%station5Tact%
  1692.     set /a shipB5+=%EshipB5%*%station5Tact%
  1693.     call :resultsBuild
  1694. )
  1695.  
  1696.  
  1697. if %AI5% EQU 4 (
  1698.     set AIchoice5=Sector Discovery
  1699.     set /a sectors5+=1
  1700.     set result5=Station %station5% explored deeper space gaining new territory +1 Sector
  1701. )
  1702.  
  1703. if %AI5% EQU 5 (
  1704.     if %rep5% LSS 0 (
  1705.         if %stance5% GTR 1 (
  1706.         set result5=Station %station5% has now Declared war on us!
  1707.         set stance5=1
  1708.         )
  1709.     )
  1710.     if %rep5% LSS 50 (
  1711.         if %stance5% GTR 2 (
  1712.         set result5=Station %station5% no longer sees benefit in our Alliance!
  1713.         set stance5=2
  1714.         )
  1715.     )
  1716.     if %rep5% GTR 75 (
  1717.         if %stance5% LSS 3 (
  1718.         set result5=Station %station5% Wishes to form an Alliance with us!
  1719.         set stance5=3
  1720.         )
  1721.     )
  1722.     if %stance5% EQU 3 (
  1723.         set result5=Station %station5% See's interest in your Alliance and will Invest +1 Reputation with you.
  1724.         set /a rep5+=1
  1725.     )
  1726.     if %stance5% EQU 1 (
  1727.         set result5=Station %station5% See's negativity in your presence and will Invest -1 Reputation with you.
  1728.         set /a rep5-=1
  1729.     )
  1730. )
  1731. goto:eof
  1732.  
  1733. :getBuiltMilitary
  1734. set /a EshipF1=%random%%%50+1*%station1Tact%
  1735. set /a EshipC1=%random%%%25+1*%station1Tact%
  1736. set /a EshipB1=%random%%%10+1*%station1Tact%
  1737.  
  1738. set /a EshipF2=%random%%%50+1*%station2Tact%
  1739. set /a EshipC2=%random%%%25+1*%station2Tact%
  1740. set /a EshipB2=%random%%%10+1*%station2Tact%
  1741.  
  1742. set /a EshipF3=%random%%%50+1*%station3Tact%
  1743. set /a EshipC3=%random%%%25+1*%station3Tact%
  1744. set /a EshipB3=%random%%%10+1*%station3Tact%
  1745.  
  1746. set /a EshipF4=%random%%%50+1*%station4Tact%
  1747. set /a EshipC4=%random%%%25+1*%station4Tact%
  1748. set /a EshipB4=%random%%%10+1*%station4Tact%
  1749.  
  1750. set /a EshipF5=%random%%%50+1*%station5Tact%
  1751. set /a EshipC5=%random%%%25+1*%station5Tact%
  1752. set /a EshipB5=%random%%%10+1*%station5Tact%
  1753. goto:eof
  1754.  
  1755. :resultsBuild
  1756. if %AI1% EQU 3 (
  1757. set result1=They increased their military by; Assembling %EshipF1% Fighters, %EshipC1% Corvettes, and %EshipB1% Battleships to their fleet.
  1758. )
  1759. if %AI2% EQU 3 (
  1760. set result2=They increased their military by; Assembling %EshipF2% Fighters, %EshipC2% Corvettes, and %EshipB2% Battleships to their fleet.
  1761. )
  1762. if %AI3% EQU 3 (
  1763. set result3=They increased their military by; Assembling %EshipF3% Fighters, %EshipC3% Corvettes, and %EshipB3% Battleships to their fleet.
  1764. )
  1765. if %AI4% EQU 3 (
  1766. set result4=They increased their military by; Assembling %EshipF4% Fighters, %EshipC4% Corvettes, and %EshipB4% Battleships to their fleet.
  1767. )
  1768. if %AI5% EQU 3 (
  1769. set result5=They increased their military by; Assembling %EshipF5% Fighters, %EshipC5% Corvettes, and %EshipB5% Battleships to their fleet.
  1770. )
  1771. goto:eof
  1772.  
  1773. :resultsAttack
  1774. if %playerChoice% EQU 1 (
  1775. set playerResults=Station %playername% has chosen to attack a Station specifically: Station %stationTarget%
  1776. )
  1777. if %AI1% EQU 2 (
  1778. set result1=Station %station1% has chosen to attack a Station specifically: Station %stationTarget1%
  1779. )
  1780. if %AI2% EQU 2 (
  1781. set result2=Station %station2% has chosen to attack a Station specifically: Station %stationTarget2%
  1782. )
  1783. if %AI3% EQU 2 (
  1784. set result3=Station %station3% has chosen to attack a Station specifically: Station %stationTarget3%
  1785. )
  1786. if %AI4% EQU 2 (
  1787. set result4=Station %station4% has chosen to attack a Station specifically: Station %stationTarget4%
  1788. )
  1789. if %AI5% EQU 2 (
  1790. set result5=Station %station5% has chosen to attack a Station specifically: Station %stationTarget5%
  1791. )
  1792. goto:eof
  1793.  
  1794. :getShipQuantity
  1795. if %shipF% LSS 0 (
  1796.     set shipF=0
  1797. )
  1798. if %shipC% LSS 0 (
  1799.     set shipC=0
  1800. )
  1801. if %shipB% LSS 0 (
  1802.     set shipB=0
  1803. )
  1804.  
  1805. rem ////// OTHER STATIONS ////
  1806. if %shipF1% LSS 0 (
  1807.     set shipF1=0
  1808. )
  1809. if %shipC1% LSS 0 (
  1810.     set shipC1=0
  1811. )
  1812. if %shipB1% LSS 0 (
  1813.     set shipB1=0
  1814. )
  1815. rem ////////
  1816. if %shipF2% LSS 0 (
  1817.     set shipF2=0
  1818. )
  1819. if %shipC2% LSS 0 (
  1820.     set shipC2=0
  1821. )
  1822. if %shipB2% LSS 0 (
  1823.     set shipB2=0
  1824. )
  1825. rem ///////
  1826. if %shipF3% LSS 0 (
  1827.     set shipF3=0
  1828. )
  1829. if %shipC3% LSS 0 (
  1830.     set shipC3=0
  1831. )
  1832. if %shipB3% LSS 0 (
  1833.     set shipB3=0
  1834. )
  1835. rem //////
  1836. if %shipF4% LSS 0 (
  1837.     set shipF4=0
  1838. )
  1839. if %shipC4% LSS 0 (
  1840.     set shipC4=0
  1841. )
  1842. if %shipB4% LSS 0 (
  1843.     set shipB4=0
  1844. )
  1845. rem /////
  1846. if %shipF5% LSS 0 (
  1847.     set shipF5=0
  1848. )
  1849. if %shipC5% LSS 0 (
  1850.     set shipC5=0
  1851. )
  1852. if %shipB5% LSS 0 (
  1853.     set shipB5=0
  1854. )
  1855. goto:eof
  1856.  
  1857. REM ///// GATHER ALL STATIONS INDIVIDUAL HIT LISTS AND DESIGNATE WHO THE DEFENDING STATION IS /////
  1858.  
  1859. :attackList1
  1860. if %attackTarget1% == 1 (
  1861.     set stationTarget1=%playername%
  1862.     set defending=1
  1863. )
  1864. if %attackTarget1% == 2 (
  1865.     set stationTarget1=%station2%
  1866.     set defending=3
  1867. )
  1868. if %attackTarget1% == 3 (
  1869.     set stationTarget1=%station3%
  1870.     set defending=4
  1871. )
  1872. if %attackTarget1% == 4 (
  1873.     set stationTarget1=%station4%
  1874.     set defending=5
  1875. )
  1876. if %attackTarget1% == 5 (
  1877.     set stationTarget1=%station5%
  1878.     set defending=6
  1879. )
  1880. goto:eof
  1881.  
  1882. :attackList2
  1883. if %attackTarget2% == 1 (
  1884.     set stationTarget2=%playername%
  1885.     set defending=1
  1886. )
  1887. if %attackTarget2% == 2 (
  1888.     set stationTarget2=%station1%
  1889.     set defending=2
  1890. )
  1891. if %attackTarget2% == 3 (
  1892.     set stationTarget2=%station3%
  1893.     set defending=4
  1894. )
  1895. if %attackTarget2% == 4 (
  1896.     set stationTarget2=%station4%
  1897.     set defending=5
  1898. )
  1899. if %attackTarget2% == 5 (
  1900.     set stationTarget2=%station5%
  1901.     set defending=6
  1902. )
  1903. goto:eof
  1904.  
  1905. :attackList3
  1906. if %attackTarget3% == 1 (
  1907.     set stationTarget3=%playername%
  1908.     set defending=1
  1909. )
  1910. if %attackTarget3% == 2 (
  1911.     set stationTarget3=%station1%
  1912.     set defending=2
  1913. )
  1914. if %attackTarget3% == 3 (
  1915.     set stationTarget3=%station2%
  1916.     set defending=3
  1917. )
  1918. if %attackTarget3% == 4 (
  1919.     set stationTarget3=%station4%
  1920.     set defending=5
  1921. )
  1922. if %attackTarget3% == 5 (
  1923.     set stationTarget3=%station5%
  1924.     set defending=6
  1925. )
  1926. goto:eof
  1927.  
  1928. :attackList4
  1929. if %attackTarget4% == 1 (
  1930.     set stationTarget4=%playername%
  1931.     set defending=1
  1932. )
  1933. if %attackTarget4% == 2 (
  1934.     set stationTarget4=%station1%
  1935.     set defending=2
  1936. )
  1937. if %attackTarget4% == 3 (
  1938.     set stationTarget4=%station2%
  1939.     set defending=3
  1940. )
  1941. if %attackTarget4% == 4 (
  1942.     set stationTarget4=%station3%
  1943.     set defending=4
  1944. )
  1945. if %attackTarget4% == 5 (
  1946.     set stationTarget4=%station5%
  1947.     set defending=6
  1948. )
  1949. goto:eof
  1950.  
  1951. :attackList5
  1952. if %attackTarget5% == 1 (
  1953.     set stationTarget5=%playername%
  1954.     set defending=1
  1955. )
  1956. if %attackTarget5% == 2 (
  1957.     set stationTarget5=%station1%
  1958.     set defending=2
  1959. )
  1960. if %attackTarget5% == 3 (
  1961.     set stationTarget5=%station2%
  1962.     set defending=3
  1963. )
  1964. if %attackTarget5% == 4 (
  1965.     set stationTarget5=%station3%
  1966.     set defending=4
  1967. )
  1968. if %attackTarget5% == 5 (
  1969.     set stationTarget5=%station4%
  1970.     set defending=5
  1971. )
  1972. goto:eof
  1973.  
  1974. :playerAttackList
  1975. if %playerTarget% == 1 (
  1976.     set stationTarget=%station1%
  1977.     set defending=2
  1978. )
  1979. if %playerTarget% == 2 (
  1980.     set stationTarget=%station2%
  1981.     set defending=3
  1982. )
  1983. if %playerTarget% == 3 (
  1984.     set stationTarget=%station3%
  1985.     set defending=4
  1986. )
  1987. if %playerTarget% == 4 (
  1988.     set stationTarget=%station4%
  1989.     set defending=5
  1990. )
  1991. if %playerTarget% == 5 (
  1992.     set stationTarget=%station5%
  1993.     set defending=6
  1994. )
  1995. goto:eof
  1996.  
  1997. REM ///// GATHER STATION STATISTICS OF DECIDED ATTACKER STATION AND DEFENDER STATION STATISTICS THEN PREPARE THEIR VARIABLES FOR ATTACK RESULTS DISPLAY /////
  1998.  
  1999. :gatherDefendStats
  2000. if %defending% == 1 (
  2001.     set shipsA2=%ships%
  2002.     set CPA2=%CP%
  2003.     set sectorDef=%sectors%
  2004.     set tact2=%tactics%
  2005.     set stationDefender=%playername%
  2006. )
  2007. if %defending% == 2 (
  2008.     set shipsA2=%ships1%
  2009.     set CPA2=%CP1%
  2010.     set sectorDef=%sectors1%
  2011.     set tact2=%station1Tact%
  2012.     set stationDefender=%station1%
  2013. )
  2014. if %defending% == 3 (
  2015.     set shipsA2=%ships2%
  2016.     set CPA2=%CP2%
  2017.     set sectorDef=%sectors2%
  2018.     set tact2=%station2Tact%
  2019.     set stationDefender=%station2%
  2020. )
  2021. if %defending% == 4 (
  2022.     set shipsA2=%ships3%
  2023.     set CPA2=%CP3%
  2024.     set sectorDef=%sectors3%
  2025.     set tact2=%station3Tact%
  2026.     set stationDefender=%station3%
  2027. )
  2028. if %defending% == 5 (
  2029.     set shipsA2=%ships4%
  2030.     set CPA2=%CP4%
  2031.     set sectorDef=%sectors4%
  2032.     set tact2=%station4Tact%
  2033.     set stationDefender=%station4%
  2034. )
  2035. if %defending% == 6 (
  2036.     set shipsA2=%ships5%
  2037.     set CPA2=%CP5%
  2038.     set sectorDef=%sectors5%
  2039.     set tact2=%station5Tact%
  2040.     set stationDefender=%station5%
  2041. )
  2042. goto:eof
  2043.  
  2044. :gatherAttackStats
  2045. if %attacker% == 1 (
  2046.     set stationAttacker=%playername%
  2047.     set shipsA1=%ships%
  2048.     set CPA1=%CP%
  2049.     set tact1=%tactics%
  2050. )
  2051. if %attacker% == 2 (
  2052.     set stationAttacker=%station1%
  2053.     set shipsA1=%ships1%
  2054.     set CPA1=%CP1%
  2055.     set tact1=%station1Tact%
  2056. )
  2057. if %attacker% == 3 (
  2058.     set stationAttacker=%station2%
  2059.     set shipsA1=%ships2%
  2060.     set CPA1=%CP2%
  2061.     set tact1=%station2Tact%
  2062. )
  2063. if %attacker% == 4 (
  2064.     set stationAttacker=%station3%
  2065.     set shipsA1=%ships3%
  2066.     set CPA1=%CP3%
  2067.     set tact1=%station3Tact%
  2068. )
  2069. if %attacker% == 5 (
  2070.     set stationAttacker=%station4%
  2071.     set shipsA1=%ships4%
  2072.     set CPA1=%CP4%
  2073.     set tact1=%station4Tact%
  2074. )
  2075. if %attacker% == 6 (
  2076.     set stationAttacker=%station5%
  2077.     set shipsA1=%ships5%
  2078.     set CPA1=%CP5%
  2079.     set tact1=%station5Tact%
  2080. )
  2081.  
  2082. goto:eof
  2083.  
  2084. REM ///// DISPLAY RANDOMIZED RESULTS BASED ON STATION CHOICES AND OTHER STATION STATISTICS DURING THEIR GENERATED OUTCOMES ////
  2085.  
  2086. :playerResult
  2087. call :gatherAttackStats
  2088. call :gatherDefendStats
  2089. call :playerAttackList
  2090. cls
  2091. echo ----------------------------
  2092. echo Station %playername% decided:%playerVoice%
  2093. echo.
  2094. echo %playerResults%
  2095. echo ----------------------------
  2096. pause>nul
  2097. if %playerChoice% EQU 1 (
  2098.     set attacker=1
  2099.     call :gatherDefendStats
  2100.     call :gatherAttackStats
  2101.     call :gatherCasualties
  2102.     set playerResult=0
  2103.     goto attackResults
  2104. )
  2105. set playerResult=0
  2106. goto station1Result
  2107. goto home
  2108.  
  2109. :station1Result
  2110. call :gatherAttackStats
  2111. call :gatherDefendStats
  2112. call :attackList1
  2113. cls
  2114. echo ----------------------------
  2115. echo Station %station1% decided:%AIchoice1%
  2116. echo.
  2117. echo %result1%
  2118. echo ----------------------------
  2119. pause>nul
  2120. if %AI1% EQU 2 (
  2121.     set attacker=2
  2122.     call :gatherDefendStats
  2123.     call :gatherAttackStats
  2124.     call :gatherCasualties
  2125.     set AI1Result=0
  2126.     goto attackResults
  2127. )
  2128. set AI1Result=0
  2129. goto station2Result
  2130. goto home
  2131.  
  2132. :station2Result
  2133. call :gatherAttackStats
  2134. call :gatherDefendStats
  2135. call :attackList2
  2136. cls
  2137. echo ----------------------------
  2138. echo Station %station2% decided:%AIchoice2%
  2139. echo.
  2140. echo %result2%
  2141. echo ----------------------------
  2142. pause>nul
  2143. if %AI2% EQU 2 (
  2144.     set attacker=3
  2145.     call :gatherDefendStats
  2146.     call :gatherAttackStats
  2147.     call :gatherCasualties
  2148.     set AI2Result=0
  2149.     goto attackResults
  2150. )
  2151. set AI2Result=0
  2152. goto station3Result
  2153. goto home
  2154.  
  2155. :station3Result
  2156. call :gatherAttackStats
  2157. call :gatherDefendStats
  2158. call :attackList3
  2159. cls
  2160. echo ----------------------------
  2161. echo Station %station3% decided:%AIchoice3%
  2162. echo.
  2163. echo %result3%
  2164. echo ----------------------------
  2165. pause>nul
  2166. if %AI3% EQU 2 (
  2167.     set attacker=4
  2168.     call :gatherDefendStats
  2169.     call :gatherAttackStats
  2170.     call :gatherCasualties
  2171.     set AI3Result=0
  2172.     goto attackResults
  2173. )
  2174. set AI3Result=0
  2175. goto station4Result
  2176. goto home
  2177.  
  2178. :station4Result
  2179. call :gatherAttackStats
  2180. call :gatherDefendStats
  2181. call :attackList4
  2182. cls
  2183. echo ----------------------------
  2184. echo Station %station4% decided:%AIchoice4%
  2185. echo.
  2186. echo %result4%
  2187. echo ----------------------------
  2188. pause>nul
  2189. if %AI4% EQU 2 (
  2190.     set attacker=5
  2191.     call :gatherDefendStats
  2192.     call :gatherAttackStats
  2193.     call :gatherCasualties
  2194.     set AI4Result=0
  2195.     goto attackResults
  2196. )
  2197. set AI4Result=0
  2198. goto station5Result
  2199. goto home
  2200.  
  2201. :station5Result
  2202. call :gatherAttackStats
  2203. call :gatherDefendStats
  2204. call :attackList5
  2205. cls
  2206. echo ----------------------------
  2207. echo Station %station5% decided:%AIchoice5%
  2208. echo.
  2209. echo %result5%
  2210. echo ----------------------------
  2211. pause>nul
  2212. if %AI5% EQU 2 (
  2213.     set attacker=6
  2214.     call :gatherDefendStats
  2215.     call :gatherAttackStats
  2216.     call :gatherCasualties
  2217.     set AI5Result=0
  2218.     goto attackResults
  2219. )
  2220. set AI5Result=0
  2221. goto home
  2222.  
  2223. :attackResults
  2224. call :getShipStats1
  2225. call :getShipStats2
  2226. call :getShipStats3
  2227. call :getShipStats4
  2228. call :getShipStats5
  2229. call :gatherAttackStats
  2230. call :gatherDefendStats
  2231. call :getShipQuantity
  2232. call :cleanLossesAttacking
  2233. call :cleanLossesDefending
  2234. cls
  2235. echo ------------------------
  2236. echo    Station %stationAttacker%
  2237. echo           VS
  2238. echo    Station %stationDefender%
  2239. echo ------------------------
  2240. echo Station %stationAttacker% attacked %stationDefender% with their Fleet of %shipsA1% CP:%CPA1%
  2241. echo Station %stationDefender% defended %sectorDef% sectors with a Fleet of %shipsA2% CP:%CPA2%
  2242. echo ------------------------
  2243. echo Loss Results:
  2244. echo Station %stationAttacker%: Attacking Fleet, Tactics:%tact1%
  2245. echo -%LshipF1% Fighters
  2246. echo -%LshipC1% Corvettes
  2247. echo -%LshipB1% Battleships
  2248. echo :-----------------------:
  2249. echo Station %stationDefender%: Defending Fleet, Tactics:%tact2%
  2250. echo -%LshipF2% Fighters
  2251. echo -%LshipC2% Corvettes
  2252. echo -%LshipB2% Battleships
  2253. pause>nul
  2254. call :applyLosses
  2255. if %playerResult% EQU 1 (
  2256.     set playerResult=0
  2257.     call :gatherAttackStats
  2258.     call :gatherDefendStats
  2259.     goto playerResulted
  2260. )
  2261. if %AI1Result% EQU 1 (
  2262.     set AI1Result=0
  2263.     call :gatherAttackStats
  2264.     call :gatherDefendStats
  2265.     goto station1Result
  2266. )
  2267. if %AI2Result% EQU 1 (
  2268.     set AI2Result=0
  2269.     call :gatherAttackStats
  2270.     call :gatherDefendStats
  2271.     goto station2Result
  2272. )
  2273. if %AI3Result% EQU 1 (
  2274.     set AI3Result=0
  2275.     call :gatherAttackStats
  2276.     call :gatherDefendStats
  2277.     goto station3Result
  2278. )
  2279. if %AI4Result% EQU 1 (
  2280.     set AI4Result=0
  2281.     call :gatherAttackStats
  2282.     call :gatherDefendStats
  2283.     goto station4Result
  2284. )
  2285. if %AI5Result% EQU 1 (
  2286.     set AI5Result=0
  2287.     call :gatherAttackStats
  2288.     call :gatherDefendStats
  2289.     goto station5Result
  2290. )
  2291. goto home
  2292.  
  2293. :cleanLossesAttacking
  2294. if %attacker% == 1 (
  2295.     if %shipF% LEQ 0 (
  2296.     set LshipF1=0
  2297.     )
  2298.     if %shipC% LEQ 0 (
  2299.     set LshipC1=0
  2300.     )
  2301.     if %shipB% LEQ 0 (
  2302.     set LshipB1=0
  2303.     )
  2304. )
  2305. if %attacker% == 2 (
  2306.     if %shipF1% LEQ 0 (
  2307.     set LshipF1=0
  2308.     )
  2309.     if %shipC1% LEQ 0 (
  2310.     set LshipC1=0
  2311.     )
  2312.     if %shipB1% LEQ 0 (
  2313.     set LshipB1=0
  2314.     )
  2315. )
  2316. if %attacker% == 3 (
  2317.     if %shipF2% LEQ 0 (
  2318.     set LshipF1=0
  2319.     )
  2320.     if %shipC2% LEQ 0 (
  2321.     set LshipC1=0
  2322.     )
  2323.     if %shipB2% LEQ 0 (
  2324.     set LshipB1=0
  2325.     )
  2326. )
  2327. if %attacker% == 4 (
  2328.     if %shipF3% LEQ 0 (
  2329.     set LshipF1=0
  2330.     )
  2331.     if %shipC3% LEQ 0 (
  2332.     set LshipC1=0
  2333.     )
  2334.     if %shipB3% LEQ 0 (
  2335.     set LshipB1=0
  2336.     )
  2337. )
  2338. if %attacker% == 5 (
  2339.     if %shipF4% LEQ 0 (
  2340.     set LshipF1=0
  2341.     )
  2342.     if %shipC4% LEQ 0 (
  2343.     set LshipC1=0
  2344.     )
  2345.     if %shipB4% LEQ 0 (
  2346.     set LshipB1=0
  2347.     )
  2348. )
  2349. if %attacker% == 6 (
  2350.     if %shipF5% LEQ 0 (
  2351.     set LshipF1=0
  2352.     )
  2353.     if %shipC5% LEQ 0 (
  2354.     set LshipC1=0
  2355.     )
  2356.     if %shipB5% LEQ 0 (
  2357.     set LshipB1=0
  2358.     )
  2359. )
  2360. goto:eof
  2361.  
  2362. :cleanLossesDefending
  2363. if %defending% == 1 (
  2364.     if %shipF% LEQ 0 (
  2365.     set LshipF2=0
  2366.     )
  2367.     if %shipC% LEQ 0 (
  2368.     set LshipC2=0
  2369.     )
  2370.     if %shipB% LEQ 0 (
  2371.     set LshipB2=0
  2372.     )
  2373. )
  2374. if %defending% == 2 (
  2375.     if %shipF1% LEQ 0 (
  2376.     set LshipF2=0
  2377.     )
  2378.     if %shipC1% LEQ 0 (
  2379.     set LshipC2=0
  2380.     )
  2381.     if %shipB1% LEQ 0 (
  2382.     set LshipB2=0
  2383.     )
  2384. )
  2385. if %defending% == 3 (
  2386.     if %shipF2% LEQ 0 (
  2387.     set LshipF2=0
  2388.     )
  2389.     if %shipC2% LEQ 0 (
  2390.     set LshipC2=0
  2391.     )
  2392.     if %shipB2% LEQ 0 (
  2393.     set LshipB2=0
  2394.     )
  2395. )
  2396. if %defending% == 4 (
  2397.     if %shipF3% LEQ 0 (
  2398.     set LshipF2=0
  2399.     )
  2400.     if %shipC3% LEQ 0 (
  2401.     set LshipC2=0
  2402.     )
  2403.     if %shipB3% LEQ 0 (
  2404.     set LshipB2=0
  2405.     )
  2406. )
  2407. if %defending% == 5 (
  2408.     if %shipF4% LEQ 0 (
  2409.     set LshipF2=0
  2410.     )
  2411.     if %shipC4% LEQ 0 (
  2412.     set LshipC2=0
  2413.     )
  2414.     if %shipB4% LEQ 0 (
  2415.     set LshipB2=0
  2416.     )
  2417. )
  2418. if %defending% == 6 (
  2419.     if %shipF5% LEQ 0 (
  2420.     set LshipF2=0
  2421.     )
  2422.     if %shipC5% LEQ 0 (
  2423.     set LshipC2=0
  2424.     )
  2425.     if %shipB5% LEQ 0 (
  2426.     set LshipB2=0
  2427.     )
  2428. )
  2429.  
  2430. goto:eof
  2431.  
  2432.  
  2433.  
  2434. :gatherCasualties
  2435. set /a RLshipF1=%random%%%25+1
  2436. set /a LshipF1=%RLshipF1%+(%tact2%*6)
  2437. set /a RLshipC1=%random%%%15+1
  2438. set /a LshipC1=%RLshipC1%+(%tact2%*5)
  2439. set /a RLshipB1=%random%%%5+1
  2440. set /a LshipB1=%RLshipB1%+(%tact2%*5)
  2441.  
  2442. set /a RLshipF2=%random%%%25+1
  2443. set /a LshipF2=%RLshipF2%+(%tact1%*4)
  2444. set /a RLshipC2=%random%%%15+1
  2445. set /a LshipC2=%RLshipC2%+(%tact1%*3)
  2446. set /a RLshipB2=%random%%%5+1
  2447. set /a LshipB2=%RLshipB2%+(%tact1%*3)
  2448. goto:eof
  2449.  
  2450. rem Prevent Casualties from applying when a Station not longer has a fleet.
  2451.  
  2452. :applyLosses
  2453. if %defending% == 1 (
  2454.     set /a shipF-=%LshipF2%
  2455.     set /a shipC-=%LshipC2%
  2456.     set /a shipB-=%LshipB2%
  2457. )
  2458. if %defending% == 2 (
  2459.     set /a shipF1-=%LshipF2%
  2460.     set /a shipC1-=%LshipC2%
  2461.     set /a shipB1-=%LshipB2%
  2462. )
  2463. if %defending% == 3 (
  2464.     set /a shipF2-=%LshipF2%
  2465.     set /a shipC2-=%LshipC2%
  2466.     set /a shipB2-=%LshipB2%
  2467. )
  2468. if %defending% == 4 (
  2469.     set /a shipF3-=%LshipF2%
  2470.     set /a shipC3-=%LshipC2%
  2471.     set /a shipB3-=%LshipB2%
  2472. )
  2473. if %defending% == 5 (
  2474.     set /a shipF4-=%LshipF2%
  2475.     set /a shipC4-=%LshipC2%
  2476.     set /a shipB4-=%LshipB2%
  2477. )
  2478. if %defending% == 6 (
  2479.     set /a shipF5-=%LshipF2%
  2480.     set /a shipC5-=%LshipC2%
  2481.     set /a shipB5-=%LshipB2%
  2482. )
  2483. if %attacker% == 1 (
  2484.     set /a shipF-=%LshipF1%
  2485.     set /a shipC-=%LshipC1%
  2486.     set /a shipB-=%LshipB1%
  2487. )
  2488. if %attacker% == 2 (
  2489.     set /a shipF1-=%LshipF1%
  2490.     set /a shipC1-=%LshipC1%
  2491.     set /a shipB1-=%LshipB1%
  2492. )
  2493. if %attacker% == 3 (
  2494.     set /a shipF2-=%LshipF1%
  2495.     set /a shipC2-=%LshipC1%
  2496.     set /a shipB2-=%LshipB1%
  2497. )
  2498. if %attacker% == 4 (
  2499.     set /a shipF3-=%LshipF1%
  2500.     set /a shipC3-=%LshipC1%
  2501.     set /a shipB3-=%LshipB1%
  2502. )
  2503. if %attacker% == 5 (
  2504.     set /a shipF4-=%LshipF1%
  2505.     set /a shipC4-=%LshipC1%
  2506.     set /a shipB4-=%LshipB1%
  2507. )
  2508. if %attacker% == 6 (
  2509.     set /a shipF5-=%LshipF1%
  2510.     set /a shipC5-=%LshipC1%
  2511.     set /a shipB5-=%LshipB1%
  2512. )
  2513. goto:eof
  2514.  
  2515. REM ///////            EVERYTHING FOR STATION DIPLOMACY                ////////
  2516.  
  2517. :getCurrentStance
  2518. if %stance% EQU 1 (
  2519.     set currentStance=At War
  2520. )
  2521. if %stance% EQU 2 (
  2522.     set currentStance=At Peace
  2523. )
  2524. if %stance% EQU 3 (
  2525.     set currentStance=Allied
  2526. )
  2527. goto:eof
  2528.  
  2529. :getAttackingTarget
  2530. if %attackTarget% EQU 1 (
  2531.     set playerAttackTarget=Station %station1% %stanced1%
  2532. )
  2533. if %attackTarget% EQU 2 (
  2534.     set playerAttackTarget=Station %station2% %stanced2%
  2535. )
  2536. if %attackTarget% EQU 3 (
  2537.     set playerAttackTarget=Station %station3% %stanced3%
  2538. )
  2539. if %attackTarget% EQU 4 (
  2540.     set playerAttackTarget=Station %station4% %stanced4%
  2541. )
  2542. if %attackTarget% EQU 5 (
  2543.     set playerAttackTarget=Station %station5% %stanced5%
  2544. )
  2545. goto:eof
  2546.  
  2547. :diplomacy
  2548. call :getStationStances
  2549. call :getAttackingTarget
  2550. call :getTopicStation
  2551. call :getCurrentStance
  2552. call :getPlayerDeath
  2553. cls
  2554. echo ----------------------------------------------------------------------------------------------
  2555. echo  Credits:%credits% /\ Ships:%ships% /\ Sectors:%sectors% /\ Public Favor:%PF% /\ Tactics:%tactics% /\ Year:%year%
  2556. echo ----------------------------------------------------------------------------------------------
  2557. echo  Diplomacy with Others
  2558. echo ------------------------
  2559. echo Station under Topic: Station %topicStation%
  2560. echo Current Standing:%currentStance%
  2561. echo Reputation:%currentRep%
  2562. echo Sectors:%currentSectors%
  2563. echo Combat Power:%currentCP%
  2564. echo ------------------------
  2565. echo 1) Agreements W
  2566. echo 2) Gifting
  2567. echo 3) Diplomatics
  2568. echo 4) Spy Station Roster
  2569. echo 5) Discuss another Station
  2570. echo 6) Select Target to Attack
  2571. echo       Attacking:%playerAttackTarget%
  2572. echo 0) Return
  2573. echo ------------------------
  2574. choice /c 1234560 /n >nul
  2575. if %errorlevel% == 1 (
  2576.     goto agreements
  2577. )
  2578. if %errorlevel% == 2 (
  2579.     goto gifting
  2580. )
  2581. if %errorlevel% == 3 (
  2582.     goto diplomatics
  2583. )
  2584. if %errorlevel% == 4 (
  2585.     call :getTopicStation
  2586.     goto stationInfo
  2587. )
  2588. if %errorlevel% == 5 (
  2589.     echo 1-Station %station1%
  2590.     echo 2-Station %station2%
  2591.     echo 3-Station %station3%
  2592.     echo 4-Station %station4%
  2593.     echo 5-Station %station5%
  2594.     set /p stationTopic=Which Station By # :
  2595.     goto diplomacy
  2596. )
  2597. if %errorlevel% == 6 (
  2598.     echo 1-Station %station1% %stanced1%
  2599.     echo 2-Station %station2% %stanced2%
  2600.     echo 3-Station %station3% %stanced3%
  2601.     echo 4-Station %station4% %stanced4%
  2602.     echo 5-Station %station5% %stanced5%
  2603.     set /p attackTarget=Set Attack Target:
  2604. )
  2605. if %errorlevel% == 7 (
  2606.     goto home
  2607. )
  2608. goto diplomacy
  2609.  
  2610. :getGiftingStation
  2611. if %giftTo% == 1 (
  2612.     set giftingStation=Station %station1%
  2613.     set giftingRep=%rep1%
  2614. )
  2615. if %giftTo% == 2 (
  2616.     set giftingStation=Station %station2%
  2617.     set giftingRep=%rep2%
  2618. )
  2619. if %giftTo% == 3 (
  2620.     set giftingStation=Station %station3%
  2621.     set giftingRep=%rep3%
  2622. )
  2623. if %giftTo% == 4 (
  2624.     set giftingStation=Station %station4%
  2625.     set giftingRep=%rep4%
  2626. )
  2627. if %giftTo% == 5 (
  2628.     set giftingStation=Station %station5%
  2629.     set giftingRep=%rep5%
  2630. )
  2631. goto:eof
  2632.  
  2633. :gifting
  2634. call :getGiftingStation
  2635. cls
  2636. echo ----------------------------------------------------------------------------------------------
  2637. echo  Credits:%credits% /\ Ships:%ships% /\ Sectors:%sectors% /\ Public Favor:%PF% /\ Tactics:%tactics% /\ Year:%year%
  2638. echo ----------------------------------------------------------------------------------------------
  2639. echo   Gifting to Others
  2640. echo ---------------------
  2641. echo 1) Select Target Station
  2642. echo 2) Gift Sector -1 +40 Relation
  2643. echo 3) Gift Tactical Knowledge -1 Tactics +55 Relation
  2644. echo 0) Return
  2645. echo ---------------------
  2646. echo Target: %giftingStation% Reputation:%giftingRep%
  2647. choice /c 1230 /n >nul
  2648. if %errorlevel% == 1 (
  2649.     echo 1-Station %station1%
  2650.     echo 2-Station %station2%
  2651.     echo 3-Station %station3%
  2652.     echo 4-Station %station4%
  2653.     echo 5-Station %station5%
  2654.     set /p giftTo=Choose by #:
  2655. )
  2656. if %errorlevel% == 2 (
  2657.     if %giftTo% EQU 1 (
  2658.         if %sectors% LSS 2 (
  2659.             set msg=Dangerously Low Sectors!
  2660.             goto gifting
  2661.         )
  2662.         set /a sectors-=1
  2663.         set /a rep1+=20
  2664.         set /a sectors1+=1
  2665.     )
  2666.    
  2667.     if %giftTo% EQU 2 (
  2668.         if %sectors% LSS 2 (
  2669.             set msg=Dangerously Low Sectors!
  2670.             goto gifting
  2671.         )
  2672.         set /a sectors-=1
  2673.         set /a rep2+=20
  2674.         set /a sectors2+=1
  2675.     )
  2676.    
  2677.     if %giftTo% EQU 3 (
  2678.         if %sectors% LSS 2 (
  2679.             set msg=Dangerously Low Sectors!
  2680.             goto gifting
  2681.         )
  2682.         set /a sectors-=1
  2683.         set /a rep3+=20
  2684.         set /a sectors3+=1
  2685.     )
  2686.    
  2687.     if %giftTo% EQU 4 (
  2688.         if %sectors% LSS 2 (
  2689.             set msg=Dangerously Low Sectors!
  2690.             goto gifting
  2691.         )
  2692.         set /a sectors-=1
  2693.         set /a rep4+=20
  2694.         set /a sectors4+=1
  2695.     )
  2696.    
  2697.     if %giftTo% EQU 5 (
  2698.         if %sectors% LSS 2 (
  2699.             set msg=Dangerously Low Sectors!
  2700.             goto gifting
  2701.         )
  2702.         set /a sectors-=1
  2703.         set /a rep5+=20
  2704.         set /a sectors5+=1
  2705.     )
  2706. )
  2707. if %errorlevel% == 3 (
  2708. if %giftTo% EQU 1 (
  2709.         if %tactics% LSS 1 (
  2710.             set msg=Not Enough Tactics!
  2711.             goto gifting
  2712.         )
  2713.         set /a tactics-=1
  2714.         set /a rep1+=35
  2715.         set /a station1Tact+=1
  2716.     )
  2717.    
  2718.     if %giftTo% EQU 2 (
  2719.         if %tactics% LSS 1 (
  2720.             set msg=Not Enough Tactics!
  2721.             goto gifting
  2722.         )
  2723.         set /a tactics-=1
  2724.         set /a rep2+=35
  2725.         set /a station2Tact+=1
  2726.     )
  2727.    
  2728.     if %giftTo% EQU 3 (
  2729.         if %tactics% LSS 1 (
  2730.             set msg=Not Enough Tactics!
  2731.             goto gifting
  2732.         )
  2733.         set /a tactics-=1
  2734.         set /a rep3+=35
  2735.         set /a station3Tact+=1
  2736.     )
  2737.    
  2738.     if %giftTo% EQU 4 (
  2739.         if %tactics% LSS 1 (
  2740.             set msg=Not Enough Tactics!
  2741.             goto gifting
  2742.         )
  2743.         set /a tactics-=1
  2744.         set /a rep4+=35
  2745.         set /a station4Tact+=1
  2746.     )
  2747.    
  2748.     if %giftTo% EQU 5 (
  2749.         if %tactics% LSS 1 (
  2750.             set msg=Not Enough Tactics!
  2751.             goto gifting
  2752.         )
  2753.         set /a tactics-=1
  2754.         set /a rep5+=35
  2755.         set /a station5Tact+=1
  2756.     )
  2757. )
  2758. if %errorlevel% == 4 (
  2759. goto diplomacy
  2760. )
  2761. goto gifting
  2762.  
  2763. :diplomatics
  2764. call :getTopicStation
  2765. call :getCurrentStance
  2766. call :getPlayerDeath
  2767. cls
  2768. echo ----------------------------------------------------------------------------------------------
  2769. echo  Credits:%credits% /\ Ships:%ships% /\ Sectors:%sectors% /\ Public Favor:%PF% /\ Tactics:%tactics% /\ Year:%year%
  2770. echo ----------------------------------------------------------------------------------------------
  2771. echo  Diplomacy with Others
  2772. echo ------------------------
  2773. echo Station under Topic: Station %topicStation%
  2774. echo Current Standing:%currentStance%
  2775. echo Reputation:%currentRep%
  2776. echo Sectors:%currentSectors%
  2777. echo Combat Power:%currentCP%
  2778. echo ------------------------
  2779. echo    1) Form Alliance +50 Reputation
  2780. echo    2) Propose Peace -1 Sector 0 Relation
  2781. echo    3) Declare War -75 Reputation
  2782. echo    0) Return
  2783. echo ------------------------
  2784. echo Info:%msg%
  2785. choice /c 1230 /n >nul
  2786.  
  2787. if %errorlevel% == 1 (
  2788.     if %stationTopic% EQU 1 (
  2789.         if %stance1% EQU 1 (
  2790.             set msg=Must Make Peace First.
  2791.             goto diplomatics
  2792.         )
  2793.         if %rep1% LSS 50 (
  2794.             set msg=Low Reputation!
  2795.             goto diplomatics
  2796.         )
  2797.         if %stance1% EQU 3 (
  2798.             set msg=Already Allied.
  2799.             goto diplomatics
  2800.         ) else (set msg= )
  2801.         set /a rep1+=50
  2802.         set stance1=3
  2803.         goto diplomatics
  2804.     )
  2805.    
  2806.     if %stationTopic% EQU 2 (
  2807.         if %stance2% EQU 1 (
  2808.             set msg=Must Make Peace First.
  2809.             goto diplomatics
  2810.         )
  2811.         if %rep2% LSS 50 (
  2812.             set msg=Low Reputation!
  2813.             goto diplomatics
  2814.         )
  2815.         if %stance2% EQU 3 (
  2816.             set msg=Already Allied.
  2817.             goto diplomatics
  2818.         ) else (set msg= )
  2819.         set /a rep2+=50
  2820.         set stance2=3
  2821.         goto diplomatics
  2822.     )
  2823.    
  2824.     if %stationTopic% EQU 3 (
  2825.         if %stance3% EQU 1 (
  2826.             set msg=Must Make Peace First.
  2827.             goto diplomatics
  2828.         )
  2829.         if %rep3% LSS 50 (
  2830.             set msg=Low Reputation!
  2831.             goto diplomatics
  2832.         )
  2833.         if %stance3% EQU 3 (
  2834.             set msg=Already Allied.
  2835.             goto diplomatics
  2836.         ) else (set msg= )
  2837.         set /a rep3+=50
  2838.         set stance3=3
  2839.         goto diplomatics
  2840.     )
  2841.    
  2842.     if %stationTopic% EQU 4 (
  2843.         if %stance4% EQU 1 (
  2844.             set msg=Must Make Peace First.
  2845.             goto diplomatics
  2846.         )
  2847.         if %rep4% LSS 50 (
  2848.             set msg=Low Reputation!
  2849.             goto diplomatics
  2850.         )
  2851.         if %stance4% EQU 3 (
  2852.             set msg=Already Allied.
  2853.             goto diplomatics
  2854.         ) else (set msg= )
  2855.         set /a rep4+=50
  2856.         set stance4=3
  2857.         goto diplomatics
  2858.     )
  2859.    
  2860.     if %stationTopic% EQU 5 (
  2861.         if %stance5% EQU 1 (
  2862.             set msg=Must Make Peace First.
  2863.             goto diplomatics
  2864.         )
  2865.         if %rep5% LSS 50 (
  2866.             set msg=Low Reputation!
  2867.             goto diplomatics
  2868.         )
  2869.         if %stance5% EQU 3 (
  2870.             set msg=Already Allied.
  2871.             goto diplomatics
  2872.         ) else (set msg= )
  2873.         set /a rep5+=50
  2874.         set stance5=3
  2875.     )
  2876.     goto diplomatics
  2877. )
  2878.  
  2879. if %errorlevel% == 2 (
  2880.     if %stationTopic% EQU 1 (
  2881.         if %stance1% EQU 2 (
  2882.             set msg=Already at Peace.
  2883.             goto diplomatics
  2884.         )
  2885.         set rep1=0
  2886.         set stance1=2
  2887.         set /a sectors-=1
  2888.         set /a sectors1+=1
  2889.         goto diplomatics
  2890.     )
  2891.    
  2892.     if %stationTopic% EQU 2 (
  2893.         if %stance2% EQU 2 (
  2894.             set msg=Already at Peace.
  2895.             goto diplomatics
  2896.         )
  2897.         set rep2=0
  2898.         set stance2=2
  2899.         set /a sectors-=1
  2900.         set /a sectors2+=1
  2901.         goto diplomatics
  2902.     )
  2903.    
  2904.     if %stationTopic% EQU 3 (
  2905.         if %stance3% EQU 2 (
  2906.             set msg=Already at Peace.
  2907.             goto diplomatics
  2908.         )
  2909.         set rep3=0
  2910.         set stance3=2
  2911.         set /a sectors-=1
  2912.         set /a sectors3+=1
  2913.         goto diplomatics
  2914.     )
  2915.    
  2916.     if %stationTopic% EQU 4 (
  2917.         if %stance4% EQU 2 (
  2918.             set msg=Already at Peace.
  2919.             goto diplomatics
  2920.         )
  2921.         set rep4=0
  2922.         set stance4=2
  2923.         set /a sectors-=1
  2924.         set /a sectors4+=1
  2925.         goto diplomatics
  2926.     )
  2927.    
  2928.     if %stationTopic% EQU 5 (
  2929.         if %stance5% EQU 2 (
  2930.             set msg=Already at Peace.
  2931.             goto diplomatics
  2932.         )
  2933.         set rep5=0
  2934.         set stance5=2
  2935.         set /a sectors-=1
  2936.         set /a sectors5+=1
  2937.     )
  2938.     goto diplomatics
  2939. )
  2940.  
  2941. if %errorlevel% == 3 (
  2942.     if %stationTopic% EQU 1 (
  2943.         if %stance1% EQU 1 (
  2944.             set msg=Already at War.
  2945.             goto diplomatics
  2946.         )
  2947.         set /a rep1-=75
  2948.         set stance1=1
  2949.     )
  2950.    
  2951.     if %stationTopic% EQU 2 (
  2952.         if %stance2% EQU 1 (
  2953.             set msg=Already at War.
  2954.             goto diplomatics
  2955.         )
  2956.         set /a rep2-=75
  2957.         set stance2=1
  2958.     )
  2959.    
  2960.     if %stationTopic% EQU 3 (
  2961.         if %stance3% EQU 1 (
  2962.             set msg=Already at War.
  2963.             goto diplomatics
  2964.         )
  2965.         set /a rep3-=75
  2966.         set stance3=1
  2967.     )
  2968.    
  2969.     if %stationTopic% EQU 4 (
  2970.         if %stance4% EQU 1 (
  2971.             set msg=Already at War.
  2972.             goto diplomatics
  2973.         )
  2974.         set /a rep4-=75
  2975.         set stance4=1
  2976.     )
  2977.    
  2978.     if %stationTopic% EQU 5 (
  2979.         if %stance5% EQU 1 (
  2980.             set msg=Already at War.
  2981.             goto diplomatics
  2982.         )
  2983.         set /a rep5-=75
  2984.         set stance5=1
  2985.     )
  2986.     goto diplomatics
  2987. )
  2988. if %errorlevel% == 4 (
  2989. goto diplomacy
  2990. )
  2991. goto diplomatics
  2992.  
  2993. :getAdvice
  2994. if %CP% GTR %currentCP% (
  2995. set A=we are stronger than them.
  2996. )
  2997. if %CP% EQU %currentCP% (
  2998. set A=they are of equal power we should have caution.
  2999. )
  3000. if %CP% LSS %currentCP% (
  3001. set A=if we face them we'll suffer casualities.
  3002. )
  3003. goto:eof
  3004.  
  3005. :stationInfo
  3006. cls
  3007. call :getAdvice
  3008. echo ----------------------------------------------------------------------------------------------
  3009. echo  Credits:%credits% /\ Ships:%ships% /\ Sectors:%sectors% /\ Public Favor:%PF% /\ Tactics:%tactics% /\ Year:%year%
  3010. echo ----------------------------------------------------------------------------------------------
  3011. echo CP:%currentCP%
  3012. echo Total Ships:%currentShips%
  3013. echo.
  3014. echo Fighters:%currentShipF%
  3015. echo Corvettes:%currentShipC%
  3016. echo Battleships:%currentShipB%
  3017. echo -----------------------
  3018. echo Advice: Our Current CP is %CP% -You:::Them- %currentCP% relative to theirs %A%
  3019. pause>nul
  3020. goto diplomacy
  3021.  
  3022. REM //// GET STATIONS INDIVIDUAL SHIP COMBAT POWER AND MULTIPLY PER SHIP FOR THAT STATIONS STATISTICS ////
  3023.  
  3024. :getShipStats1
  3025. set /a shipFS1=15*%shipF1%
  3026. set /a shipCS1=65*%shipC1%
  3027. set /a shipBS1=145*%shipB1%
  3028. set /a CP1=%shipFS1%+%shipCS1%+%shipBS1%
  3029. set /a ships1=%shipF1%+%shipC1%+%shipB1%
  3030. goto:eof
  3031.  
  3032. :getShipStats2
  3033. set /a shipFS2=15*%shipF2%
  3034. set /a shipCS2=65*%shipC2%
  3035. set /a shipBS2=145*%shipB2%
  3036. set /a CP2=%shipFS2%+%shipCS2%+%shipBS2%
  3037. set /a ships2=%shipF2%+%shipC2%+%shipB2%
  3038. goto:eof
  3039.  
  3040. :getShipStats3
  3041. set /a shipFS3=15*%shipF3%
  3042. set /a shipCS3=65*%shipC3%
  3043. set /a shipBS3=145*%shipB3%
  3044. set /a CP3=%shipFS3%+%shipCS3%+%shipBS3%
  3045. set /a ships3=%shipF3%+%shipC3%+%shipB3%
  3046. goto:eof
  3047.  
  3048. :getShipStats4
  3049. set /a shipFS4=15*%shipF4%
  3050. set /a shipCS4=65*%shipC4%
  3051. set /a shipBS4=145*%shipB4%
  3052. set /a CP4=%shipFS4%+%shipCS4%+%shipBS4%
  3053. set /a ships4=%shipF4%+%shipC4%+%shipB4%
  3054. goto:eof
  3055.  
  3056. :getShipStats5
  3057. set /a shipFS5=15*%shipF5%
  3058. set /a shipCS5=65*%shipC5%
  3059. set /a shipBS5=145*%shipB5%
  3060. set /a CP5=%shipFS5%+%shipCS5%+%shipBS5%
  3061. set /a ships5=%shipF5%+%shipC5%+%shipB5%
  3062. goto:eof
  3063.  
  3064. :getTopicStation
  3065. if %stationTopic% EQU 1 (
  3066.     set topicStation=%station1%
  3067.     set currentRep=%rep1%
  3068.     set currentSectors=%sectors1%
  3069.     set currentShipF=%shipF1%
  3070.     set currentShipC=%shipC1%
  3071.     set currentShipB=%shipB1%
  3072.     set /a currentShips=%shipF1%+%shipC1%+%shipB1%
  3073.     call :getShipStats1
  3074.     set /a currentCP=%shipFS1%+%shipCS1%+%shipBS1%
  3075.     if %stance1% EQU 1 (
  3076.         set stance=1
  3077.     )
  3078.     if %stance1% EQU 2 (
  3079.         set stance=2
  3080.     )
  3081.     if %stance1% EQU 3 (
  3082.         set stance=3
  3083.     )
  3084. )
  3085. if %stationTopic% EQU 2 (
  3086.     set topicStation=%station2%
  3087.     set currentRep=%rep2%
  3088.     set currentSectors=%sectors2%
  3089.     set currentShipF=%shipF2%
  3090.     set currentShipC=%shipC2%
  3091.     set currentShipB=%shipB2%
  3092.     set /a currentShips=%shipF2%+%shipC2%+%shipB2%
  3093.     call :getShipStats2
  3094.     set /a currentCP=%shipFS2%+%shipCS2%+%shipBS2%
  3095.     if %stance2% EQU 1 (
  3096.         set stance=1
  3097.     )
  3098.     if %stance2% EQU 2 (
  3099.         set stance=2
  3100.     )
  3101.     if %stance2% EQU 3 (
  3102.         set stance=3
  3103.     )
  3104. )
  3105. if %stationTopic% EQU 3 (
  3106.     set topicStation=%station3%
  3107.     set currentRep=%rep3%
  3108.     set currentSectors=%sectors3%
  3109.     set currentShipF=%shipF3%
  3110.     set currentShipC=%shipC3%
  3111.     set currentShipB=%shipB3%
  3112.     set /a currentShips=%shipF3%+%shipC3%+%shipB3%
  3113.     call :getShipStats3
  3114.     set /a currentCP=%shipFS3%+%shipCS3%+%shipBS3%
  3115.     if %stance3% EQU 1 (
  3116.         set stance=1
  3117.     )
  3118.     if %stance3% EQU 2 (
  3119.         set stance=2
  3120.     )
  3121.     if %stance3% EQU 3 (
  3122.         set stance=3
  3123.     )
  3124. )
  3125. if %stationTopic% EQU 4 (
  3126.     set topicStation=%station4%
  3127.     set currentRep=%rep4%
  3128.     set currentSectors=%sectors4%
  3129.     set currentShipF=%shipF4%
  3130.     set currentShipC=%shipC4%
  3131.     set currentShipB=%shipB4%
  3132.     set /a currentShips=%shipF4%+%shipC4%+%shipB4%
  3133.     call :getShipStats4
  3134.     set /a currentCP=%shipFS4%+%shipCS4%+%shipBS4%
  3135.     if %stance4% EQU 1 (
  3136.         set stance=1
  3137.     )
  3138.     if %stance4% EQU 2 (
  3139.         set stance=2
  3140.     )
  3141.     if %stance4% EQU 3 (
  3142.         set stance=3
  3143.     )
  3144. )
  3145. if %stationTopic% EQU 5 (
  3146.     set topicStation=%station5%
  3147.     set currentRep=%rep5%
  3148.     set currentSectors=%sectors5%
  3149.     set currentShipF=%shipF5%
  3150.     set currentShipC=%shipC5%
  3151.     set currentShipB=%shipB5%
  3152.     set /a currentShips=%shipF5%+%shipC5%+%shipB5%
  3153.     call :getShipStats5
  3154.     set /a currentCP=%shipFS5%+%shipCS5%+%shipBS5%
  3155.     if %stance5% EQU 1 (
  3156.         set stance=1
  3157.     )
  3158.     if %stance5% EQU 2 (
  3159.         set stance=2
  3160.     )
  3161.     if %stance5% EQU 3 (
  3162.         set stance=3
  3163.     )
  3164. )
  3165. goto:eof
  3166.  
  3167. :getPlayerDeath
  3168. if %sectors% LSS 0 (
  3169.             goto endgame
  3170.         )
  3171. goto:eof
  3172.  
  3173. :endgame
  3174. cls
  3175. echo -------------------------------
  3176. echo        Well that Sucks.
  3177. echo             R.I.P
  3178. echo -------------------------------
  3179. echo You lost all of your sectors...
  3180. echo -------------------------------
  3181. pause>nul
  3182. goto start
  3183.  
  3184. REM //////                      EVERYTHING FOR BOUNTY HUNTING                    /////
  3185.  
  3186. :getIfBountiesMultiplied
  3187. set /a bountyScore=25*%bountyMultiplier%
  3188. if %bountyCaught% GEQ %bountyScore% (
  3189.     set /a bountyMultiplier+=1
  3190. )
  3191. goto:eof
  3192.  
  3193. :bountyBoard
  3194. call :getSquadTotal
  3195. call :getIsShipDead
  3196. call :getPresetBountyData
  3197. call :getIfBountiesMultiplied
  3198. cls
  3199. echo ----------------------------------------------------------------------------------------------
  3200. echo  Credits:%credits% /\ Squad:%squadSize% /\ Sectors:%sectors% /\ Public Favor:%PF% /\ Tactics:%tactics% /\ Year:%year%
  3201. echo ----------------------------------------------------------------------------------------------
  3202. echo Bounties Caught:%bountyCaught%/%bountyScore%
  3203. echo ----------------------------
  3204. echo        Bounty Board
  3205. echo     -----------------
  3206. echo     /   U           \
  3207. echo     /          U    \
  3208. echo     /     U         \
  3209. echo     -----------------
  3210. echo Info:%msg%
  3211. echo ----------------------------
  3212. echo 1-Collect Reward %coffers%
  3213. echo 2-Find Bounties Available:%bountyAvail%
  3214. echo 3-Manage Squad
  3215. echo 0-Return
  3216. echo ----------------------------
  3217. choice /c 1230 /n >nul
  3218.  
  3219. if %errorlevel% == 1 (
  3220.     set /a credits+=%coffers%
  3221.     set /a coffers-=%coffers%
  3222.     set msg=Bounty Collected
  3223. )
  3224. if %errorlevel% == 2 (
  3225.     if %bountyAvail% LSS 1 (
  3226.         set msg=No Bounties Available End Current Turn.
  3227.         goto bountyBoard
  3228.     )
  3229.     if %currentHuntee% EQU 1 (
  3230.         if %playerHunter% EQU 0 (
  3231.             set msg=Change Current Hunter, this one is Dead!
  3232.             goto bountyBoard
  3233.         ) else (set msg=)
  3234.     )
  3235.     if %currentHuntee% EQU 2 (
  3236.         if %hunter1% EQU 0 (
  3237.             set msg=Change Current Hunter, this one is Dead!
  3238.             goto bountyBoard
  3239.         ) else (set msg=)
  3240.     )
  3241.     if %currentHuntee% EQU 3 (
  3242.         if %hunter2% EQU 0 (
  3243.             set msg=Change Current Hunter, this one is Dead!
  3244.             goto bountyBoard
  3245.         ) else (set msg=)
  3246.     )
  3247.     if %currentHuntee% EQU 4 (
  3248.         if %hunter3% EQU 0 (
  3249.             set msg=Change Current Hunter, this one is Dead!
  3250.             goto bountyBoard
  3251.         ) else (set msg=)
  3252.     )
  3253.     set /a bountyAvail-=1
  3254.     set /a bountyDiff=%random%%%3+1
  3255.     set /a bountyN1=%random%%%5+1
  3256.     set /a bountyN2=%random%%%5+1
  3257.     set /a bountyE=%random%%%2000+1000
  3258.     set /a bountyM=%random%%%6000+2000
  3259.     set /a bountyH=%random%%%8000+3000
  3260.     call :bountyDiffList
  3261.     call :bountyNaming
  3262.     set bountyName=%Bname1%%Bname2%
  3263.     goto bountyFind
  3264. )
  3265. if %errorlevel% == 3 (
  3266.     goto squadManage
  3267. )
  3268. if %errorlevel% == 4 (
  3269.     goto home
  3270. )
  3271. goto bountyBoard
  3272.  
  3273. :squadManage
  3274. call :getSquadTotal
  3275. call :getSelectedHunter
  3276. call :playerHunters
  3277. call :getIsShipDead
  3278. call :getCurrentHunteeData
  3279. cls
  3280. echo ----------------------------------------------------------------------------------------------
  3281. echo  Credits:%credits% /\ Squad:%squadSize% /\ Sectors:%sectors% /\ Public Favor:%PF% /\ Tactics:%tactics% /\ Year:%year%
  3282. echo ----------------------------------------------------------------------------------------------
  3283. echo   Station %playername%'s Bounty Hunting Vessels
  3284. echo ------------------
  3285. echo 1-%playername% Hunter -%playerShip%-
  3286. echo 2-%playername% Outlaw Hunter -%hunterShip1%-
  3287. echo 3-%playername% Crook Hunter -%hunterShip2%-
  3288. echo 4-%playername% Vermin Hunter -%hunterShip3%-
  3289. echo ------------------
  3290. echo 1) Select Ship to Outfit %hunterSelected%
  3291. echo 2) Select Ship for Hunts %currentHunter%
  3292. echo 3) Outfitter
  3293. echo 0) Return
  3294. echo ------------------
  3295. choice /c 1230 /n >nul
  3296.  
  3297. if %errorlevel% == 1 (
  3298.     echo 1-Hunter %playerShip%
  3299.     echo 2-Second Hunter %hunterShip1%
  3300.     echo 3-Third Hunter %hunterShip2%
  3301.     echo 4-Fourth Hunter %hunterShip3%
  3302.     set /p hunterSelect=Choice by #:
  3303.     goto squadManage
  3304. )
  3305. if %errorlevel% == 2 (
  3306.     echo 1-Hunter %playerShip%
  3307.     echo 2-Second Hunter %hunterShip1%
  3308.     echo 3-Third Hunter %hunterShip2%
  3309.     echo 4-Fourth Hunter%hunterShip3%
  3310.     set /p currentHuntee=Choice by #:
  3311.     goto squadManage
  3312. )
  3313. if %errorlevel% == 3 (
  3314.     goto outfitting
  3315. )
  3316. if %errorlevel% == 4 (
  3317.     goto bountyBoard
  3318. )
  3319. goto squadManage
  3320.  
  3321. :outfitting
  3322. call :getShipHulls
  3323. call :playerHunters
  3324. cls
  3325. echo ----------------------------------------------------------------------------------------------
  3326. echo  Credits:%credits% /\ Squad:%squadSize% /\ Sectors:%sectors% /\ Public Favor:%PF% /\ Tactics:%tactics% /\ Year:%year%
  3327. echo ----------------------------------------------------------------------------------------------
  3328. echo  Outfitting %hunterSelected% %hull%/%hullMax%
  3329. echo --------------------
  3330. echo 1) Repair Hull
  3331. echo 2) Upgrades
  3332. echo 3) Purchase Hunter -5000 Credits
  3333. echo 0) Return
  3334. echo --------------------
  3335. echo Info:%msg%
  3336. echo --------------------
  3337. choice /c 1230 /n >nul
  3338. if %errorlevel% == 1 (
  3339.     if %hunterSelect% EQU 1 (
  3340.         if %playerHunter% EQU 1 (
  3341.             if %hunterHull% GEQ %hunterHullMax% (
  3342.                 set msg=Fully Repaired!
  3343.                 set hunterHull=%hunterHullMax%
  3344.                 goto outfitting
  3345.             ) else (set msg=)
  3346.             set hunterHull=%hunterHullMax%
  3347.         ) else (
  3348.             set msg=No Hunter Available!
  3349.             goto outfitting
  3350.         )
  3351.         goto outfitting
  3352.     )
  3353.     if %hunterSelect% EQU 2 (
  3354.         if %hunter1% EQU 1 (
  3355.             if %hunter1Hull% GEQ %hunter1HullMax% (
  3356.                 set msg=Fully Repaired!
  3357.                 set hunter1Hull=%hunter1HullMax%
  3358.                 goto outfitting
  3359.             ) else (set msg=)
  3360.             set hunter1Hull=%hunter1HullMax%
  3361.         ) else (
  3362.             set msg=No Hunter Available!
  3363.             goto outfitting
  3364.         )
  3365.         goto outfitting
  3366.     )
  3367.     if %hunterSelect% EQU 3 (
  3368.         if %hunter2% EQU 1 (
  3369.             if %hunter2Hull% GEQ %hunter2HullMax% (
  3370.                 set msg=Fully Repaired!
  3371.                 set hunter2Hull=%hunter2HullMax%
  3372.                 goto outfitting
  3373.             ) else (set msg=)
  3374.             set hunter2Hull=%hunter2HullMax%
  3375.         ) else (
  3376.             set msg=No Hunter Available!
  3377.             goto outfitting
  3378.         )
  3379.         goto outfitting
  3380.     )
  3381.     if %hunterSelect% EQU 4 (
  3382.         if %hunter3% EQU 1 (
  3383.             if %hunter3Hull% GEQ %hunter3HullMax% (
  3384.                 set msg=Fully Repaired!
  3385.                 set hunter3Hull=%hunter3HullMax%
  3386.                 goto outfitting
  3387.             ) else (set msg=)
  3388.             set hunter3Hull=%hunter3HullMax%
  3389.         ) else (
  3390.             set msg=No Hunter Available!
  3391.             goto outfitting
  3392.         )
  3393.         goto outfitting
  3394.     )
  3395.     goto outfitting
  3396. )
  3397.    
  3398. if %errorlevel% == 2 (
  3399.     goto shipUpgrades
  3400. )
  3401. if %errorlevel% == 3 (
  3402.     if %credits% LSS 5000 goto outfitting
  3403.    
  3404.     if %hunterSelect% EQU 1 (
  3405.         if %playerHunter% EQU 1 (
  3406.             set msg=Slot Filled Already!
  3407.             goto outfitting
  3408.         )
  3409.         set /a credits-=5000
  3410.         set /a playerHunter+=1
  3411.         set msg=New Vessel Purchased!
  3412.         set hunterHull=%hunterHullMax%
  3413.     )
  3414.     if %hunterSelect% EQU 2 (
  3415.         if %hunter1% EQU 1 (
  3416.             set msg=Slot Filled Already!
  3417.             goto outfitting
  3418.         )
  3419.         set /a credits-=5000
  3420.         set /a hunter1+=1
  3421.         set msg=New Vessel Purchased!
  3422.         set hunter1Hull=%hunter1HullMax%
  3423.     )
  3424.     if %hunterSelect% EQU 3 (
  3425.         if %hunter2% EQU 1 (
  3426.             set msg=Slot Filled Already!
  3427.             goto outfitting
  3428.         )
  3429.         set /a credits-=5000
  3430.         set /a hunter2+=1
  3431.         set msg=New Vessel Purchased!
  3432.         set hunter2Hull=%hunter2HullMax%
  3433.     )
  3434.     if %hunterSelect% EQU 4 (
  3435.         if %hunter3% EQU 1 (
  3436.             set msg=Slot Filled Already!
  3437.             goto outfitting
  3438.         )
  3439.         set /a credits-=5000
  3440.         set /a hunter3+=1
  3441.         set msg=New Vessel Purchased!
  3442.         set hunter3Hull=%hunter3HullMax%
  3443.     )
  3444.     call :getSquadTotal
  3445.     goto outfitting
  3446. )
  3447. if %errorlevel% == 4 (
  3448.     goto squadManage
  3449. )
  3450. goto outfitting
  3451.  
  3452. :shipUpgrades
  3453. set /a rewardMulti=50000*%multiplier%
  3454. call :getShipHulls
  3455. call :getSelectedHunter
  3456. call :getCurrentHunteeData
  3457. cls
  3458. echo ----------------------------------------------------------------------------------------------
  3459. echo  Credits:%credits% /\ Squad:%squadSize% /\ Sectors:%sectors% /\ Public Favor:%PF% /\ Tactics:%tactics% /\ Year:%year%
  3460. echo ----------------------------------------------------------------------------------------------
  3461. echo    Upgrading %hunterSelected%
  3462. echo ---------------------
  3463. echo 1) Upgrade Hull +5 Health -%hullUpgradeX%
  3464. echo 2) Upgrade Reward Multiplier -%rewardMulti%
  3465. echo 0) Return
  3466. echo ---------------------
  3467. echo Info:%msg%
  3468. echo ---------------------
  3469. choice /c 120 /n >nul
  3470. if %errorlevel% == 1 (
  3471.     if %credits% LSS %hullUpgradeX% (
  3472.         set msg=Not enough credits to Upgrade!
  3473.         goto shipUpgrades
  3474.     ) else (set msg=)
  3475.     set /a credits-=%hullUpgradeX%
  3476.     if %hunterSelect% EQU 1 (
  3477.         set /a hullUpgrade1+=1
  3478.         call :getCurrentHunteeData
  3479.         set hunterHull=%hunterHullMax%
  3480.     )
  3481.     if %hunterSelect% EQU 2 (
  3482.         set /a hullUpgrade2+=1
  3483.         call :getCurrentHunteeData
  3484.         set hunter1Hull=%hunter1HullMax%
  3485.     )
  3486.     if %hunterSelect% EQU 3 (
  3487.         set /a hullUpgrade3+=1
  3488.         call :getCurrentHunteeData
  3489.         set hunter2Hull=%hunter2HullMax%
  3490.     )
  3491.     if %hunterSelect% EQU 4 (
  3492.         set /a hullUpgrade4+=1
  3493.         call :getCurrentHunteeData
  3494.         set hunter3Hull=%hunter3HullMax%
  3495.     )
  3496.     goto shipUpgrades
  3497. )
  3498. if %errorlevel% == 2 (
  3499.     if %credits% LSS %rewardMulti% (
  3500.         set msg=Not enough credits to Upgrade!
  3501.         goto shipUpgrades
  3502.     )
  3503.     set /a credits-=%rewardMulti%
  3504.     set /a multiplier+=1
  3505.     goto shipUpgrades
  3506. )
  3507. if %errorlevel% == 3 (
  3508.     goto outfitting
  3509. )
  3510. pause>nul
  3511. goto shipUpgrades
  3512.  
  3513. :bountyFind
  3514. call :bountyNaming
  3515. call :bountyDiffList
  3516. call :getBountyMultiplier
  3517. call :getSquadTotal
  3518. call :playerHunters
  3519. cls
  3520. echo ----------------------------------------------------------------------------------------------
  3521. echo  Credits:%credits% /\ Squad:%squadSize% /\ Sectors:%sectors% /\ Public Favor:%PF% /\ Tactics:%tactics% /\ Year:%year%
  3522. echo ----------------------------------------------------------------------------------------------
  3523. echo We have found a potential bounty take a look:
  3524. echo Name:%bountyName%
  3525. echo `:---:'
  3526. echo Difficulty:%bountyChall%
  3527. echo Reward:%bountyPot%
  3528. echo -----------------------
  3529. echo 1) Take on Bounty
  3530. echo 2) Leave Bounty
  3531. choice /c 12 /n >nul
  3532. if %errorlevel% == 1 (
  3533.     if %squadSize% LSS 1 (
  3534.         set msg=No Hunters Available, repair or buy Hunters!
  3535.         goto bountyBoard
  3536.     ) else (set msg=)
  3537.     set dmg=%bountyDiff%
  3538.     set /a coffers+=%bountyPot%*%bountyMultiplier%
  3539.     goto bountyResult
  3540. )
  3541. if %errorlevel% == 2 (
  3542.     set /a bountyAvail+=1
  3543.     goto bountyBoard
  3544. )
  3545. pause>nul
  3546. goto bountyBoard
  3547.  
  3548. :bountyResult
  3549. call :getCurrentHuntee
  3550. call :getAppliedDamage
  3551. call :getIsShipDead
  3552. call :playerHunters
  3553. cls
  3554. echo ----------------------------------------------------------------------------------------------
  3555. echo  Credits:%credits% /\ Squad:%squadSize% /\ Sectors:%sectors% /\ Public Favor:%PF% /\ Tactics:%tactics% /\ Year:%year%
  3556. echo ----------------------------------------------------------------------------------------------
  3557. echo Captured %bountyName% adding +%bountyPot% to your Unclaimed Bounty Rewards which now total:%coffers%
  3558. echo.
  3559. echo %currentHunter% %hullHealth%/%hullHealthMax%
  3560. echo Suffered %bountyDiff% Damage to their hull.
  3561. pause>nul
  3562. set /a PF+=1
  3563. set /a bountyCaught+=1
  3564. goto bountyBoard
  3565.  
  3566. :getShipHulls
  3567. set hullBaseUp=4500
  3568. if %hunterSelect% EQU 1 (
  3569.     set hull=%hunterHull%
  3570.     set hullMax=%hunterHullMax%
  3571.     set /a hullUpgradeX=%hullBaseUp%*%hullUpgrade1%
  3572. )
  3573. if %hunterSelect% EQU 2 (
  3574.     set hull=%hunter1Hull%
  3575.     set hullMax=%hunter1HullMax%
  3576.     set /a hullUpgradeX=%hullBaseUp%*%hullUpgrade2%
  3577. )
  3578. if %hunterSelect% EQU 3 (
  3579.     set hull=%hunter2Hull%
  3580.     set hullMax=%hunter2HullMax%
  3581.     set /a hullUpgradeX=%hullBaseUp%*%hullUpgrade3%
  3582. )
  3583. if %hunterSelect% EQU 4 (
  3584.     set hull=%hunter3Hull%
  3585.     set hullMax=%hunter3HullMax%
  3586.     set /a hullUpgradeX=%hullBaseUp%*%hullUpgrade4%
  3587. )
  3588. goto:eof
  3589.  
  3590. :getSquadTotal
  3591. set /a squadSize=%playerHunter%+%hunter1%+%hunter2%+%hunter3%
  3592. goto:eof
  3593.  
  3594. :getSelectedHunter
  3595. if %hunterSelect% EQU 1 (
  3596.     set hunterSelected=Hunter
  3597. )
  3598. if %hunterSelect% EQU 2 (
  3599.     set hunterSelected=Second Hunter
  3600. )
  3601. if %hunterSelect% EQU 3 (
  3602.     set hunterSelected=Third Hunter
  3603. )
  3604. if %hunterSelect% EQU 4 (
  3605.     set hunterSelected=Fourth Hunter
  3606. )
  3607. goto:eof
  3608.  
  3609. :getCurrentHunteeData
  3610. if %currentHuntee% EQU 1 (
  3611.     set currentHunter=Hunter
  3612.     set /a hunterHullMax=5*%hullUpgrade1%
  3613. )
  3614. if %currentHuntee% EQU 2 (
  3615.     set currentHunter=Second Hunter
  3616.     set /a hunter1HullMax=5*%hullUpgrade2%
  3617. )
  3618. if %currentHuntee% EQU 3 (
  3619.     set currentHunter=Third Hunter
  3620.     set /a hunter2HullMax=5*%hullUpgrade3%
  3621. )
  3622. if %currentHuntee% EQU 4 (
  3623.     set currentHunter=Fourth Hunter
  3624.     set /a hunter3HullMax=5*%hullUpgrade4%
  3625. )
  3626. goto:eof
  3627.  
  3628. :getPresetBountyData
  3629. rem Used to fill Empty First Variable's when first Finding Bounty
  3630. set /a bountyDiff=%random%%%3+1
  3631.     set /a bountyN1=%random%%%5+1
  3632.     set /a bountyN2=%random%%%5+1
  3633.     set /a bountyE=%random%%%2000+1000
  3634.     set /a bountyM=%random%%%6000+2000
  3635.     set /a bountyH=%random%%%8000+3000
  3636.     set bountyName=%Bname1%%Bname2%
  3637. call :bountyNaming
  3638. call :bountyDiffList
  3639. goto:eof
  3640.  
  3641. :getAppliedDamage
  3642. set /a hullHealth-=%bountyDiff%
  3643. goto:eof
  3644.  
  3645. :getBountyMultiplier
  3646. set bountyRMulti=25
  3647. if %bountyCaught% EQU %bountyRMulti% (
  3648.     set /a bountyMultiplier+=1
  3649.     set bountyCaught=0
  3650. )
  3651. goto:eof
  3652.  
  3653. :getIsShipDead
  3654. if %hunterHull% LSS 0 (
  3655.     set playerHunter=0
  3656.     set playerShip=Not Ready
  3657.     set hunterHull=0
  3658.     set hunterHullMax=5
  3659.     set hullUpgrade1=1
  3660. )
  3661. if %hunter1Hull% LSS 0 (
  3662.     set hunter1=0
  3663.     set hunterShip1=Not Ready
  3664.     set hunter1Hull=0
  3665.     set hunter1HullMax=5
  3666.     set hullUpgrade2=1
  3667. )
  3668. if %hunter2Hull% LSS 0 (
  3669.     set hunter2=0
  3670.     set hunterShip2=Not Ready
  3671.     set hunter2Hull=0
  3672.     set hunter2HullMax=5
  3673.     set hullUpgrade3=1
  3674. )
  3675. if %hunter3Hull% LSS 0 (
  3676.     set hunter3=0
  3677.     set hunterShip3=Not Ready
  3678.     set hunter3Hull=0
  3679.     set hunter3HullMax=5
  3680.     set hullUpgrade4=1
  3681. )
  3682. goto:eof
  3683.  
  3684. :getCurrentHuntee
  3685. if %currentHuntee% EQU 1 (
  3686.     set /a hunterHull-=%bountyDiff%
  3687.     set currentHunter=Hunter
  3688.     set hullHealth=%hunterHull%
  3689.     set hullHealthMax=%hunterHullMax%
  3690. )
  3691. if %currentHuntee% EQU 2 (
  3692.     set /a hunterHull-=%bountyDiff%
  3693.     set currentHunter=Second Hunter
  3694.     set hullHealth=%hunter1Hull%
  3695.     set hullHealthMax=%hunter1HullMax%
  3696. )
  3697. if %currentHuntee% EQU 3 (
  3698.     set /a hunterHull-=%bountyDiff%
  3699.     set currentHunter=Third Hunter
  3700.     set hullHealth=%hunter2Hull%
  3701.     set hullHealthMax=%hunter2HullMax%
  3702. )
  3703. if %currentHuntee% EQU 4 (
  3704.     set /a hunterHull-=%bountyDiff%
  3705.     set currentHunter=Fourth Hunter
  3706.     set hullHealth=%hunter3Hull%
  3707.     set hullHealthMax=%hunter3HullMax%
  3708. )
  3709. goto:eof
  3710.  
  3711. :bountyDiffList
  3712. if %bountyDiff% EQU 1 (
  3713.     set bountyChall=Easy
  3714.     set /a bountyPot=%bountyE%*%multiplier%
  3715. )
  3716. if %bountyDiff% EQU 2 (
  3717.     set bountyChall=Medium
  3718.     set /a bountyPot=%bountyM%*%multiplier%
  3719. )
  3720. if %bountyDiff% EQU 3 (
  3721.     set bountyChall=Hard
  3722.     set /a bountyPot=%bountyH%*%multiplier%
  3723. )
  3724. goto:eof
  3725.  
  3726. :bountyNaming
  3727. if %bountyN1% EQU 1 (
  3728.     set Bname1=Jack
  3729. )
  3730. if %bountyN1% EQU 2 (
  3731.     set Bname1=Able
  3732. )
  3733. if %bountyN1% EQU 3 (
  3734.     set Bname1=Endo
  3735. )
  3736. if %bountyN1% EQU 4 (
  3737.     set Bname1=Endous
  3738. )
  3739. if %bountyN1% EQU 5 (
  3740.     set Bname1=Venom
  3741. )
  3742.  
  3743. if %bountyN2% EQU 1 (
  3744.     set Bname2=the Cannibal
  3745. )
  3746. if %bountyN2% EQU 2 (
  3747.     set Bname2=the Hated
  3748. )
  3749. if %bountyN2% EQU 3 (
  3750.     set Bname2=the Outlaw
  3751. )
  3752. if %bountyN2% EQU 4 (
  3753.     set Bname2=the Raider
  3754. )
  3755. if %bountyN2% EQU 5 (
  3756.     set Bname2=the Petty
  3757. )
  3758. goto:eof
  3759.  
  3760. :playerHunters
  3761. if %playerHunter% EQU 0 (
  3762.     set playerShip=Not Ready
  3763. )
  3764. if %playerHunter% EQU 1 (
  3765.     set playerShip=Ready
  3766. )
  3767.  
  3768. if %hunter1% EQU 0 (
  3769.     set hunterShip1=Not Ready
  3770. )
  3771. if %hunter1% EQU 1 (
  3772.     set hunterShip1=Ready
  3773. )
  3774.  
  3775. if %hunter2% EQU 0 (
  3776.     set hunterShip2=Not Ready
  3777. )
  3778. if %hunter2% EQU 1 (
  3779.     set hunterShip2=Ready
  3780. )
  3781.  
  3782. if %hunter3% EQU 0 (
  3783.     set hunterShip3=Not Ready
  3784. )
  3785. if %hunter3% EQU 1 (
  3786.     set hunterShip3=Ready
  3787. )
  3788. goto:eof
  3789.  
Tags: batch
Advertisement
Comments
  • CheikoAsami
    2 years (edited)
    # text 0.50 KB | 0 0
    1. Released: v0.2 - Implemented Save/Load System to Store player and other Station's Data.
    2. - Created Rep Loss Per turn to simulate Stations losing interest in their relationship with player.
    3. - Implemented 1 New AI Choice when ending a Turn to Declare, Peace, War, or an Alliance.
    4. Released: v0.3 - Balanced Upgrade Prices relative to their results.
    5. - Implemented Bank Interest Rate to accumulate more Wealth per Turn.
    6. - Implemented Attack Selection in Diplomacy Tab
  • CheikoAsami
    2 years
    Comment was deleted
  • Itz_Me6969
    1 year
    # text 0.08 KB | 0 0
    1. it got me banned but i gotta respect the ammout of effort this takes to make
    2.  
Add Comment
Please, Sign In to add comment
Advertisement