Allecto
04-04-2008, 07:02 PM
Anyone have any input on this script?
It works just fine, just want to know if there are better, or more efficient ways of doing certain parts. It's my first script that doesn't involve delivering messages.
Basically, it's for making hammer handles- Able to pay fee for shop, get new materials, throw away successes as well as wood that's too small, or the toothpick type failure, and obviously automated on the glyph/grinder process.
Start:
put stare handle
match ready your material is marked
match toosmall and realize it is too small
matchwait
pause
Ready:
echo READY
pause 1
put turn grinder
match failure Things seem to be going ok
match toothpick Things seem to be going fine
match success You nod, satisfied
match success you smile as you
match rent the grinding wheel doesn't budge
matchwait
pause 1
toosmall:
echo TOOSMALL
pause 1
put put block in bin
match needblock you feel pleased
matchwait
toothpick:
echo TOOTHPICK
pause 1
put put toothp in bin
match needblock you feel pleased
matchwait
failure:
echo FAILURE
pause 1
goto start
success:
echo SUCCESS
pause 1
put put hamm in bin
put weigh my block
match needblock what were you
match needblock you must
match haveblock you carefully examine
matchwait
rent:
echo RENT
put go out
put go works
goto start
needblock:
echo NEEDBLOCK
move out
put order 3
put buy
put swap
put go works
goto start
haveblock:
echo HAVEBLOCK
put swap
goto start
Edit: And no, I don't violate policy 18. I always turn it off when I leave the comp. It may not have my 100% undivided attention, but I'm always watching it.
It works just fine, just want to know if there are better, or more efficient ways of doing certain parts. It's my first script that doesn't involve delivering messages.
Basically, it's for making hammer handles- Able to pay fee for shop, get new materials, throw away successes as well as wood that's too small, or the toothpick type failure, and obviously automated on the glyph/grinder process.
Start:
put stare handle
match ready your material is marked
match toosmall and realize it is too small
matchwait
pause
Ready:
echo READY
pause 1
put turn grinder
match failure Things seem to be going ok
match toothpick Things seem to be going fine
match success You nod, satisfied
match success you smile as you
match rent the grinding wheel doesn't budge
matchwait
pause 1
toosmall:
echo TOOSMALL
pause 1
put put block in bin
match needblock you feel pleased
matchwait
toothpick:
echo TOOTHPICK
pause 1
put put toothp in bin
match needblock you feel pleased
matchwait
failure:
echo FAILURE
pause 1
goto start
success:
echo SUCCESS
pause 1
put put hamm in bin
put weigh my block
match needblock what were you
match needblock you must
match haveblock you carefully examine
matchwait
rent:
echo RENT
put go out
put go works
goto start
needblock:
echo NEEDBLOCK
move out
put order 3
put buy
put swap
put go works
goto start
haveblock:
echo HAVEBLOCK
put swap
goto start
Edit: And no, I don't violate policy 18. I always turn it off when I leave the comp. It may not have my 100% undivided attention, but I'm always watching it.