-
Notifications
You must be signed in to change notification settings - Fork 1
/
reinforce.cmd
185 lines (156 loc) · 3.65 KB
/
reinforce.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
debug 5
var item %1
var container $lw.container
var belt outfitter's belt
var has_craft_belt $has_tailor_craft_belt
var tool
if_2 then goto %2
GetBook:
put get my tailor book;study my book
waitfor Roundtime
pause 0.5
pause 0.5
put stow my book
waitfor You put
gosub swap.tool scissor
FirstCut:
put cut my %item with my scissor
goto Matches
Matches:
match %s ...wait
matchre done not damaged enough to warrant repair
matchre Get.Yard benefit from some remeasuring
matchre Get.Scissor cut away more of the fabric with scissors
matchre Get.Pins use some pins to keep it straight|use some pins to align them
match Get.Slick A deep crease develops
match Get.Slick wrinkles from all the handling and could use
matchre LargePad ready to be reinforced with some large cloth padding
matchre Get.Needle Roundtime|not seem suitable for that task
matchwait
MoreThread:
put put my needle in my %container;get thread in my %container
match Thread You get
match NoThread What were you referring to?
matchwait 3
goto NoThread
Thread:
put put my thread on needle in my %container
waitfor You carefully thread
put get needle in my %container
goto Sew
NoThread:
echo
echo ########### NO THREAD ###########
echo
goto done
Sew:
save Sew
pause 0.5
put play $play.song $play.style
put push my %item with my sew needle
goto Matches
Poke:
save Poke
pause 0.5
put poke my %item with my %tool
goto Matches
Measure:
save Measure
pause 0.5
put measure my %item with my yardstick
goto Matches
Cut:
save Cut
pause 0.5
put cut my %item with my scissor
goto Matches
Rub:
save Rub
pause 0.5
put rub %item with my slickstone
goto Matches
Get.Needle:
var last Get.Needle
if %tool = yardstick then goto Get.Scissor
if "$lefthand" = "sewing needles" then goto Sew
pause 1
gosub swap.tool sewing needles
goto Sew
Get.Awl:
var last Get.Awl
gosub swap.tool awl
goto Poke
Get.Pins:
var last Get.Pins
pause 1
gosub swap.tool pins
goto Poke
Get.Scissor:
var last Get.Scissor
pause 1
gosub swap.tool scissor
goto Cut
Get.Slick:
var last Get.slick
pause 1
gosub swap.tool slickstone
goto Rub
Get.Yard:
var last Get.Yard
pause 1
gosub swap.tool yardstick
goto Measure
swap.tool:
var tool $0
if !contains("$lefthand" != "%tool") then
{
if ("$lefthand" != "Empty") then gosub stow.tool
pause 0.5
matchre %last \.\.\.wait|Sorry
matchre RETURN You get|You remove
#if "%has_craft_belt" = "YES" then put untie my %tool
#else put get my %tool
put untie my %tool from my %belt
put get my %tool in my %container
matchwait 5
goto done
}
pause 0.5
return
stow.tool:
if "$lefthand" = "Empty" then return
put stop play
pause 0.5
matchre RETURN You attach|You put|Tie what
matchre stow.tool.2 doesn't seem to fit
if "%has_craft_belt" = "YES" then put tie my $lefthandnoun to my %belt
else put put my $lefthandnoun in my %container
matchwait
stow.tool.2:
put put my $lefthandnoun in my %container
return
RETURN:
pause 0.5
return
LargePad:
var assemble Large Pad
goto Assemble
SmallPad:
var assemble Small Pad
goto Assemble
Handle:
var assemble shield handle
goto Assemble
LongCord:
var assemble long cord
goto Assemble
Assemble:
var tool Assemble
gosub stow.tool
put get %assemble in my %container
waitfor You get
put assemble my %assemble with my %item
goto Get.Needle
done:
gosub stow.tool
put #parse TAILORING DONE