I'm making a text adventure in pure Batch, and made a test level, as shown below.
The idea here is that if you type in a command that isn't one of the ones listed, it says it doesn't understand.Code:echo What do? echo. set /p var=Input Command: if %var%==i goto inventory if %var%==inventory goto inventory if %var%==l goto look if %var%==look goto look if %var%==inspect goto look if %var%==examine goto look if %var%==xyzzy goto cliche if %var%==potato goto potato else echo I dont understand.
Yet, if I type in an unknown command, it just goes back to the start of that level.
What's going on?
Thanks!
~DigiDuncan


Reply With Quote

Bookmarks