if "%input%"=="look tree" goto grovetree
Works with me.
Kees
Hey, i'm having some trouble with spaces in this script, can anyone help? Its a version of dungeonman me and my friend are working on, my problem is in the input: (if %input%== look tree goto grovetree) apparently it won't accept spaces as input, but i need it too for it to be effective, any suggestions?
@echo off
:opening
echo Weclome to thy dungeonman game of Asloria
echo.
pause
goto grove
:grove
cls
echo Thou art in yon mystical GROVE, thou hast one miserable headache, it must have some dungeonparty last night. Thou see around you yon TREE in yon middle of ye grove. Obvious exits are NORTH, SOUTH, EAST, and WEST.
set /p input=What doest thou deau?
if %input%== look tree goto grovetree
:grovetree
cls
echo Thou see yon TREE in thy middle of thy grove, it smells faintly of PARAPETS. CHARLIE is hanging from one of the branches, he is holding a SWORD, magestically posing with his hands at his hips.
echo.
set /p input=What doest thou deau?

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic