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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
|
Route110_TrickHousePuzzle7_MapScripts:: @ 816314C
map_script 5, Route110_TrickHousePuzzle7_MapScript1_163161
map_script 3, Route110_TrickHousePuzzle7_MapScript1_163253
map_script 1, Route110_TrickHousePuzzle7_MapScript1_16326F
map_script 2, Route110_TrickHousePuzzle7_MapScript2_16327B
.byte 0
Route110_TrickHousePuzzle7_MapScript1_163161:: @ 8163161
call Route110_TrickHousePuzzle7_EventScript_163167
end
Route110_TrickHousePuzzle7_EventScript_163167:: @ 8163167
checkflag 194
callif 1, Route110_TrickHousePuzzle7_EventScript_163195
checkflag 195
callif 1, Route110_TrickHousePuzzle7_EventScript_1631A8
checkflag 196
callif 1, Route110_TrickHousePuzzle7_EventScript_1631BB
checkflag 197
callif 1, Route110_TrickHousePuzzle7_EventScript_1631CE
checkflag 198
callif 1, Route110_TrickHousePuzzle7_EventScript_1631E1
return
Route110_TrickHousePuzzle7_EventScript_163195:: @ 8163195
setmaptile 13, 17, 610, 0
setmaptile 12, 16, 575, 1
return
Route110_TrickHousePuzzle7_EventScript_1631A8:: @ 81631A8
setmaptile 12, 13, 610, 0
setmaptile 12, 11, 575, 1
return
Route110_TrickHousePuzzle7_EventScript_1631BB:: @ 81631BB
setmaptile 7, 12, 610, 0
setmaptile 5, 10, 575, 1
return
Route110_TrickHousePuzzle7_EventScript_1631CE:: @ 81631CE
setmaptile 6, 6, 636, 0
setmaptile 4, 4, 575, 1
return
Route110_TrickHousePuzzle7_EventScript_1631E1:: @ 81631E1
setmaptile 8, 4, 609, 0
setmaptile 7, 5, 575, 1
return
Route110_TrickHousePuzzle7_EventScript_1631F4:: @ 81631F4
setmaptile 13, 17, 611, 0
setmaptile 12, 16, 574, 1
return
Route110_TrickHousePuzzle7_EventScript_163207:: @ 8163207
setmaptile 12, 13, 609, 0
setmaptile 12, 11, 574, 1
return
Route110_TrickHousePuzzle7_EventScript_16321A:: @ 816321A
setmaptile 7, 12, 611, 0
setmaptile 5, 10, 574, 1
return
Route110_TrickHousePuzzle7_EventScript_16322D:: @ 816322D
setmaptile 6, 6, 635, 0
setmaptile 4, 4, 574, 1
return
Route110_TrickHousePuzzle7_EventScript_163240:: @ 8163240
setmaptile 8, 4, 608, 0
setmaptile 7, 5, 574, 1
return
Route110_TrickHousePuzzle7_MapScript1_163253:: @ 8163253
compare 0x40b6, 1
jumpeq Route110_TrickHousePuzzle7_EventScript_16326E
clearflag 194
clearflag 195
clearflag 196
clearflag 197
clearflag 198
end
Route110_TrickHousePuzzle7_EventScript_16326E:: @ 816326E
end
Route110_TrickHousePuzzle7_MapScript1_16326F:: @ 816326F
compare 0x40b6, 1
callif 1, Route110_TrickHousePuzzle7_EventScript_163167
end
Route110_TrickHousePuzzle7_MapScript2_16327B:: @ 816327B
map_script_2 0x40b6, 1, Route110_TrickHousePuzzle7_EventScript_163285
.2byte 0
Route110_TrickHousePuzzle7_EventScript_163285:: @ 8163285
setvar 0x40b6, 0
end
Route110_TrickHousePuzzle7_EventScript_16328B:: @ 816328B
lockall
compare 0x40b1, 0
jumpeq Route110_TrickHousePuzzle7_EventScript_16329D
jump Route110_TrickHousePuzzle7_EventScript_161892
end
Route110_TrickHousePuzzle7_EventScript_16329D:: @ 816329D
setvar 0x40b1, 1
jump Route110_TrickHousePuzzle7_EventScript_16189C
end
Route110_TrickHousePuzzle7_EventScript_1632A8:: @ 81632A8
lockall
setvar 0x40b6, 1
warpteleport Route110_TrickHousePuzzle7, 255, 3, 19
waitstate
releaseall
end
Route110_TrickHousePuzzle7_EventScript_1632B9:: @ 81632B9
lockall
pause 32
checkflag 194
callif 0, Route110_TrickHousePuzzle7_EventScript_163195
checkflag 194
callif 1, Route110_TrickHousePuzzle7_EventScript_1631F4
special 142
playsfx 36
checkflag 194
jumpif 0, Route110_TrickHousePuzzle7_EventScript_1633A4
checkflag 194
jumpeq Route110_TrickHousePuzzle7_EventScript_1633A9
end
Route110_TrickHousePuzzle7_EventScript_1632E8:: @ 81632E8
lockall
pause 32
checkflag 195
callif 0, Route110_TrickHousePuzzle7_EventScript_1631A8
checkflag 195
callif 1, Route110_TrickHousePuzzle7_EventScript_163207
special 142
playsfx 36
checkflag 195
jumpif 0, Route110_TrickHousePuzzle7_EventScript_1633AE
checkflag 195
jumpeq Route110_TrickHousePuzzle7_EventScript_1633B3
end
Route110_TrickHousePuzzle7_EventScript_163317:: @ 8163317
lockall
pause 32
checkflag 196
callif 0, Route110_TrickHousePuzzle7_EventScript_1631BB
checkflag 196
callif 1, Route110_TrickHousePuzzle7_EventScript_16321A
special 142
playsfx 36
checkflag 196
jumpif 0, Route110_TrickHousePuzzle7_EventScript_1633B8
checkflag 196
jumpeq Route110_TrickHousePuzzle7_EventScript_1633BD
end
Route110_TrickHousePuzzle7_EventScript_163346:: @ 8163346
lockall
pause 32
checkflag 197
callif 0, Route110_TrickHousePuzzle7_EventScript_1631CE
checkflag 197
callif 1, Route110_TrickHousePuzzle7_EventScript_16322D
special 142
playsfx 36
checkflag 197
jumpif 0, Route110_TrickHousePuzzle7_EventScript_1633C2
checkflag 197
jumpeq Route110_TrickHousePuzzle7_EventScript_1633C7
end
Route110_TrickHousePuzzle7_EventScript_163375:: @ 8163375
lockall
pause 32
checkflag 198
callif 0, Route110_TrickHousePuzzle7_EventScript_1631E1
checkflag 198
callif 1, Route110_TrickHousePuzzle7_EventScript_163240
special 142
playsfx 36
checkflag 198
jumpif 0, Route110_TrickHousePuzzle7_EventScript_1633CC
checkflag 198
jumpeq Route110_TrickHousePuzzle7_EventScript_1633D1
end
Route110_TrickHousePuzzle7_EventScript_1633A4:: @ 81633A4
setflag 194
releaseall
end
Route110_TrickHousePuzzle7_EventScript_1633A9:: @ 81633A9
clearflag 194
releaseall
end
Route110_TrickHousePuzzle7_EventScript_1633AE:: @ 81633AE
setflag 195
releaseall
end
Route110_TrickHousePuzzle7_EventScript_1633B3:: @ 81633B3
clearflag 195
releaseall
end
Route110_TrickHousePuzzle7_EventScript_1633B8:: @ 81633B8
setflag 196
releaseall
end
Route110_TrickHousePuzzle7_EventScript_1633BD:: @ 81633BD
clearflag 196
releaseall
end
Route110_TrickHousePuzzle7_EventScript_1633C2:: @ 81633C2
setflag 197
releaseall
end
Route110_TrickHousePuzzle7_EventScript_1633C7:: @ 81633C7
clearflag 197
releaseall
end
Route110_TrickHousePuzzle7_EventScript_1633CC:: @ 81633CC
setflag 198
releaseall
end
Route110_TrickHousePuzzle7_EventScript_1633D1:: @ 81633D1
clearflag 198
releaseall
end
Route110_TrickHousePuzzle7_EventScript_1633D6:: @ 81633D6
trainerbattle 0, OPPONENT_JOSHUA, 0, Route110_TrickHousePuzzle7_Text_19DF0B, Route110_TrickHousePuzzle7_Text_19DF4B
msgbox Route110_TrickHousePuzzle7_Text_19DF7E, 6
end
Route110_TrickHousePuzzle7_EventScript_1633ED:: @ 81633ED
trainerbattle 0, OPPONENT_PATRICIA, 0, Route110_TrickHousePuzzle7_Text_19DFBB, Route110_TrickHousePuzzle7_Text_19DFF2
msgbox Route110_TrickHousePuzzle7_Text_19E00F, 6
end
Route110_TrickHousePuzzle7_EventScript_163404:: @ 8163404
trainerbattle 0, OPPONENT_ALEXIS, 0, Route110_TrickHousePuzzle7_Text_19E054, Route110_TrickHousePuzzle7_Text_19E098
msgbox Route110_TrickHousePuzzle7_Text_19E0B2, 6
end
|