bremerial
08-23-2014, 05:57 PM
I've spent today playing with utility scripts. Not that I am any good at scripting but I just like a challenge and I had time on my hands today. Someone has very graciously agreed to look at another one I started. Anyhoo..
If anyone has time, could you tidy this one up and perhaps make it user friendly perhaps. It works - which is the main thing - but its ugly. I tend to use 10 commands when 1 would do, due to a lack of knowledge. I'd love this to be more Cinderella and less ugly sister!
Purpose of script: To make coffee using my own stove, press and kettle.
Issues for consideration:
1. I use tinder, log and water from Misty's Teas on Mist Harbor
2. My matches come from Teras and are retained, as sold, in an oil pouch
3. I use a twelve sided cup to drink from - hence the reference to 'twel cup'
4. I place my stove on a wyrom kit - just for visual effect amongst other things - but it could just as easily be stored on the ground.
5. I haven't worked out a way to retain the option to add cream, whiskey, syrup etc to the coffee within the script - so have ignored this and currently just add additional items manually.
# Making Coffee
# v.1 Script created by Bremerial God'thor
echo
echo You need to have your own stove, kettle, matches, coffee and coffee press
echo You can obtain the following from Misty's Teas on Mist Harbor: Water, log and tinder.
echo
echo Type 'slurp' if you want to make the best coffee ever, or escape key to get the items you need
echo
Mainloop:
match coffee1 slurp
match coffee2 You pour all of your pitcher of water into
match coffee3 and watch as it slowly catches fire
match coffee4 The water inside the cast iron kettle has reached a constant rolling boil
match coffee5 it is not time to push the plunger down just yet
match coffee6 marshalling the swirling coffee grounds to a prison underneath
match coffee7 that's likely a very bad idea
match coffee8 The faint glow within the cast iron stove flickers for a moment and goes out
match coffee9 You should clean out the ashes inside first
matchwait
coffee1:
put remove my kit
wait 1
put drop my kit
wait 2
put open keg
wait 2
put get stove
wait 2
put open my stove
wait 2
put clean my stove
wait 2
put put my stove on keg
wait 2
put take tinder
wait 2
put put tinder in stove
wait 2
put take my log
wait 2
put put my log in stove
wait 2
put get kettle
wait 2
put clean my kettle
wait 2
put get water from keg
wait 2
put pour my water in my kettle
goto mainloop
coffee2:
put put my kettle on stove
wait 2
put take oil pou
wait 2
put open oil pou
wait 2
put take match from oil pou
wait 2
put close oil pou
wait 2
put put oil pou in keg
wait 2
put light my match
wait 2
put light stove with my match
put drop my match
goto mainloop
coffee3:
put take jar from keg
wait 2
put open my jar
wait 2
put take ground
wait 2
put close my jar
wait 2
put put my jar in keg
wait 2
put take coffee press
wait 2
put clean my press
wait 2
put put my ground in my press
goto mainloop
coffee4:
put get kettle from stove
wait 2
put pour my kettle in my press
wait 2
put clean my kettle
wait 2
put put kettle in keg
wait 45
put push my press
goto mainloop
coffee5:
wait 30
put push my press
goto MainLoop
coffee6:
put get twel cup
put pour press in my cup
wait 2
put put press in keg
wait 2
put take stove
goto mainloop
coffee7:
wait 10
put get stove
goto mainloop
coffee8:
wait 60
put get stove
goto mainloop
coffee9:
wait 5
put clean stove
put get stove
put put my stove in keg
put close keg
put take keg
put wear my kit
echo
echo ******* Coffee is made *******
echo
echo
echo ******* just decide if you want to add anything to it like cream or whiskey *******
echo
exit
If anyone has time, could you tidy this one up and perhaps make it user friendly perhaps. It works - which is the main thing - but its ugly. I tend to use 10 commands when 1 would do, due to a lack of knowledge. I'd love this to be more Cinderella and less ugly sister!
Purpose of script: To make coffee using my own stove, press and kettle.
Issues for consideration:
1. I use tinder, log and water from Misty's Teas on Mist Harbor
2. My matches come from Teras and are retained, as sold, in an oil pouch
3. I use a twelve sided cup to drink from - hence the reference to 'twel cup'
4. I place my stove on a wyrom kit - just for visual effect amongst other things - but it could just as easily be stored on the ground.
5. I haven't worked out a way to retain the option to add cream, whiskey, syrup etc to the coffee within the script - so have ignored this and currently just add additional items manually.
# Making Coffee
# v.1 Script created by Bremerial God'thor
echo
echo You need to have your own stove, kettle, matches, coffee and coffee press
echo You can obtain the following from Misty's Teas on Mist Harbor: Water, log and tinder.
echo
echo Type 'slurp' if you want to make the best coffee ever, or escape key to get the items you need
echo
Mainloop:
match coffee1 slurp
match coffee2 You pour all of your pitcher of water into
match coffee3 and watch as it slowly catches fire
match coffee4 The water inside the cast iron kettle has reached a constant rolling boil
match coffee5 it is not time to push the plunger down just yet
match coffee6 marshalling the swirling coffee grounds to a prison underneath
match coffee7 that's likely a very bad idea
match coffee8 The faint glow within the cast iron stove flickers for a moment and goes out
match coffee9 You should clean out the ashes inside first
matchwait
coffee1:
put remove my kit
wait 1
put drop my kit
wait 2
put open keg
wait 2
put get stove
wait 2
put open my stove
wait 2
put clean my stove
wait 2
put put my stove on keg
wait 2
put take tinder
wait 2
put put tinder in stove
wait 2
put take my log
wait 2
put put my log in stove
wait 2
put get kettle
wait 2
put clean my kettle
wait 2
put get water from keg
wait 2
put pour my water in my kettle
goto mainloop
coffee2:
put put my kettle on stove
wait 2
put take oil pou
wait 2
put open oil pou
wait 2
put take match from oil pou
wait 2
put close oil pou
wait 2
put put oil pou in keg
wait 2
put light my match
wait 2
put light stove with my match
put drop my match
goto mainloop
coffee3:
put take jar from keg
wait 2
put open my jar
wait 2
put take ground
wait 2
put close my jar
wait 2
put put my jar in keg
wait 2
put take coffee press
wait 2
put clean my press
wait 2
put put my ground in my press
goto mainloop
coffee4:
put get kettle from stove
wait 2
put pour my kettle in my press
wait 2
put clean my kettle
wait 2
put put kettle in keg
wait 45
put push my press
goto mainloop
coffee5:
wait 30
put push my press
goto MainLoop
coffee6:
put get twel cup
put pour press in my cup
wait 2
put put press in keg
wait 2
put take stove
goto mainloop
coffee7:
wait 10
put get stove
goto mainloop
coffee8:
wait 60
put get stove
goto mainloop
coffee9:
wait 5
put clean stove
put get stove
put put my stove in keg
put close keg
put take keg
put wear my kit
echo
echo ******* Coffee is made *******
echo
echo
echo ******* just decide if you want to add anything to it like cream or whiskey *******
echo
exit