Recently I created a small BATCH game.
The thing is, because I'm using Windows' CMD BATCH language the game will not run properly in DOS or DOSbox.
The opening is fine, but once I get to the first player input section, I get a "bad syntax" error.
Does anyone know MS-DOS equivalents of Windows CMD command?
For example, in a CMD based BATCH file I'd use "set ..." to set an input. What would the DOS version of "set..." be?
:start
cls
echo GUESSING GAME
echo.
echo Created By: John Ingram
echo Copyright 2015
echo.
pause
goto :begin
:begin
cls
echo Please enter the number of your desired difficulty setting.
echo.
echo 1) Easy: Guess a number from 1-10
echo 2) Normal: Guess a number from 1-100
echo 3) Hard: Guess a number from 1-1000
echo.
echo Type "Quit" to exit the game.
echo.
echo Have Fun!
set /p choice=Enter:
if %choice%==1 (
goto :difficulty1
)
if %choice%==2 (
goto :difficulty2
)
if %choice%==3 (
goto difficulty3
)
if %choice%==quit (
goto :endgame
)
if %choice%==Quit (
goto :endgame
)
if %choice% GTR 3 (
echo.
echo I do not understand that command.
echo.
pause
goto :begin
)
pause
The trouble begins once the player presses a key after starting the game and is brought to the first input section (:begin).
Does this have anything to do with DOS/DOSbox not being able to register "/p" as a SET command?
If so what is the DOS equivalent?