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
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
|
Route30_MapScriptHeader: ; 0x1a1671
; trigger count
db 0
; callback count
db 0
; 0x1a1673
YoungsterScript_0x1a1673: ; 0x1a1673
waitbutton
playmusic $002a
loadfont
2writetext UnknownText_0x1a1806
pause 30
loadmovesprites
playsound $0041
applymovement $8, MovementData_0x1a17fe
loadfont
faceplayer
2writetext UnknownText_0x1a181c
closetext
spriteface $2, $1
loadmovesprites
playsound $0041
applymovement $7, MovementData_0x1a1802
special $003d
end
; 0x1a169a
TrainerYoungsterJoey1: ; 0x1a169a
; bit/flag number
dw $5a9
; trainer group && trainer id
db YOUNGSTER, JOEY1
; text when seen
dw YoungsterJoey1SeenText
; text when trainer beaten
dw YoungsterJoey1BeatenText
; script when lost
dw $0000
; script when talk again
dw YoungsterJoey1Script
; 0x1a16a6
YoungsterJoey1Script: ; 0x1a16a6
writecode $17, $f
talkaftercancel
loadfont
checkflag $006b
iftrue UnknownScript_0x1a16e0
checkcellnum $f
iftrue UnknownScript_0x1a178f
checkevent $0273
iftrue UnknownScript_0x1a16c9
2writetext UnknownText_0x1a18c2
keeptextopen
setevent $0273
2call UnknownScript_0x1a1783
2jump UnknownScript_0x1a16cc
; 0x1a16c9
UnknownScript_0x1a16c9: ; 0x1a16c9
2call UnknownScript_0x1a1787
UnknownScript_0x1a16cc: ; 0x1a16cc
askforphonenumber $f
if_equal $1, UnknownScript_0x1a1797
if_equal $2, UnknownScript_0x1a1793
trainertotext YOUNGSTER, JOEY1, $0
2call UnknownScript_0x1a178b
2jump UnknownScript_0x1a178f
; 0x1a16e0
UnknownScript_0x1a16e0: ; 0x1a16e0
2call UnknownScript_0x1a179b
winlosstext YoungsterJoey1BeatenText, $0000
copybytetovar $d9f9
if_equal $4, UnknownScript_0x1a16ff
if_equal $3, UnknownScript_0x1a1705
if_equal $2, UnknownScript_0x1a170b
if_equal $1, UnknownScript_0x1a1711
if_equal $0, UnknownScript_0x1a1717
UnknownScript_0x1a16ff: ; 0x1a16ff
checkevent $0044
iftrue UnknownScript_0x1a174b
UnknownScript_0x1a1705: ; 0x1a1705
checkevent EVENT_CLEARED_RADIO_TOWER
iftrue UnknownScript_0x1a173e
UnknownScript_0x1a170b: ; 0x1a170b
checkflag $0047
iftrue UnknownScript_0x1a1731
UnknownScript_0x1a1711: ; 0x1a1711
checkflag $0046
iftrue UnknownScript_0x1a1724
UnknownScript_0x1a1717: ; 0x1a717
loadtrainer YOUNGSTER, JOEY1
startbattle
returnafterbattle
loadvar $d9f9, $1
clearflag $006b
end
; 0x1a1724
UnknownScript_0x1a1724: ; 0x1a1724
loadtrainer YOUNGSTER, JOEY2
startbattle
returnafterbattle
loadvar $d9f9, $2
clearflag $006b
end
; 0x1a1731
UnknownScript_0x1a1731: ; 0x1a1731
loadtrainer YOUNGSTER, JOEY3
startbattle
returnafterbattle
loadvar $d9f9, $3
clearflag $006b
end
; 0x1a173e
UnknownScript_0x1a173e: ; 0x1a173e
loadtrainer YOUNGSTER, JOEY4
startbattle
returnafterbattle
loadvar $d9f9, $4
clearflag $006b
end
; 0x1a174b
UnknownScript_0x1a174b: ; 0x1a174b
loadtrainer YOUNGSTER, JOEY5
startbattle
returnafterbattle
clearflag $006b
checkevent EVENT_JOEY_HP_UP
iftrue UnknownScript_0x1a176f
checkevent $0266
iftrue UnknownScript_0x1a176e
2call UnknownScript_0x1a17a6
verbosegiveitem HP_UP, 1
iffalse UnknownScript_0x1a179f
setevent $0266
2jump UnknownScript_0x1a178f
; 0x1a176e
UnknownScript_0x1a176e: ; 0x1a176e
end
; 0x1a176f
UnknownScript_0x1a176f: ; 0x1a176f
loadfont
2writetext UnknownText_0x1a1bc0
closetext
verbosegiveitem HP_UP, 1
iffalse UnknownScript_0x1a179f
clearevent EVENT_JOEY_HP_UP
setevent $0266
2jump UnknownScript_0x1a178f
; 0x1a1783
UnknownScript_0x1a1783: ; 0x1a1783
jumpstd $0019
end
; 0x1a1787
UnknownScript_0x1a1787: ; 0x1a1787
jumpstd $001a
end
; 0x1a178b
UnknownScript_0x1a178b: ; 0x1a178b
jumpstd $001b
end
; 0x1a178f
UnknownScript_0x1a178f: ; 0x1a178f
jumpstd $001c
end
; 0x1a1793
UnknownScript_0x1a1793: ; 0x1a1793
jumpstd $001d
end
; 0x1a1797
UnknownScript_0x1a1797: ; 0x1a1797
jumpstd $001e
end
; 0x1a179b
UnknownScript_0x1a179b: ; 0x1a179b
jumpstd $001f
end
; 0x1a179f
UnknownScript_0x1a179f: ; 0x1a179f
setevent EVENT_JOEY_HP_UP
jumpstd $0021
end
; 0x1a17a6
UnknownScript_0x1a17a6: ; 0x1a17a6
jumpstd $0022
end
; 0x1a17aa
TrainerYoungsterMikey: ; 0x1a17aa
; bit/flag number
dw $5aa
; trainer group && trainer id
db YOUNGSTER, MIKEY
; text when seen
dw YoungsterMikeySeenText
; text when trainer beaten
dw YoungsterMikeyBeatenText
; script when lost
dw $0000
; script when talk again
dw YoungsterMikeyScript
; 0x1a17b6
YoungsterMikeyScript: ; 0x1a17b6
talkaftercancel
loadfont
2writetext UnknownText_0x1a197d
closetext
loadmovesprites
end
; 0x1a17be
TrainerBug_catcherDon: ; 0x1a17be
; bit/flag number
dw $538
; trainer group && trainer id
db BUG_CATCHER, DON
; text when seen
dw Bug_catcherDonSeenText
; text when trainer beaten
dw Bug_catcherDonBeatenText
; script when lost
dw $0000
; script when talk again
dw Bug_catcherDonScript
; 0x1a17ca
Bug_catcherDonScript: ; 0x1a17ca
talkaftercancel
loadfont
2writetext UnknownText_0x1a1a1c
closetext
loadmovesprites
end
; 0x1a17d2
YoungsterScript_0x1a17d2: ; 0x1a17d2
faceplayer
loadfont
checkevent EVENT_GAVE_MYSTERY_EGG_TO_ELM
iftrue UnknownScript_0x1a17e0
2writetext UnknownText_0x1a1a6a
closetext
loadmovesprites
end
; 0x1a17e0
UnknownScript_0x1a17e0: ; 0x1a17e0
2writetext UnknownText_0x1a1a94
closetext
loadmovesprites
end
; 0x1a17e6
CooltrainerFScript_0x1a17e6: ; 0x1a17e6
jumptextfaceplayer UnknownText_0x1a1ac4
; 0x1a17e9
MapRoute30Signpost0Script: ; 0x1a17e9
jumptext UnknownText_0x1a1b0b
; 0x1a17ec
MapRoute30Signpost1Script: ; 0x1a17ec
jumptext UnknownText_0x1a1b34
; 0x1a17ef
MapRoute30Signpost2Script: ; 0x1a17ef
jumptext UnknownText_0x1a1b55
; 0x1a17f2
MapRoute30Signpost3Script: ; 0x1a17f2
jumptext UnknownText_0x1a1b66
; 0x1a17f5
ItemFragment_0x1a17f5: ; 0x1a17f5
db ANTIDOTE, 1
; 0x1a17f7
FruitTreeScript_0x1a17f7: ; 0x1a17f7
fruittree $2
; 0x1a17f9
FruitTreeScript_0x1a17f9: ; 0x1a17f9
fruittree $5
; 0x1a17fb
MapRoute30SignpostItem4: ; 0x1a17fb
dw $00a4
db POTION
; 0x1a17fe
MovementData_0x1a17fe: ; 0x1a17fe
fix_facing
big_step_up
big_step_down
step_end
; 0x1a1802
MovementData_0x1a1802: ; 0x1a1802
fix_facing
big_step_down
big_step_up
step_end
; 0x1a1806
UnknownText_0x1a1806: ; 0x1a1806
text "Go, RATTATA!"
para "TACKLE!"
done
; 0x1a181c
UnknownText_0x1a181c: ; 0x1a181c
text "What? This is a"
line "big battle!"
cont "Leave me alone!"
done
; 0x1a1849
YoungsterJoey1SeenText: ; 0x1a1849
text "I just lost, so"
line "I'm trying to find"
cont "more #MON."
para "Wait! You look"
line "weak! Come on,"
cont "let's battle!"
done
; 0x1a18a2
YoungsterJoey1BeatenText: ; 0x1a18a2
text "Ack! I lost again!"
line "Doggone it!"
done
; 0x1a18c2
UnknownText_0x1a18c2: ; 0x1a18c2
text "Do I have to have"
line "more #MON in"
para "order to battle"
line "better?"
para "No! I'm sticking"
line "with this one no"
cont "matter what!"
done
; 0x1a1928
YoungsterMikeySeenText: ; 0x1a1928
text "You're a #MON"
line "trainer, right?"
para "Then you have to"
line "battle!"
done
; 0x1a195f
YoungsterMikeyBeatenText: ; 0x1a195f
text "That's strange."
line "I won before."
done
; 0x1a197d
UnknownText_0x1a197d: ; 0x1a197d
text "Becoming a good"
line "trainer is really"
cont "tough."
para "I'm going to bat-"
line "tle other people"
cont "to get better."
done
; 0x1a19d8
Bug_catcherDonSeenText: ; 0x1a19d8
text "Instead of a bug"
line "#MON, I found"
cont "a trainer!"
done
; 0x1a1a03
Bug_catcherDonBeatenText: ; 0x1a1a03
text "Argh! You're too"
line "strong!"
done
; 0x1a1a1c
UnknownText_0x1a1a1c: ; 0x1a1a1c
text "I ran out of #"
line "BALLS while I was"
cont "catching #MON."
para "I should've bought"
line "some more…"
done
; 0x1a1a6a
UnknownText_0x1a1a6a: ; 0x1a1a6a
text "MR.#MON's"
line "house? It's a bit"
cont "farther ahead."
done
; 0x1a1a94
UnknownText_0x1a1a94: ; 0x1a1a94
text "Everyone's having"
line "fun battling!"
cont "You should too!"
done
; 0x1a1ac4
UnknownText_0x1a1ac4: ; 0x1a1ac4
text "I'm not a trainer."
para "But if you look"
line "one in the eyes,"
cont "prepare to battle."
done
; 0x1a1b0b
UnknownText_0x1a1b0b: ; 0x1a1b0b
text "ROUTE 30"
para "VIOLET CITY -"
line "CHERRYGROVE CITY"
done
; 0x1a1b34
UnknownText_0x1a1b34: ; 0x1a1b34
text "MR.#MON'S HOUSE"
line "STRAIGHT AHEAD!"
done
; 0x1a1b55
UnknownText_0x1a1b55: ; 0x1a1b55
text "MR.#MON'S HOUSE"
done
; 0x1a1b66
UnknownText_0x1a1b66: ; 0x1a1b66
text "TRAINER TIPS"
para "No stealing other"
line "people's #MON!"
para "# BALLS are to"
line "be thrown only at"
cont "wild #MON!"
done
; 0x1a1bc0
UnknownText_0x1a1bc0: ; 0x1a1bc0
text "I lost again…"
line "Gee, you're tough!"
para "Oh yeah, I almost"
line "forgot that I had"
cont "to give you this."
para "Use it to get even"
line "tougher, OK?"
para "I'm going to get"
line "tougher too."
done
; 0x1a1c54
Route30_MapEventHeader: ; 0x1a1c54
; filler
db 0, 0
; warps
db 2
warp_def $27, $7, 1, GROUP_ROUTE_30_BERRY_SPEECH_HOUSE, MAP_ROUTE_30_BERRY_SPEECH_HOUSE
warp_def $5, $11, 1, GROUP_MR_POKEMONS_HOUSE, MAP_MR_POKEMONS_HOUSE
; xy triggers
db 0
; signposts
db 5
signpost 43, 9, $0, MapRoute30Signpost0Script
signpost 29, 13, $0, MapRoute30Signpost1Script
signpost 5, 15, $0, MapRoute30Signpost2Script
signpost 21, 3, $0, MapRoute30Signpost3Script
signpost 9, 14, $7, MapRoute30SignpostItem4
; people-events
db 11
person_event SPRITE_YOUNGSTER, 30, 9, $7, $0, 255, 255, $90, 0, YoungsterScript_0x1a1673, $0714
person_event SPRITE_YOUNGSTER, 32, 6, $9, $0, 255, 255, $92, 3, TrainerYoungsterJoey1, $0715
person_event SPRITE_YOUNGSTER, 27, 9, $6, $0, 255, 255, $92, 1, TrainerYoungsterMikey, $ffff
person_event SPRITE_BUG_CATCHER, 11, 5, $6, $0, 255, 255, $b2, 3, TrainerBug_catcherDon, $ffff
person_event SPRITE_YOUNGSTER, 34, 11, $5, $1, 255, 255, $80, 0, YoungsterScript_0x1a17d2, $ffff
person_event SPRITE_MONSTER, 28, 9, $6, $0, 255, 255, $80, 0, ObjectEvent, $0714
person_event SPRITE_MONSTER, 29, 9, $7, $0, 255, 255, $90, 0, ObjectEvent, $0714
person_event SPRITE_FRUIT_TREE, 43, 9, $1, $0, 255, 255, $0, 0, FruitTreeScript_0x1a17f7, $ffff
person_event SPRITE_FRUIT_TREE, 9, 15, $1, $0, 255, 255, $0, 0, FruitTreeScript_0x1a17f9, $ffff
person_event SPRITE_COOLTRAINER_F, 17, 6, $6, $0, 255, 255, $0, 0, CooltrainerFScript_0x1a17e6, $ffff
person_event SPRITE_POKE_BALL, 39, 12, $1, $0, 255, 255, $1, 0, ItemFragment_0x1a17f5, $07b8
; 0x1a1d0c
|