When I'm at :Forest
, for example, how I can type I
, to display the Inventory, and then return to where I called it from?
Example snippet:
:Inventory
echo Inventory:
echo bla bla items
cls
pause
:StoryBegin
echo This is a story
set /p input=(1,2)?
if %input% == 1 goto Forest
if %input% == 2 goto Castle
if %input% == I goto Inventory
:Forest
set /p input=(1,2)
if %input% == 1 goto House
if %input% == 2 goto Hill
if %input% == I goto Inventory