我正在尝试批量制作一个简单的游戏,但在尝试从:1 转到:2:3 或:4 时,我不断收到 goto 错误。我想不出我们有什么问题。请告诉我问题所在。谢谢!PS我是新手。
:start
@echo off
color a
echo Adventue V2
echo 10/28/2013
pause
echo Name?
set /p name=
echo Hello %name%! Would you like to start (y/n)
set /p start=
if %start% == y goto 1
if %start% == Y goto 1
if %start% == n goto start
if %start% == N goto start
:1
echo Let us Begin...
echo The year is 1673 and you are living on a small farm. What do you do?
echo 1)Feed Chicken 2)Feed Cow 3)Fetch Water
set /p 1=
if %1% == 1 goto 2
if %1% == 2 goto 3
if %1% == 3 goto 4
:2
echo You go to the chicken pen and find one of your chickens has been killed by a fox. What do you do?
echo 1)Look For The Fox 2)Tell Your Father 3)Tell Your Mother
set /p 2=
if %2% == 1 goto 5
if %2% == 2 goto 6
if %2% == 3 goto 7
:3
echo You feed The cows and you find a coin purse. What do you do?
echo 1)Look In It 2)Leave It
set /p 3=
if %3% == 1 goto 8
if %3% == 2 goto 9
:4
echo You got to the well to fetch water but the well is empty. What do you do?
echo 1)Crawl Into It 2)Tell Your Parents
set /p 4=
if %4% == 1 goto 10
if %4% == 2 goto 11