Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### debug 10
- If_1 goto %1
- intro:
- echo
- put #echo Yellow "** Knit!
- put #echo Yellow "**
- put #echo Yellow "** By Brynnhilde, based on spin.cmd code by Glimmer at Genie Bulletin Forum
- put #echo Yellow "**
- put #echo Yellow "** .knit list
- put #echo Yellow "** for a complete list of patterns you can knit, with difficulty and yardage.
- put #echo Yellow "** Note that the list is for the Master Tailoring book - if you have Apprentice or Journeyman,
- put #echo Yellow "** be sure the pattern you want to knit is in your book!
- put #echo Yellow "** Once you've chosen what you want to knit, make sure you have:
- put #echo Yellow "**
- put #echo Yellow "** Tailoring book
- put #echo Yellow "** Yarn
- put #echo Yellow "** Knitting needles
- put #echo Yellow "**
- put #echo Yellow "** .knit <pattern>
- put #echo Yellow "** Example: .knit gloves
- put #echo Yellow "** Be sure to use the exact name (gloves, not glove, in this example)
- put #echo Yellow "**
- put #echo Yellow "** If you want to knit until you run out of yarn, then
- put #echo Yellow "**
- put #echo Yellow "** .knit <pattern> repeat
- put #echo Yellow "** Example: .knit gloves repeat
- echo
- echo
- exit
- napkin:
- armband:
- socks:
- ankleband:
- headband:
- mittens:
- hood:
- booties:
- hat:
- scarf:
- slippers:
- skirt:
- shirt:
- gloves:
- legwarmers:
- towel:
- hose:
- sweater:
- cloak:
- blanket:
- repeat:
- ### Add any new pattern names to the labels above (pattern:) and to the below list (|pattern)
- var knitlist napkin|armband|socks|ankleband|headband|mittens|hood|booties|hat|scarf|slippers|skirt|shirt|gloves|legwarmers|towel|hose|sweater|cloak|blanket
- pause
- if !contains("%knitlist", "%1") then goto book
- action goto yarn when You need a larger amount of material to continue crafting\.
- action var action knit when a slip knot in your yarn
- action var action knit when (the yarn|row)
- action var action push when (must be pushed|to be pushed)
- action var action turn when (by turning the needles|the needles must be turned)
- action var action cast when The garment is nearly complete
- action goto done when cast it off from your knitting needles
- action goto end when What were you referring to
- action var pattern $1 when Page (\d+): (a|some) knitted %1
- if "$righthand" != "Empty" then send stow right
- if "$lefthand" != "Empty" then send stow left
- pause 0.5
- put get my tailor book;turn my book to chapter 5
- pause
- pause 0.5
- put read my tailor book
- pause 0.5
- pause
- put turn my book to page %pattern
- pause 0.5
- put study my book
- pause
- pause
- put stow my book
- pause 0.2
- put get my knit needles
- pause 0.2
- put get my yarn
- pause
- put knit my yarn with my needles
- pause
- pause
- if "$righthandnoun" = "yarn" then send stow right
- if "$lefthandnoun" = "yarn" then send stow left
- pause 0.2
- goto action
- knit:
- action:
- pause
- pause
- put %action my needles
- goto action
- done:
- pause
- pause
- put analyze my %1
- pause
- pause
- put stow my %1
- pause
- If_2 goto %2
- end:
- echo
- echo
- put #echo Yellow Done knitting!
- echo
- echo
- exit
- book:
- echo
- echo
- put #echo Yellow " That pattern isn't in this book!
- put #echo Yellow " Check the contents and try again.
- put #echo Yellow " Exiting script.
- echo
- echo
- exit
- echo
- echo
- exit
- yarn:
- put count my yarn
- pause
- put stow my yarn
- echo
- echo
- put #echo Yellow " Not enough yarn. Either buy more supplies or
- put #echo Yellow " combine any yarn you may have together.
- put #echo Yellow " Exiting script.
- echo
- echo
- exit
- list:
- put #echo Yellow Master Tailor Book Knit Patterns List:
- echo
- echo
- put #echo Yellow " napkin..............extremely easy...........10 yards
- put #echo Yellow " armband ............extremely easy...........10 yards
- put #echo Yellow " socks...............extremely easy...........10 yards
- put #echo Yellow " ankleband...........extremely easy...........10 yards
- put #echo Yellow " headband............very easy................13 yards
- put #echo Yellow " mittens.............very easy................13 yards
- put #echo Yellow " hood................easy.....................30 yards
- put #echo Yellow " booties.............easy.....................30 yards
- put #echo Yellow " hat.................easy.....................30 yards
- put #echo Yellow " scarf...............easy.....................26 yards
- put #echo Yellow " slippers............easy.....................26 yards
- put #echo Yellow " skirt...............simple...................60 yards
- put #echo Yellow " shirt...............simple...................40 yards
- put #echo Yellow " gloves..............simple...................13 yards
- put #echo Yellow " legwarmers..........simple...................60 yards
- put #echo Yellow " towel...............simple...................40 yards
- put #echo Yellow " hose................basic....................60 yards
- put #echo Yellow " sweater.............basic....................50 yards
- put #echo Yellow " cloak...............somewhat challenging.....70 yards
- put #echo Yellow " blanket.............challenging..............90 yards
- echo
- echo
- put #echo Yellow " Be sure to use the exact name (slippers, not slipper, for example)
- put #echo Yellow " If additional patterns are added in future, you'll need to add the name of the pattern
- put #echo Yellow " to the labels and to "var knitlist" line 55 in this script.
- echo
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement