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
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
|
Route104_MapScripts:: @ 814EE8C
map_script 2, Route104_MapScript2_14EE97
map_script 3, Route104_MapScript1_14EEA8
.byte 0
Route104_MapScript2_14EE97:: @ 814EE97
map_script_2 0x408e, 1, Route104_EventScript_14EEA1
.2byte 0
Route104_EventScript_14EEA1:: @ 814EEA1
lockall
jump Route104_EventScript_14EFD5
end
Route104_MapScript1_14EEA8:: @ 814EEA8
call Route104_EventScript_14EEAE
end
Route104_EventScript_14EEAE:: @ 814EEAE
checkflag 127
jumpif 0, Route104_EventScript_14EEC4
checkflag 2057
jumpif 0, Route104_EventScript_14EEC4
clearflag 906
return
Route104_EventScript_14EEC4:: @ 814EEC4
setflag 906
return
Route104_EventScript_14EEC8:: @ 814EEC8
lock
faceplayer
checkflag 246
jumpeq Route104_EventScript_14EEFF
msgbox Route104_Text_1C55B9, 4
giveitem ITEM_CHESTO_BERRY
compare RESULT, 0
jumpeq Route104_EventScript_1A029B
setflag 246
msgbox Route104_Text_1C5665, 4
release
end
Route104_EventScript_14EEFF:: @ 814EEFF
msgbox Route104_Text_1C5665, 4
release
end
Route104_EventScript_14EF09:: @ 814EF09
lock
faceplayer
checkflag 279
jumpeq Route104_EventScript_14EF38
msgbox Route104_Text_16DD91, 4
giveitem ITEM_WHITE_HERB
compare RESULT, 0
jumpeq Route104_EventScript_1A029B
setflag 279
release
end
Route104_EventScript_14EF38:: @ 814EF38
msgbox Route104_Text_16DE36, 4
release
end
Route104_EventScript_14EF42:: @ 814EF42
msgbox Route104_Text_16DA13, 2
end
Route104_EventScript_14EF4B:: @ 814EF4B
msgbox Route104_Text_16DA89, 3
end
Route104_EventScript_14EF54:: @ 814EF54
msgbox Route104_Text_16DEB3, 3
end
Route104_EventScript_14EF5D:: @ 814EF5D
msgbox Route104_Text_16DEC8, 3
end
Route104_EventScript_14EF66:: @ 814EF66
msgbox Route104_Text_16DEE3, 3
end
Route104_EventScript_14EF6F:: @ 814EF6F
msgbox Route104_Text_16DEFD, 3
end
Route104_EventScript_14EF78:: @ 814EF78
msgbox Route104_Text_16DF16, 3
end
Route104_EventScript_14EF81:: @ 814EF81
msgbox Route104_Text_16DAC9, 2
end
Route104_EventScript_14EF8A:: @ 814EF8A
msgbox Route104_Text_16DB5C, 2
end
Route104_EventScript_14EF93:: @ 814EF93
lock
faceplayer
checkflag 262
jumpeq Route104_EventScript_14EFC2
msgbox Route104_Text_16DC5F, 4
giveitem ITEM_TM09
compare RESULT, 0
jumpeq Route104_EventScript_1A029B
setflag 262
release
end
Route104_EventScript_14EFC2:: @ 814EFC2
msgbox Route104_Text_16DD0E, 4
release
end
Route104_EventScript_14EFCC:: @ 814EFCC
msgbox Route104_Text_16DBC9, 2
end
Route104_EventScript_14EFD5:: @ 814EFD5
spritelevelup 8, 0, 19, 0
spritelevelup 255, 0, 19, 0
move 8, Route104_Movement_14F16C
waitmove 0
disappear 8
move 255, Route104_Movement_14F162
waitmove 0
spriteinvisible 255, 0, 19
call Route104_EventScript_1A02E7
move 7, Route104_Movement_14F09F
move 255, Route104_Movement_14F09F
waitmove 0
move 255, Route104_Movement_14F166
waitmove 0
call Route104_EventScript_1A02EF
spritevisible 255, 0, 11
move 255, Route104_Movement_14F168
waitmove 0
movespriteperm 2, 12, 8
reappear 2
spritelevelup 2, 0, 11, 0
clearflag 740
move 2, Route104_Movement_14F16F
waitmove 0
reappear 4
clearflag 743
call Route104_EventScript_1A02EF
setflag 742
spriteinvisible 7, 0, 19
copyvar 0x4096, 0x8008
restorespritelevel 255, 0, 19
restorespritelevel 2, 0, 11
moveoffscreen 2
setvar 0x408e, 0
checkflag 189
jumpif 0, Route104_EventScript_14F08B
checkflag 189
jumpeq Route104_EventScript_14F095
end
Route104_EventScript_14F08B:: @ 814F08B
msgbox Route104_Text_16B347, 4
releaseall
end
Route104_EventScript_14F095:: @ 814F095
msgbox Route104_Text_16B4B5, 4
releaseall
end
Route104_Movement_14F09F:: @ 814F09F
step_down
step_down
step_down
step_down
step_15
step_15
step_15
step_15
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_15
step_15
step_15
step_15
step_18
step_18
step_30
step_30
step_30
step_30
step_30
step_30
step_18
step_18
step_15
step_15
step_15
step_15
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_2d
step_15
step_15
step_15
step_15
step_18
step_18
step_18
step_18
step_30
step_30
step_30
step_30
step_30
step_30
step_30
step_30
step_30
step_30
step_30
step_30
step_30
step_30
step_30
step_30
step_30
step_30
step_30
step_30
step_30
step_30
step_30
step_30
step_30
step_30
step_30
step_30
step_30
step_30
step_30
step_30
step_30
step_30
step_30
step_30
step_30
step_30
step_30
step_30
step_18
step_18
step_18
step_18
step_right
step_right
step_down
step_down
step_15
step_15
step_15
step_15
step_15
step_15
step_15
step_15
step_15
step_15
step_15
step_15
step_15
step_15
step_15
step_down
step_down
step_end
Route104_Movement_14F162:: @ 814F162
step_left
step_down
step_down
step_end
Route104_Movement_14F166:: @ 814F166
step_down
step_end
Route104_Movement_14F168:: @ 814F168
step_down
step_left
step_28
step_end
Route104_Movement_14F16C:: @ 814F16C
step_down
step_down
step_end
Route104_Movement_14F16F:: @ 814F16F
step_down
step_27
step_end
Route104_EventScript_14F172:: @ 814F172
trainerbattle 0, OPPONENT_IVAN, 0, Route104_Text_1B85EB, Route104_Text_1B8637
msgbox Route104_Text_1B8680, 6
end
Route104_EventScript_14F189:: @ 814F189
trainerbattle 0, OPPONENT_BILLY, 0, Route104_Text_1B86BE, Route104_Text_1B86E8
msgbox Route104_Text_1B871C, 6
end
Route104_EventScript_14F1A0:: @ 814F1A0
trainerbattle 0, OPPONENT_HALEY_1, 0, Route104_Text_1B8770, Route104_Text_1B87A7
specialval RESULT, 57
compare RESULT, 1
jumpeq Route104_EventScript_14F1C7
msgbox Route104_Text_1B87C3, 6
end
Route104_EventScript_14F1C7:: @ 814F1C7
trainerbattle 5, OPPONENT_HALEY_1, 0, Route104_Text_1B8839, Route104_Text_1B8852
msgbox Route104_Text_1B8872, 6
end
Route104_EventScript_14F1DE:: @ 814F1DE
trainerbattle 0, OPPONENT_WINSTON_1, 0, Route104_Text_1B88D4, Route104_Text_1B8911
specialval RESULT, 57
compare RESULT, 1
jumpeq Route104_EventScript_14F205
msgbox Route104_Text_1B8925, 6
end
Route104_EventScript_14F205:: @ 814F205
trainerbattle 5, OPPONENT_WINSTON_1, 0, Route104_Text_1B895E, Route104_Text_1B899E
msgbox Route104_Text_1B89C0, 6
end
Route104_EventScript_14F21C:: @ 814F21C
trainerbattle 0, OPPONENT_CINDY_1, 0, Route104_Text_1B8A24, Route104_Text_1B8A61
specialval RESULT, 57
compare RESULT, 1
jumpeq Route104_EventScript_14F243
msgbox Route104_Text_1B8A69, 6
end
Route104_EventScript_14F243:: @ 814F243
trainerbattle 5, OPPONENT_CINDY_1, 0, Route104_Text_1B8AA7, Route104_Text_1B8AD9
msgbox Route104_Text_1B8B02, 6
end
Route104_EventScript_14F25A:: @ 814F25A
trainerbattle 4, OPPONENT_GINA_AND_MIA_1, 0, Route104_Text_1B83E9, Route104_Text_1B8414, Route104_Text_1B845C
special 148
msgbox Route104_Text_1B842C, 4
release
end
Route104_EventScript_14F279:: @ 814F279
trainerbattle 4, OPPONENT_GINA_AND_MIA_1, 0, Route104_Text_1B84DB, Route104_Text_1B850D, Route104_Text_1B8577
special 148
msgbox Route104_Text_1B853B, 4
release
end
|