Advertisement
Guest User

Untitled

a guest
May 5th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.95 KB | None | 0 0
  1. ### debug 10
  2.  
  3. If_1 goto %1
  4.  
  5. intro:
  6. echo
  7. put #echo Yellow "** Knit!
  8. put #echo Yellow "**
  9. put #echo Yellow "** By Brynnhilde, based on spin.cmd code by Glimmer at Genie Bulletin Forum
  10. put #echo Yellow "**
  11. put #echo Yellow "** .knit list
  12. put #echo Yellow "** for a complete list of patterns you can knit, with difficulty and yardage.
  13. put #echo Yellow "** Note that the list is for the Master Tailoring book - if you have Apprentice or Journeyman,
  14. put #echo Yellow "** be sure the pattern you want to knit is in your book!
  15. put #echo Yellow "** Once you've chosen what you want to knit, make sure you have:
  16. put #echo Yellow "**
  17. put #echo Yellow "** Tailoring book
  18. put #echo Yellow "** Yarn
  19. put #echo Yellow "** Knitting needles
  20. put #echo Yellow "**
  21. put #echo Yellow "** .knit <pattern>
  22. put #echo Yellow "** Example: .knit gloves
  23. put #echo Yellow "** Be sure to use the exact name (gloves, not glove, in this example)
  24. put #echo Yellow "**
  25. put #echo Yellow "** If you want to knit until you run out of yarn, then
  26. put #echo Yellow "**
  27. put #echo Yellow "** .knit <pattern> repeat
  28. put #echo Yellow "** Example: .knit gloves repeat
  29. echo
  30. echo
  31. exit
  32.  
  33. napkin:
  34. armband:
  35. socks:
  36. ankleband:
  37. headband:
  38. mittens:
  39. hood:
  40. booties:
  41. hat:
  42. scarf:
  43. slippers:
  44. skirt:
  45. shirt:
  46. gloves:
  47. legwarmers:
  48. towel:
  49. hose:
  50. sweater:
  51. cloak:
  52. blanket:
  53. repeat:
  54. ### Add any new pattern names to the labels above (pattern:) and to the below list (|pattern)
  55. var knitlist napkin|armband|socks|ankleband|headband|mittens|hood|booties|hat|scarf|slippers|skirt|shirt|gloves|legwarmers|towel|hose|sweater|cloak|blanket
  56. pause
  57. if !contains("%knitlist", "%1") then goto book
  58.  
  59. action goto yarn when You need a larger amount of material to continue crafting\.
  60. action var action knit when a slip knot in your yarn
  61. action var action knit when (the yarn|row)
  62. action var action push when (must be pushed|to be pushed)
  63. action var action turn when (by turning the needles|the needles must be turned)
  64. action var action cast when The garment is nearly complete
  65. action goto done when cast it off from your knitting needles
  66. action goto end when What were you referring to
  67. action var pattern $1 when Page (\d+): (a|some) knitted %1
  68.  
  69.  
  70. if "$righthand" != "Empty" then send stow right
  71. if "$lefthand" != "Empty" then send stow left
  72. pause 0.5
  73. put get my tailor book;turn my book to chapter 5
  74. pause
  75. pause 0.5
  76. put read my tailor book
  77. pause 0.5
  78. pause
  79. put turn my book to page %pattern
  80. pause 0.5
  81. put study my book
  82. pause
  83. pause
  84. put stow my book
  85. pause 0.2
  86. put get my knit needles
  87. pause 0.2
  88. put get my yarn
  89. pause
  90. put knit my yarn with my needles
  91. pause
  92. pause
  93. if "$righthandnoun" = "yarn" then send stow right
  94. if "$lefthandnoun" = "yarn" then send stow left
  95. pause 0.2
  96. goto action
  97.  
  98. knit:
  99. action:
  100. pause
  101. pause
  102. put %action my needles
  103. goto action
  104.  
  105. done:
  106. pause
  107. pause
  108. put analyze my %1
  109. pause
  110. pause
  111. put stow my %1
  112. pause
  113.  
  114. If_2 goto %2
  115.  
  116. end:
  117. echo
  118. echo
  119. put #echo Yellow Done knitting!
  120. echo
  121. echo
  122. exit
  123.  
  124. book:
  125. echo
  126. echo
  127. put #echo Yellow " That pattern isn't in this book!
  128. put #echo Yellow " Check the contents and try again.
  129. put #echo Yellow " Exiting script.
  130. echo
  131. echo
  132. exit
  133. echo
  134. echo
  135. exit
  136.  
  137. yarn:
  138. put count my yarn
  139. pause
  140. put stow my yarn
  141. echo
  142. echo
  143. put #echo Yellow " Not enough yarn. Either buy more supplies or
  144. put #echo Yellow " combine any yarn you may have together.
  145. put #echo Yellow " Exiting script.
  146. echo
  147. echo
  148. exit
  149.  
  150. list:
  151. put #echo Yellow Master Tailor Book Knit Patterns List:
  152. echo
  153. echo
  154. put #echo Yellow " napkin..............extremely easy...........10 yards
  155. put #echo Yellow " armband ............extremely easy...........10 yards
  156. put #echo Yellow " socks...............extremely easy...........10 yards
  157. put #echo Yellow " ankleband...........extremely easy...........10 yards
  158. put #echo Yellow " headband............very easy................13 yards
  159. put #echo Yellow " mittens.............very easy................13 yards
  160. put #echo Yellow " hood................easy.....................30 yards
  161. put #echo Yellow " booties.............easy.....................30 yards
  162. put #echo Yellow " hat.................easy.....................30 yards
  163. put #echo Yellow " scarf...............easy.....................26 yards
  164. put #echo Yellow " slippers............easy.....................26 yards
  165. put #echo Yellow " skirt...............simple...................60 yards
  166. put #echo Yellow " shirt...............simple...................40 yards
  167. put #echo Yellow " gloves..............simple...................13 yards
  168. put #echo Yellow " legwarmers..........simple...................60 yards
  169. put #echo Yellow " towel...............simple...................40 yards
  170. put #echo Yellow " hose................basic....................60 yards
  171. put #echo Yellow " sweater.............basic....................50 yards
  172. put #echo Yellow " cloak...............somewhat challenging.....70 yards
  173. put #echo Yellow " blanket.............challenging..............90 yards
  174. echo
  175. echo
  176. put #echo Yellow " Be sure to use the exact name (slippers, not slipper, for example)
  177. put #echo Yellow " If additional patterns are added in future, you'll need to add the name of the pattern
  178. put #echo Yellow " to the labels and to "var knitlist" line 55 in this script.
  179. echo
  180. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement