Volstock
06-19-2004, 11:17 AM
my first attempt at making a script so I made a little bundle script. But I was wondering if there's anyway I could make this script better. Please help
#bundle.Cmd
firststep:
echo *** TO START SCRIPT TYPE .Bundle "<name of herb>" <Container> ***
echo *** FOR EXAMPLE .BUNDLE "ACANTHA LEAF" BACKPACK ***
ECHO *** WOULD BUNDLE THE ACANTHA LEAF ***
ECHO *** AND PLACE IT INSIDE YOUR BACKPACK ***
ECHO *** ***
ECHO *** ***
ECHO *** ***
echo **** To start the script, type 'proceed' ***
echo **** [type 'proceed' to continue the script] ***
echo **** ***
waitfor proceed
secondstep:
put get %1
pause 1
put glance
match goahead in your right hand and nothing in your left hand
match goahead in your left hand
match alldone I could not find
match oops You remove
matchwait
goahead:
wait
put get %1
put bund %1
match stop1 Maybe you should start a new bundle
match oops You remove
match alldone I could not find
MATCH STOP2 You do not have anything to bundle!
match goahead Carefully, you combine all your
match full won't fit in the
matchwait
alldone:
echo *********************************
echo *** ***
echo *** Choose another herb !! ***
echo *** ***
echo *********************************
exit
stop1:
echo *********************************
echo *** ***
echo *** HERB FULL ***
echo *** ***
echo *********************************
put put other %1 in my %2
goto goahead
STOP2:
echo *********************************
echo *** ***
echo *** NO MORE HERB TO BUNDLE ***
echo *** ***
echo *********************************
PUT PUT %1 IN MY %2
EXIT
oops:
echo *********************************
echo *** ***
echo *** NO MORE HERB TO BUNDLE ***
echo *** ***
echo *********************************
put put put other %1 in my %2
exit
full:
echo *** Your %2 is all full! ***
exit
#bundle.Cmd
firststep:
echo *** TO START SCRIPT TYPE .Bundle "<name of herb>" <Container> ***
echo *** FOR EXAMPLE .BUNDLE "ACANTHA LEAF" BACKPACK ***
ECHO *** WOULD BUNDLE THE ACANTHA LEAF ***
ECHO *** AND PLACE IT INSIDE YOUR BACKPACK ***
ECHO *** ***
ECHO *** ***
ECHO *** ***
echo **** To start the script, type 'proceed' ***
echo **** [type 'proceed' to continue the script] ***
echo **** ***
waitfor proceed
secondstep:
put get %1
pause 1
put glance
match goahead in your right hand and nothing in your left hand
match goahead in your left hand
match alldone I could not find
match oops You remove
matchwait
goahead:
wait
put get %1
put bund %1
match stop1 Maybe you should start a new bundle
match oops You remove
match alldone I could not find
MATCH STOP2 You do not have anything to bundle!
match goahead Carefully, you combine all your
match full won't fit in the
matchwait
alldone:
echo *********************************
echo *** ***
echo *** Choose another herb !! ***
echo *** ***
echo *********************************
exit
stop1:
echo *********************************
echo *** ***
echo *** HERB FULL ***
echo *** ***
echo *********************************
put put other %1 in my %2
goto goahead
STOP2:
echo *********************************
echo *** ***
echo *** NO MORE HERB TO BUNDLE ***
echo *** ***
echo *********************************
PUT PUT %1 IN MY %2
EXIT
oops:
echo *********************************
echo *** ***
echo *** NO MORE HERB TO BUNDLE ***
echo *** ***
echo *********************************
put put put other %1 in my %2
exit
full:
echo *** Your %2 is all full! ***
exit