summaryrefslogtreecommitdiff
path: root/maps/Route35.asm
blob: ca4159b773b3d170083a8a1e30fd05ee67b94a92 (plain)
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
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
Route35_MapScriptHeader: ; 0x19c8ad
	; trigger count
	db 0

	; callback count
	db 0
; 0x19c8af

TrainerBird_keeperBryan: ; 0x19c8af
	; bit/flag number
	dw $3fd

	; trainer group && trainer id
	db BIRD_KEEPER, BRYAN

	; text when seen
	dw Bird_keeperBryanSeenText

	; text when trainer beaten
	dw Bird_keeperBryanBeatenText

	; script when lost
	dw $0000

	; script when talk again
	dw Bird_keeperBryanScript
; 0x19c8bb

Bird_keeperBryanScript: ; 0x19c8bb
	talkaftercancel
	loadfont
	2writetext UnknownText_0x19cc87
	closetext
	loadmovesprites
	end
; 0x19c8c3

TrainerJugglerIrwin1: ; 0x19c8c3
	; bit/flag number
	dw $495

	; trainer group && trainer id
	db JUGGLER, IRWIN1

	; text when seen
	dw JugglerIrwin1SeenText

	; text when trainer beaten
	dw JugglerIrwin1BeatenText

	; script when lost
	dw $0000

	; script when talk again
	dw JugglerIrwin1Script
; 0x19c8cf

JugglerIrwin1Script: ; 0x19c8cf
	writecode $17, $16
	talkaftercancel
	loadfont
	checkcellnum $16
	iftrue UnknownScript_0x19c90f
	checkevent $0281
	iftrue UnknownScript_0x19c8ec
	2writetext UnknownText_0x19cd5a
	keeptextopen
	setevent $0281
	2call UnknownScript_0x19c903
	2jump UnknownScript_0x19c8ef
; 0x19c8ec

UnknownScript_0x19c8ec: ; 0x19c8ec
	2call UnknownScript_0x19c907
UnknownScript_0x19c8ef: ; 0x19c8ef
	askforphonenumber $16
	if_equal $1, UnknownScript_0x19c917
	if_equal $2, UnknownScript_0x19c913
	trainertotext JUGGLER, IRWIN1, $0
	2call UnknownScript_0x19c90b
	2jump UnknownScript_0x19c90f
; 0x19c903

UnknownScript_0x19c903: ; 0x19c903
	jumpstd $0019
	end
; 0x19c907

UnknownScript_0x19c907: ; 0x19c907
	jumpstd $001a
	end
; 0x19c90b

UnknownScript_0x19c90b: ; 0x19c90b
	jumpstd $001b
	end
; 0x19c90f

UnknownScript_0x19c90f: ; 0x19c90f
	jumpstd $001c
	end
; 0x19c913

UnknownScript_0x19c913: ; 0x19c913
	jumpstd $001d
	end
; 0x19c917

UnknownScript_0x19c917: ; 0x19c917
	jumpstd $001e
	end
; 0x19c91b

UnknownScript_0x19c91b: ; 0x19c91b
	jumpstd $001f
	end
; 0x19c91f

TrainerCamperIvan: ; 0x19c91f
	; bit/flag number
	dw $41c

	; trainer group && trainer id
	db CAMPER, IVAN

	; text when seen
	dw CamperIvanSeenText

	; text when trainer beaten
	dw CamperIvanBeatenText

	; script when lost
	dw $0000

	; script when talk again
	dw CamperIvanScript
; 0x19c92b

CamperIvanScript: ; 0x19c92b
	talkaftercancel
	loadfont
	2writetext UnknownText_0x19cac4
	closetext
	loadmovesprites
	end
; 0x19c933

TrainerCamperElliot: ; 0x19c933
	; bit/flag number
	dw $41d

	; trainer group && trainer id
	db CAMPER, ELLIOT

	; text when seen
	dw CamperElliotSeenText

	; text when trainer beaten
	dw CamperElliotBeatenText

	; script when lost
	dw $0000

	; script when talk again
	dw CamperElliotScript
; 0x19c93f

CamperElliotScript: ; 0x19c93f
	talkaftercancel
	loadfont
	2writetext UnknownText_0x19cb47
	closetext
	loadmovesprites
	end
; 0x19c947

TrainerPicnickerBrooke: ; 0x19c947
	; bit/flag number
	dw $480

	; trainer group && trainer id
	db PICNICKER, BROOKE

	; text when seen
	dw PicnickerBrookeSeenText

	; text when trainer beaten
	dw PicnickerBrookeBeatenText

	; script when lost
	dw $0000

	; script when talk again
	dw PicnickerBrookeScript
; 0x19c953

PicnickerBrookeScript: ; 0x19c953
	talkaftercancel
	loadfont
	2writetext UnknownText_0x19cbba
	closetext
	loadmovesprites
	end
; 0x19c95b

TrainerPicnickerKim: ; 0x19c95b
	; bit/flag number
	dw $481

	; trainer group && trainer id
	db PICNICKER, KIM

	; text when seen
	dw PicnickerKimSeenText

	; text when trainer beaten
	dw PicnickerKimBeatenText

	; script when lost
	dw $0000

	; script when talk again
	dw PicnickerKimScript
; 0x19c967

PicnickerKimScript: ; 0x19c967
	talkaftercancel
	loadfont
	2writetext UnknownText_0x19cc21
	closetext
	loadmovesprites
	end
; 0x19c96f

TrainerBug_catcherArnie1: ; 0x19c96f
	; bit/flag number
	dw $53f

	; trainer group && trainer id
	db BUG_CATCHER, ARNIE1

	; text when seen
	dw Bug_catcherArnie1SeenText

	; text when trainer beaten
	dw Bug_catcherArnie1BeatenText

	; script when lost
	dw $0000

	; script when talk again
	dw Bug_catcherArnie1Script
; 0x19c97b

Bug_catcherArnie1Script: ; 0x19c97b
	writecode $17, $17
	talkaftercancel
	loadfont
	checkflag $0072
	iftrue UnknownScript_0x19c9bb
	checkflag $00a1
	iftrue UnknownScript_0x19ca2f
	checkcellnum $17
	iftrue UnknownScript_0x19c90f
	checkevent $0283
	iftrue UnknownScript_0x19c9a4
	2writetext UnknownText_0x19cdf6
	keeptextopen
	setevent $0283
	2call UnknownScript_0x19c903
	2jump UnknownScript_0x19c9a7
; 0x19c9a4

UnknownScript_0x19c9a4: ; 0x19c9a4
	2call UnknownScript_0x19c907
UnknownScript_0x19c9a7: ; 0x19c9a7
	askforphonenumber $17
	if_equal $1, UnknownScript_0x19c917
	if_equal $2, UnknownScript_0x19c913
	trainertotext BUG_CATCHER, ARNIE1, $0
	2call UnknownScript_0x19c90b
	2jump UnknownScript_0x19c90f
; 0x19c9bb

UnknownScript_0x19c9bb: ; 0x19c9bb
	2call UnknownScript_0x19c91b
	winlosstext Bug_catcherArnie1BeatenText, $0000
	copybytetovar $da01
	if_equal $4, UnknownScript_0x19c9da
	if_equal $3, UnknownScript_0x19c9e0
	if_equal $2, UnknownScript_0x19c9e6
	if_equal $1, UnknownScript_0x19c9ec
	if_equal $0, UnknownScript_0x19c9f2
UnknownScript_0x19c9da: ; 0x19c9da
	checkevent EVENT_RESTORED_POWER_TO_KANTO
	iftrue UnknownScript_0x19ca26
UnknownScript_0x19c9e0: ; 0x19c9e0
	checkevent $0044
	iftrue UnknownScript_0x19ca19
UnknownScript_0x19c9e6: ; 0x19c9e6
	checkflag $004b
	iftrue UnknownScript_0x19ca0c
UnknownScript_0x19c9ec: ; 0x19c9ec
	checkflag $004a
	iftrue UnknownScript_0x19c9ff
UnknownScript_0x19c9f2: ; 0x19c9f2
	loadtrainer BUG_CATCHER, ARNIE1
	startbattle
	returnafterbattle
	loadvar $da01, $1
	clearflag $0072
	end
; 0x19c9ff

UnknownScript_0x19c9ff: ; 0x19c9ff
	loadtrainer BUG_CATCHER, ARNIE2
	startbattle
	returnafterbattle
	loadvar $da01, $2
	clearflag $0072
	end
; 0x19ca0c

UnknownScript_0x19ca0c: ; 0x19ca0c
	loadtrainer BUG_CATCHER, ARNIE3
	startbattle
	returnafterbattle
	loadvar $da01, $3
	clearflag $0072
	end
; 0x19ca19

UnknownScript_0x19ca19: ; 0x19ca19
	loadtrainer BUG_CATCHER, ARNIE4
	startbattle
	returnafterbattle
	loadvar $da01, $4
	clearflag $0072
	end
; 0x19ca26

UnknownScript_0x19ca26: ; 0x19ca26
	loadtrainer BUG_CATCHER, ARNIE5
	startbattle
	returnafterbattle
	clearflag $0072
	end
; 0x19ca2f

UnknownScript_0x19ca2f: ; 0x19ca2f
	2writetext UnknownText_0x19ce38
	closetext
	loadmovesprites
	end
; 0x19ca35

