You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser.
text game
About this tag
The text game tag on WindowsForum.com covers discussions about creating text-based games using Windows batch scripting. A common topic is troubleshooting input handling in batch files, such as using set /p to capture user choices and if statements to evaluate them. Users share code snippets for menu systems and seek help with logic errors, like variables not being compared correctly. The tag is relevant for developers and hobbyists building simple interactive games in the Windows command prompt environment.
I'm trying to create a text-based game, but I can't get passed the menu because either "set /p" isn't taking an input, or "if '%...'" isn't seeing it. This is what I'm doing to test menus, currently
:mmenu
echo Main Menu
echo Start
echo Quit
SET /P "a=Select "
if "a"=="Start" [removed:then...