summaryrefslogtreecommitdiff
path: root/maps/Route43.asm
blob: 56764e1d9777719cda3a4c25d85ca4587fcba130 (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
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
Route43_MapScriptHeader: ; 0x19d04c
	; trigger count
	db 0

	; callback count
	db 1

	; callbacks

	dbw 5, UnknownScript_0x19d051
; 0x19d051

UnknownScript_0x19d051: ; 0x19d051
	checkevent EVENT_CLEARED_ROCKET_HIDEOUT
	iftrue UnknownScript_0x19d05c
	domaptrigger GROUP_ROUTE_43_GATE, MAP_ROUTE_43_GATE, $0
	return
; 0x19d05c

UnknownScript_0x19d05c: ; 0x19d05c
	domaptrigger GROUP_ROUTE_43_GATE, MAP_ROUTE_43_GATE, $1
	return
; 0x19d061

TrainerCamperSpencer: ; 0x19d061
	; bit/flag number
	dw $42c

	; trainer group && trainer id
	db CAMPER, SPENCER

	; text when seen
	dw CamperSpencerSeenText

	; text when trainer beaten
	dw CamperSpencerBeatenText

	; script when lost
	dw $0000

	; script when talk again
	dw CamperSpencerScript
; 0x19d06d

CamperSpencerScript: ; 0x19d06d
	talkaftercancel
	loadfont
	2writetext UnknownText_0x19d57e
	closetext
	loadmovesprites
	end
; 0x19d075

TrainerPokemaniacBen: ; 0x19d075
	; bit/flag number
	dw $4e8

	; trainer group && trainer id
	db POKEMANIAC, BEN

	; text when seen
	dw PokemaniacBenSeenText

	; text when trainer beaten
	dw PokemaniacBenBeatenText

	; script when lost
	dw $0000

	; script when talk again
	dw PokemaniacBenScript
; 0x19d081

PokemaniacBenScript: ; 0x19d081
	talkaftercancel
	loadfont
	2writetext UnknownText_0x19d2d2
	closetext
	loadmovesprites
	end
; 0x19d089

TrainerPokemaniacBrent1: ; 0x19d089
	; bit/flag number
	dw $4e9

	; trainer group && trainer id
	db POKEMANIAC, BRENT1

	; text when seen
	dw PokemaniacBrent1SeenText

	; text when trainer beaten
	dw PokemaniacBrent1BeatenText

	; script when lost
	dw $0000

	; script when talk again
	dw PokemaniacBrent1Script
; 0x19d095

PokemaniacBrent1Script: ; 0x19d095
	writecode $17, $1e
	talkaftercancel
	loadfont
	checkflag $0077
	iftrue UnknownScript_0x19d0cf
	checkcellnum $1e
	iftrue UnknownScript_0x19d138
	checkevent $0291
	iftrue UnknownScript_0x19d0b8
	2writetext UnknownText_0x19d359
	keeptextopen
	setevent $0291
	2call UnknownScript_0x19d12c
	2jump UnknownScript_0x19d0bb
; 0x19d0b8

UnknownScript_0x19d0b8: ; 0x19d0b8
	2call UnknownScript_0x19d130
UnknownScript_0x19d0bb: ; 0x19d0bb
	askforphonenumber $1e
	if_equal $1, UnknownScript_0x19d140
	if_equal $2, UnknownScript_0x19d13c
	trainertotext POKEMANIAC, BRENT1, $0
	2call UnknownScript_0x19d134
	2jump UnknownScript_0x19d138
; 0x19d0cf

UnknownScript_0x19d0cf: ; 0x19d0cf
	2call UnknownScript_0x19d144
	winlosstext PokemaniacBrent1BeatenText, $0000
	copybytetovar $da07
	if_equal $3, UnknownScript_0x19d0ea
	if_equal $2, UnknownScript_0x19d0f0
	if_equal $1, UnknownScript_0x19d0f6
	if_equal $0, UnknownScript_0x19d0fc
UnknownScript_0x19d0ea: ; 0x19d0ea
	checkevent EVENT_RESTORED_POWER_TO_KANTO
	iftrue UnknownScript_0x19d123
UnknownScript_0x19d0f0: ; 0x19d0f0
	checkevent $0044
	iftrue UnknownScript_0x19d116
UnknownScript_0x19d0f6: ; 0x19d0f6
	checkevent EVENT_CLEARED_ROCKET_HIDEOUT
	iftrue UnknownScript_0x19d109
UnknownScript_0x19d0fc: ; 0x19d0fc
	loadtrainer POKEMANIAC, BRENT1
	startbattle
	returnafterbattle
	loadvar $da07, $1
	clearflag $0077
	end
; 0x19d109

UnknownScript_0x19d109: ; 0x19d109
	loadtrainer POKEMANIAC, BRENT2
	startbattle
	returnafterbattle
	loadvar $da07, $2
	clearflag $0077
	end
; 0x19d116

UnknownScript_0x19d116: ; 0x19d116
	loadtrainer POKEMANIAC, BRENT3
	startbattle
	returnafterbattle
	loadvar $da07, $3
	clearflag $0077
	end
; 0x19d123

UnknownScript_0x19d123: ; 0x19d123
	loadtrainer POKEMANIAC, BRENT4
	startbattle
	returnafterbattle
	clearflag $0077
	end
; 0x19d12c

UnknownScript_0x19d12c: ; 0x19d12c
	jumpstd $0019
	end
; 0x19d130

UnknownScript_0x19d130: ; 0x19d130
	jumpstd $001a
	end
; 0x19d134

UnknownScript_0x19d134: ; 0x19d134
	jumpstd $001b
	end
; 0x19d138

UnknownScript_0x19d138: ; 0x19d138
	jumpstd $001c
	end
; 0x19d13c

UnknownScript_0x19d13c: ; 0x19d13c
	jumpstd $001d
	end
; 0x19d140

UnknownScript_0x19d140: ; 0x19d140
	jumpstd $001e
	end
; 0x19d144

UnknownScript_0x19d144: ; 0x19d144
	jumpstd $001f
	end
; 0x19d148

TrainerPokemaniacRon: ; 0x19d148
	; bit/flag number
	dw $4ea

	; trainer group && trainer id
	db POKEMANIAC, RON

	; text when seen
	dw PokemaniacRonSeenText

	; text when trainer beaten
	dw PokemaniacRonBeatenText

	; script when lost
	dw $0000

	; script when talk again
	dw PokemaniacRonScript
; 0x19d154

PokemaniacRonScript: ; 0x19d154
	talkaftercancel
	loadfont
	2writetext UnknownText_0x19d3f8
	closetext
	loadmovesprites
	end
; 0x19d15c

TrainerFisherMarvin: ; 0x19d15c
	; bit/flag number
	dw $453

	; trainer group && trainer id
	db FISHER, MARVIN

	; text when seen
	dw FisherMarvinSeenText

	; text when trainer beaten
	dw FisherMarvinBeatenText

	; script when lost
	dw $0000

	; script when talk again
	dw FisherMarvinScript
; 0x19d168

FisherMarvinScript: ; 0x19d168
	talkaftercancel
	loadfont
	2writetext UnknownText_0x19d4d3
	closetext
	loadmovesprites
	end
; 0x19d170

TrainerPicnickerTiffany3: ; 0x19d170
	; bit/flag number
	dw $491

	; trainer group && trainer id
	db PICNICKER, TIFFANY3

	; text when seen
	dw PicnickerTiffany3SeenText

	; text when trainer beaten
	dw PicnickerTiffany3BeatenText

	; script when lost
	dw $0000

	; script when talk again
	dw PicnickerTiffany3Script
; 0x19d17c

PicnickerTiffany3Script: ; 0x19d17c
	writecode $17, $1f
	talkaftercancel
	loadfont
	checkflag $0078
	iftrue UnknownScript_0x19d1c1
	checkflag $0085
	iftrue UnknownScript_0x19d21e
	checkcellnum $1f
	iftrue UnknownScript_0x19d245
	checkpoke CLEFAIRY
	iffalse UnknownScript_0x19d233
	checkevent EVENT_SHOWED_TIFFANY_CLEFAIRY
	iftrue UnknownScript_0x19d1aa
	2writetext UnknownText_0x19d618
	keeptextopen
	setevent EVENT_SHOWED_TIFFANY_CLEFAIRY
	2call UnknownScript_0x19d239
	2jump UnknownScript_0x19d1ad
; 0x19d1aa

UnknownScript_0x19d1aa: ; 0x19d1aa
	2call UnknownScript_0x19d23d
UnknownScript_0x19d1ad: ; 0x19d1ad
	askforphonenumber $1f
	if_equal $1, UnknownScript_0x19d24d
	if_equal $2, UnknownScript_0x19d249
	trainertotext PICNICKER, TIFFANY3, $0
	2call UnknownScript_0x19d241
	2jump UnknownScript_0x19d245
; 0x19d1c1

UnknownScript_0x19d1c1: ; 0x19d1c1
	2call UnknownScript_0x19d251
	winlosstext PicnickerTiffany3BeatenText, $0000
	copybytetovar $da08
	if_equal $3, UnknownScript_0x19d1dc
	if_equal $2, UnknownScript_0x19d1e2
	if_equal $1, UnknownScript_0x19d1e8
	if_equal $0, UnknownScript_0x19d1ee
UnknownScript_0x19d1dc: ; 0x19d1dc
	checkevent EVENT_RESTORED_POWER_TO_KANTO
	iftrue UnknownScript_0x19d215
UnknownScript_0x19d1e2: ; 0x19d1e2
	checkevent $0044
	iftrue UnknownScript_0x19d208
UnknownScript_0x19d1e8: ; 0x19d1e8
	checkevent EVENT_CLEARED_RADIO_TOWER
	iftrue UnknownScript_0x19d1fb
UnknownScript_0x19d1ee: ; 0x19d1ee
	loadtrainer PICNICKER, TIFFANY3
	startbattle
	returnafterbattle
	loadvar $da08, $1
	clearflag $0078
	end
; 0x19d1fb

UnknownScript_0x19d1fb: ; 0x19d1fb
	loadtrainer PICNICKER, TIFFANY1
	startbattle
	returnafterbattle
	loadvar $da08, $2
	clearflag $0078
	end
; 0x19d208

UnknownScript_0x19d208: ; 0x19d208
	loadtrainer PICNICKER, TIFFANY2
	startbattle
	returnafterbattle
	loadvar $da08, $3
	clearflag $0078
	end
; 0x19d215

UnknownScript_0x19d215: ; 0x19d215
	loadtrainer PICNICKER, TIFFANY4
	startbattle
	returnafterbattle
	clearflag $0078
	end
; 0x19d21e

UnknownScript_0x19d21e: ; 0x19d21e
	2call UnknownScript_0x19d255
	verbosegiveitem PINK_BOW, 1
	iffalse UnknownScript_0x19d230
	clearflag $0085
	setevent $0104
	2jump UnknownScript_0x19d245
; 0x19d230

UnknownScript_0x19d230: ; 0x19d230
	2jump UnknownScript_0x19d259
; 0x19d233

UnknownScript_0x19d233: ; 0x19d233
	2writetext UnknownText_0x19d64b
	closetext
	loadmovesprites
	end
; 0x19d239

UnknownScript_0x19d239: ; 0x19d239
	jumpstd $0023
	end
; 0x19d23d

UnknownScript_0x19d23d: ; 0x19d23d
	jumpstd $0024
	end
; 0x19d241

UnknownScript_0x19d241: ; 0x19d241
	jumpstd $0025
	end
; 0x19d245

UnknownScript_0x19d245: ; 0x19d245
	jumpstd $0026
	end
; 0x19d249

UnknownScript_0x19d249: ; 0x19d249
	jumpstd $0027
	end
; 0x19d24d

UnknownScript_0x19d24d: ; 0x19d24d
	jumpstd $0028
	end
; 0x19d251

UnknownScript_0x19d251: ; 0x19d251
	jumpstd $0029
	end
; 0x19d255

UnknownScript_0x19d255: ; 0x19d255
	jumpstd $002a
	end
; 0x19d259

UnknownScript_0x19d259: ; 0x19d259
	jumpstd $002b
	end
; 0x19d25d

MapRoute43Signpost0Script: ; 0x19d25d
	jumptext UnknownText_0x19d67b
; 0x19d260

MapRoute43Signpost1Script: ; 0x19d260
	jumptext UnknownText_0x19d6a2
; 0x19d263

MapRoute43Signpost2Script: ; 0x19d263
	jumptext UnknownText_0x19d6c9
; 0x19d266

FruitTreeScript_0x19d266: ; 0x19d266
	fruittree $8
; 0x19d268

ItemFragment_0x19d268: ; 0x19d268
	db MAX_ETHER, 1
; 0x19d26a

PokemaniacBenSeenText: ; 0x19d26a
	text "I love #MON!"

	para "That's why I"
	line "started--and why"

	para "I'll keep on col-"
	line "lecting #MON!"
	done
; 0x19d2b4

PokemaniacBenBeatenText: ; 0x19d2b4
	text "How could you do"
	line "this to me?"
	done
; 0x19d2d2

UnknownText_0x19d2d2: ; 0x19d2d2
	text "What else do I"
	line "like besides"
	cont "#MON?"

	para "MARY on the radio."
	line "I bet she's cute!"
	done
; 0x19d319

PokemaniacBrent1SeenText: ; 0x19d319
	text "Hey! Do you have"
	line "any rare #MON?"
	done
; 0x19d33a

PokemaniacBrent1BeatenText: ; 0x19d33a
	text "Oh, my poor #-"
	line "MON! Darlings!"
	done
; 0x19d359

UnknownText_0x19d359: ; 0x19d359
	text "I'd be happy just"
	line "to own a single"
	cont "rare #MON."
	done
; 0x19d386

PokemaniacRonSeenText: ; 0x19d386
	text "Would you get"
	line "this?"

	para "Some ", $53, " guy"
	line "made fun of my"
	cont "#MON!"

	para "Darn it! My #-"
	line "MON's great!"
	done
; 0x19d3d6

PokemaniacRonBeatenText: ; 0x19d3d6
	text "My NIDOKING did"
	line "pretty right on!"
	done
; 0x19d3f8

UnknownText_0x19d3f8: ; 0x19d3f8
	text "It's okay for"
	line "people to like"

	para "different types"
	line "of #MON."

	para "#MON isn't just"
	line "about having the"
	cont "most powerful one."
	done
; 0x19d461

FisherMarvinSeenText: ; 0x19d461
	text "I'm in a slump."

	para "Maybe it's the"
	line "gear I'm using."

	para "Let's battle for a"
	line "change of pace!"
	done
; 0x19d4b0

FisherMarvinBeatenText: ; 0x19d4b0
	text "I lost, but I feel"
	line "better anyway."
	done
; 0x19d4d3

UnknownText_0x19d4d3: ; 0x19d4d3
	text "KURT's LURE BALL"
	line "is the best for"

	para "catching hooked"
	line "#MON."

	para "It's much more"
	line "effective than a"
	cont "ULTRA BALL."
	done
; 0x19d535

CamperSpencerSeenText: ; 0x19d535
	text "I can do so much"
	line "with my #MON--"
	cont "it's super-fun!"
	done
; 0x19d565

CamperSpencerBeatenText: ; 0x19d565
	text "Losing isn't fun"
	line "at all…"
	done
; 0x19d57e

UnknownText_0x19d57e: ; 0x19d57e
	text "What is going on"
	line "at LAKE OF RAGE?"

	para "We were planning"
	line "to camp there."
	done
; 0x19d5c1

PicnickerTiffany3SeenText: ; 0x19d5c1
	text "Are you going to"
	line "LAKE OF RAGE too?"

	para "Let's play for a "
	line "little while!"
	done
; 0x19d604

PicnickerTiffany3BeatenText: ; 0x19d604
	text "I played too much!"
	done
; 0x19d618

UnknownText_0x19d618: ; 0x19d618
	text "I'm having a pic-"
	line "nic with #MON."

	para "Won't you join us?"
	done
; 0x19d64b

UnknownText_0x19d64b: ; 0x19d64b
	text "Isn't my CLEFAIRY"
	line "just the most"
	cont "adorable thing?"
	done
; 0x19d67b

UnknownText_0x19d67b: ; 0x19d67b
	text "ROUTE 43"

	para "LAKE OF RAGE -"
	line "MAHOGANY TOWN"
	done
; 0x19d6a2

UnknownText_0x19d6a2: ; 0x19d6a2
	text "ROUTE 43"

	para "LAKE OF RAGE -"
	line "MAHOGANY TOWN"
	done
; 0x19d6c9

UnknownText_0x19d6c9: ; 0x19d6c9
	text "TRAINER TIPS"

	para "All #MON have"
	line "pros and cons"

	para "depending on their"
	line "types."

	para "If their types"
	line "differ, a higher-"

	para "level #MON may"
	line "lose in battle."

	para "Learn which types"
	line "are strong and"

	para "weak against your"
	line "#MON's type."
	done
; 0x19d78c

Route43_MapEventHeader: ; 0x19d78c
	; filler
	db 0, 0

	; warps
	db 5
	warp_def $33, $9, 1, GROUP_ROUTE_43_MAHOGANY_GATE, MAP_ROUTE_43_MAHOGANY_GATE
	warp_def $33, $a, 2, GROUP_ROUTE_43_MAHOGANY_GATE, MAP_ROUTE_43_MAHOGANY_GATE
	warp_def $23, $11, 3, GROUP_ROUTE_43_GATE, MAP_ROUTE_43_GATE
	warp_def $1f, $11, 1, GROUP_ROUTE_43_GATE, MAP_ROUTE_43_GATE
	warp_def $1f, $12, 2, GROUP_ROUTE_43_GATE, MAP_ROUTE_43_GATE

	; xy triggers
	db 0

	; signposts
	db 3
	signpost 3, 13, $0, MapRoute43Signpost0Script
	signpost 49, 11, $0, MapRoute43Signpost1Script
	signpost 38, 16, $0, MapRoute43Signpost2Script

	; people-events
	db 8
	person_event SPRITE_SUPER_NERD, 9, 17, $8, $0, 255, 255, $92, 2, TrainerPokemaniacBen, $ffff
	person_event SPRITE_SUPER_NERD, 24, 17, $a, $0, 255, 255, $92, 3, TrainerPokemaniacBrent1, $ffff
	person_event SPRITE_SUPER_NERD, 11, 18, $6, $0, 255, 255, $92, 2, TrainerPokemaniacRon, $ffff
	person_event SPRITE_FISHER, 20, 8, $9, $0, 255, 255, $a2, 4, TrainerFisherMarvin, $ffff
	person_event SPRITE_LASS, 29, 13, $6, $0, 255, 255, $a2, 2, TrainerPicnickerTiffany3, $ffff
	person_event SPRITE_YOUNGSTER, 44, 17, $a, $0, 255, 255, $a2, 3, TrainerCamperSpencer, $ffff
	person_event SPRITE_FRUIT_TREE, 30, 5, $1, $0, 255, 255, $0, 0, FruitTreeScript_0x19d266, $ffff
	person_event SPRITE_POKE_BALL, 36, 16, $1, $0, 255, 255, $1, 0, ItemFragment_0x19d268, $06b5
; 0x19d822