TrainerFirebreatherWalt: ; 0x19ca35
	; bit/flag number
	dw $44b

	; trainer group && trainer id
	db FIREBREATHER, WALT

	; text when seen
	dw FirebreatherWaltSeenText

	; text when trainer beaten
	dw FirebreatherWaltBeatenText

	; script when lost
	dw $0000

	; script when talk again
	dw FirebreatherWaltScript
; 0x19ca41

FirebreatherWaltScript: ; 0x19ca41
	talkaftercancel
	loadfont
	2writetext UnknownText_0x19cebc
	closetext
	loadmovesprites
	end
; 0x19ca49

OfficerScript_0x19ca49: ; 0x19ca49
	faceplayer
	loadfont
	checktime $4
	iffalse UnknownScript_0x19ca73
	checkevent $0547
	iftrue UnknownScript_0x19ca6d
	playmusic $000c
	2writetext UnknownText_0x19ceea
	closetext
	loadmovesprites
	winlosstext UnknownText_0x19cf06, $0000
	loadtrainer OFFICER, DIRK
	startbattle
	returnafterbattle
	setevent $0547
	loadmovesprites
	end
; 0x19ca6d

UnknownScript_0x19ca6d: ; 0x19ca6d
	2writetext UnknownText_0x19cf0f
	closetext
	loadmovesprites
	end
; 0x19ca73

UnknownScript_0x19ca73: ; 0x19ca73
	2writetext UnknownText_0x19cf56
	closetext
	loadmovesprites
	end
; 0x19ca79

MapRoute35Signpost1Script: ; 0x19ca79
	jumptext UnknownText_0x19cf94
; 0x19ca7c

ItemFragment_0x19ca7c: ; 0x19ca7c
	db TM_04, 1
; 0x19ca7e

FruitTreeScript_0x19ca7e: ; 0x19ca7e
	fruittree $b
; 0x19ca80

CamperIvanSeenText: ; 0x19ca80
	text "I've been getting"
	line "#MON data off"

	para "my radio. I think"
	line "I'm good."
	done
; 0x19cabb

CamperIvanBeatenText: ; 0x19cabb
	text "I give!"
	done
; 0x19cac4

UnknownText_0x19cac4: ; 0x19cac4
	text "Music on the radio"
	line "changes the moods"
	cont "of wild #MON."
	done
; 0x19caf8

CamperElliotSeenText: ; 0x19caf8
	text "I'm gonna show my"
	line "girlfriend I'm hot"
	cont "stuff!"
	done
; 0x19cb23

CamperElliotBeatenText: ; 0x19cb23
	text "I wish you would"
	line "have lost for me…"
	done
; 0x19cb47

UnknownText_0x19cb47: ; 0x19cb47
	text "I was humiliated"
	line "in front of my"
	cont "girlfriend…"
	done
; 0x19cb74

PicnickerBrookeSeenText: ; 0x19cb74
	text "My boyfriend's"
	line "weak, so I can't"
	cont "rely on him."
	done
; 0x19cba0

PicnickerBrookeBeatenText: ; 0x19cba0
	text "Oh, my! You're so"
	line "strong!"
	done
; 0x19cbba

UnknownText_0x19cbba: ; 0x19cbba
	text "I can count on my"
	line "#MON more than"
	cont "my boyfriend."
	done
; 0x19cbea

PicnickerKimSeenText: ; 0x19cbea
	text "Are you going to"
	line "the GYM? Me too!"
	done
; 0x19cc0d

PicnickerKimBeatenText: ; 0x19cc0d
	text "Oh. I couldn't"
	line "win…"
	done
; 0x19cc21

UnknownText_0x19cc21: ; 0x19cc21
	text "The GYM BADGES are"
	line "pretty. I collect"
	cont "them."
	done
; 0x19cc4d

Bird_keeperBryanSeenText: ; 0x19cc4d
	text "What kinds of"
	line "BALLS do you use?"
	done
; 0x19cc6e

Bird_keeperBryanBeatenText: ; 0x19cc6e
	text "Yikes! Not fast"
	line "enough!"
	done
; 0x19cc87

UnknownText_0x19cc87: ; 0x19cc87
	text "Some #MON flee"
	line "right away."

	para "Try catching them"
	line "with KURT's FAST"
	cont "BALL."

	para "Whenever I find a"
	line "WHT APRICORN, I"
	cont "take it to KURT."

	para "He turns it into a"
	line "custom BALL."
	done
; 0x19cd1e

JugglerIrwin1SeenText: ; 0x19cd1e
	text "Behold my graceful"
	line "BALL dexterity!"
	done
; 0x19cd42

JugglerIrwin1BeatenText: ; 0x19cd42
	text "Whew! That was a"
	line "jolt!"
	done
; 0x19cd5a

