@echo off
title Text Adventure
color 0c
echo ------------ TEXT ADVENTURE ------------
echo.
echo What do you want to do?
echo Enter 1 to begin
echo Enter 2 to exit
set /p var=Type Here:
if %var%==1 then goto start
if %var%==2 then goto exit
:start
cls
echo You wake up in a desert... it is hot and dry here.
echo You see water in the distance, and a man drinking it.
echo You have a map
echo Enter 1 to go to the water.
echo Enter 2 to walk until you find help.
set /p %fn%
if %fn%==1 then goto waterdesert
if %fn%==2 then goto walkdesert
goto start
:exit
goto exit
:waterdesert
echo As you walk towards it, the water fades away.
echo The water must've been a mirage!
echo What do you do?
echo Enter 1 to walk until you are out of the desert
echo Enter 2 to look for help.
set /p %fn2%
if %fn2%==1 then goto walkdesert
if %fn2%==2 then goto helpdesert
goto waterdesert
:walkdesert
echo You walk for 1 hour...
echo You have seen nothing but sand and cacti for MILES.
echo Your stomach rumbles...
echo What do you do?
echo Enter 1 to collect sand and make a fortress.
echo Enter 2 to use cacti as food
set /p %fn3%
if %fn3%==1 then goto sandfort
if %fn3%==2 then goto cactieat
goto waterdesert
I am working on a text adventure and need help, please, someone fix it!
The start up menu commands do not work properly.
Thanks in advance!