UnknownText_0x19cd5a: ; 0x19cd5a
	text "I was going to"
	line "dazzle you with my"
	cont "prize #MON."

	para "But your prowess"
	line "electrified me!"
	done
; 0x19cdaa

Bug_catcherArnie1SeenText: ; 0x19cdaa
	text "I'll go anywhere"
	line "if bug #MON"
	cont "appear there."
	done
; 0x19cdd5

Bug_catcherArnie1BeatenText: ; 0x19cdd5
	text "Huh? I shouldn't"
	line "have lost that…"
	done
; 0x19cdf6

UnknownText_0x19cdf6: ; 0x19cdf6
	text "My VENONAT won me"
	line "the Bug-Catching"

	para "Contest at the"
	line "NATIONAL PARK."
	done
; 0x19ce38

UnknownText_0x19ce38: ; 0x19ce38
	text "Wow… Look at all"
	line "those YANMA!"

	para "I'm so blown away,"
	line "I can't move."
	done
; 0x19ce76

FirebreatherWaltSeenText: ; 0x19ce76
	text "I'm practicing my"
	line "fire breathing."
	done
; 0x19ce98

FirebreatherWaltBeatenText: ; 0x19ce98
	text "Ow! I scorched the"
	line "tip of my nose!"
	done
; 0x19cebc

UnknownText_0x19cebc: ; 0x19cebc
	text "The #MON March"
	line "on the radio lures"
	cont "wild #MON."
	done
; 0x19ceea

UnknownText_0x19ceea: ; 0x19ceea
	text "Danger lurks in"
	line "the night!"
	done
; 0x19cf06

UnknownText_0x19cf06: ; 0x19cf06
	text "Whoops!"
	done
; 0x19cf0f

UnknownText_0x19cf0f: ; 0x19cf0f
	text "You know, night-"
	line "time is fun in its"
	cont "own ways."

	para "But don't overdo"
	line "it, OK?"
	done
; 0x19cf56

UnknownText_0x19cf56: ; 0x19cf56
	text "Your #MON look"
	line "pretty tough."

	para "You could go any-"
	line "where safely."
	done
; 0x19cf94

UnknownText_0x19cf94: ; 0x19cf94
	text "ROUTE 35"
	done
; 0x19cf9e

Route35_MapEventHeader: ; 0x19cf9e
	; filler
	db 0, 0

	; warps
	db 3
	warp_def $21, $9, 1, GROUP_ROUTE_35_GOLDENROD_GATE, MAP_ROUTE_35_GOLDENROD_GATE
	warp_def $21, $a, 2, GROUP_ROUTE_35_GOLDENROD_GATE, MAP_ROUTE_35_GOLDENROD_GATE
	warp_def $5, $3, 3, GROUP_ROUTE_35_NATIONAL_PARK_GATE, MAP_ROUTE_35_NATIONAL_PARK_GATE

	; xy triggers
	db 0

	; signposts
	db 2
	signpost 7, 1, $0, MapRoute35Signpost1Script
	signpost 31, 11, $0, MapRoute35Signpost1Script

	; people-events
	db 11
	person_event SPRITE_YOUNGSTER, 23, 8, $a, $0, 255, 255, $a2, 2, TrainerCamperIvan, $ffff
	person_event SPRITE_YOUNGSTER, 24, 12, $6, $0, 255, 255, $a2, 3, TrainerCamperElliot, $ffff
	person_event SPRITE_LASS, 24, 11, $6, $0, 255, 255, $a2, 3, TrainerPicnickerBrooke, $ffff
	person_event SPRITE_LASS, 30, 14, $a, $0, 255, 255, $a2, 1, TrainerPicnickerKim, $ffff
	person_event SPRITE_YOUNGSTER, 32, 18, $6, $0, 255, 255, $92, 0, TrainerBird_keeperBryan, $ffff
	person_event SPRITE_FISHER, 14, 6, $1e, $0, 255, 255, $82, 2, TrainerFirebreatherWalt, $ffff
	person_event SPRITE_BUG_CATCHER, 11, 20, $6, $2, 255, 255, $b2, 3, TrainerBug_catcherArnie1, $ffff
	person_event SPRITE_SUPER_NERD, 14, 9, $a, $0, 255, 255, $92, 2, TrainerJugglerIrwin1, $ffff
	person_event SPRITE_OFFICER, 10, 9, $6, $0, 255, 255, $90, 0, OfficerScript_0x19ca49, $ffff
	person_event SPRITE_FRUIT_TREE, 29, 6, $1, $0, 255, 255, $0, 0, FruitTreeScript_0x19ca7e, $ffff
	person_event SPRITE_POKE_BALL, 20, 17, $1, $0, 255, 255, $1, 0, ItemFragment_0x19ca7c, $06b2
; 0x19d04c