summaryrefslogtreecommitdiff
path: root/maps/Route25.asm
blob: 6ea3695edab438b324346a9b1b9706f800c73d1f (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
Route25_MapScriptHeader: ; 0x19ee94
	; trigger count
	db 2

	; triggers
	dw UnknownScript_0x19ee9e, $0000
	dw UnknownScript_0x19ee9f, $0000

	; callback count
	db 0
; 0x19ee9e

UnknownScript_0x19ee9e: ; 0x19ee9e
	end
; 0x19ee9f

UnknownScript_0x19ee9f: ; 0x19ee9f
	end
; 0x19eea0

UnknownScript_0x19eea0: ; 0x19eea0
	showemote $4, $2, 15
	pause 30
	showemote $0, $3, 10
	spriteface $2, $0
	applymovement $3, MovementData_0x19efe8
	disappear $3
	pause 15
	playmusic $0038
	spriteface $2, $1
	pause 10
	applymovement $2, MovementData_0x19efed
	loadfont
	2writetext UnknownText_0x19f006
	closetext
	loadmovesprites
	spriteface $0, $0
	applymovement $2, MovementData_0x19effa
	spriteface $0, $2
	applymovement $2, MovementData_0x19f000
	disappear $2
	clearevent $076f
	dotrigger $0
	special $003d
	end
; 0x19eee0

UnknownScript_0x19eee0: ; 0x19eee0
	showemote $4, $2, 15
	pause 30
	showemote $0, $3, 10
	spriteface $2, $0
	applymovement $3, MovementData_0x19efea
	disappear $3
	pause 15
	playmusic $0038
	spriteface $2, $1
	pause 10
	applymovement $2, MovementData_0x19eff4
	loadfont
	2writetext UnknownText_0x19f006
	closetext
	loadmovesprites
	spriteface $0, $1
	applymovement $2, MovementData_0x19effd
	spriteface $0, $2
	applymovement $2, MovementData_0x19f000
	disappear $2
	clearevent $076f
	dotrigger $0
	special $003d
	end
; 0x19ef20

TrainerSchoolboyDudley: ; 0x19ef20
	; bit/flag number
	dw $472

	; trainer group && trainer id
	db SCHOOLBOY, DUDLEY

	; text when seen
	dw SchoolboyDudleySeenText

	; text when trainer beaten
	dw SchoolboyDudleyBeatenText

	; script when lost
	dw $0000

	; script when talk again
	dw SchoolboyDudleyScript
; 0x19ef2c

SchoolboyDudleyScript: ; 0x19ef2c
	talkaftercancel
	loadfont
	2writetext UnknownText_0x19f1b5
	closetext
	loadmovesprites
	end
; 0x19ef34

TrainerLassEllen: ; 0x19ef34
	; bit/flag number
	dw $51f

	; trainer group && trainer id
	db LASS, ELLEN

	; text when seen
	dw LassEllenSeenText

	; text when trainer beaten
	dw LassEllenBeatenText

	; script when lost
	dw $0000

	; script when talk again
	dw LassEllenScript
; 0x19ef40

LassEllenScript: ; 0x19ef40
	talkaftercancel
	loadfont
	2writetext UnknownText_0x19f208
	closetext
	loadmovesprites
	end
; 0x19ef48

TrainerSchoolboyJoe: ; 0x19ef48
	; bit/flag number
	dw $473

	; trainer group && trainer id
	db SCHOOLBOY, JOE

	; text when seen
	dw SchoolboyJoeSeenText

	; text when trainer beaten
	dw SchoolboyJoeBeatenText

	; script when lost
	dw $0000

	; script when talk again
	dw SchoolboyJoeScript
; 0x19ef54

SchoolboyJoeScript: ; 0x19ef54
	talkaftercancel
	loadfont
	2writetext UnknownText_0x19f25c
	closetext
	loadmovesprites
	end
; 0x19ef5c

TrainerLassLaura: ; 0x19ef5c
	; bit/flag number
	dw $51b

	; trainer group && trainer id
	db LASS, LAURA

	; text when seen
	dw LassLauraSeenText

	; text when trainer beaten
	dw LassLauraBeatenText

	; script when lost
	dw $0000

	; script when talk again
	dw LassLauraScript
; 0x19ef68

LassLauraScript: ; 0x19ef68
	talkaftercancel
	loadfont
	2writetext UnknownText_0x19f2a6
	closetext
	loadmovesprites
	end
; 0x19ef70

TrainerCamperLloyd: ; 0x19ef70
	; bit/flag number
	dw $41f

	; trainer group && trainer id
	db CAMPER, LLOYD

	; text when seen
	dw CamperLloydSeenText

	; text when trainer beaten
	dw CamperLloydBeatenText

	; script when lost
	dw $0000

	; script when talk again
	dw CamperLloydScript
; 0x19ef7c

CamperLloydScript: ; 0x19ef7c
	talkaftercancel
	loadfont
	2writetext UnknownText_0x19f2f8
	closetext
	loadmovesprites
	end
; 0x19ef84

TrainerLassShannon: ; 0x19ef84
	; bit/flag number
	dw $51c

	; trainer group && trainer id
	db LASS, SHANNON

	; text when seen
	dw LassShannonSeenText

	; text when trainer beaten
	dw LassShannonBeatenText

	; script when lost
	dw $0000

	; script when talk again
	dw LassShannonScript
; 0x19ef90

LassShannonScript: ; 0x19ef90
	talkaftercancel
	loadfont
	2writetext UnknownText_0x19f35b
	closetext
	loadmovesprites
	end
; 0x19ef98

TrainerSupernerdPat: ; 0x19ef98
	; bit/flag number
	dw $588

	; trainer group && trainer id
	db SUPER_NERD, PAT

	; text when seen
	dw SupernerdPatSeenText

	; text when trainer beaten
	dw SupernerdPatBeatenText

	; script when lost
	dw $0000

	; script when talk again
	dw SupernerdPatScript
; 0x19efa4

SupernerdPatScript: ; 0x19efa4
	talkaftercancel
	loadfont
	2writetext UnknownText_0x19f41a
	closetext
	loadmovesprites
	end
; 0x19efac

CooltrainerMScript_0x19efac: ; 0x19efac
	faceplayer
	loadfont
	checkevent $0558
	iftrue UnknownScript_0x19efda
	checkevent EVENT_CLEARED_NUGGET_BRIDGE
	iftrue UnknownScript_0x19efc7
	2writetext UnknownText_0x19f43b
	keeptextopen
	verbosegiveitem NUGGET, 1
	iffalse UnknownScript_0x19efde
	setevent EVENT_CLEARED_NUGGET_BRIDGE
UnknownScript_0x19efc7: ; 0x19efc7
	2writetext UnknownText_0x19f49d
	closetext
	loadmovesprites
	winlosstext UnknownText_0x19f4fd, $0000
	loadtrainer COOLTRAINERM, KEVIN
	startbattle
	returnafterbattle
	setevent $0558
	loadfont
UnknownScript_0x19efda: ; 0x19efda
	2writetext UnknownText_0x19f520
	closetext
UnknownScript_0x19efde: ; 0x19efde
	loadmovesprites
	end
; 0x19efe0

MapRoute25Signpost0Script: ; 0x19efe0
	jumptext UnknownText_0x19f567
; 0x19efe3

ItemFragment_0x19efe3: ; 0x19efe3
	db PROTEIN, 1
; 0x19efe5

MapRoute25SignpostItem1: ; 0x19efe5
	dw $00f8
	db POTION
	
; 0x19efe8

MovementData_0x19efe8: ; 0x19efe8
	big_step_down
	step_end
; 0x19efea

MovementData_0x19efea: ; 0x19efea
	big_step_down
	big_step_down
	step_end
; 0x19efed

MovementData_0x19efed: ; 0x19efed
	step_up
	step_up
	step_up
	step_left
	step_left
	step_left
	step_end
; 0x19eff4

MovementData_0x19eff4: ; 0x19eff4
	step_up
	step_up
	step_left
	step_left
	step_left
	step_end
; 0x19effa

MovementData_0x19effa: ; 0x19effa
	step_down
	step_left
	step_end
; 0x19effd

MovementData_0x19effd: ; 0x19effd
	step_up
	step_left
	step_end
; 0x19f000

MovementData_0x19f000: ; 0x19f000
	step_left
	step_left
	step_left
	step_left
	step_left
	step_end
; 0x19f006

UnknownText_0x19f006: ; 0x19f006
	text "MISTY: Aww! Why"
	line "did you have to"

	para "show up and bug us"
	line "now?"

	para "Do you know what"
	line "they call people"
	cont "like you?"

	para "Pests! You heard"
	line "me right, pest!"

	para "…"

	para "…Oh? Those BADGES"
	line "you have… Are they"
	cont "JOHTO GYM BADGES?"

	para "If you have eight,"
	line "you must be good."

	para "OK, then. Come to"
	line "CERULEAN GYM."

	para "I'll be happy to"
	line "take you on."

	para "I'm MISTY, the"
	line "GYM LEADER in"
	cont "CERULEAN."
	done
; 0x19f14d

SchoolboyDudleySeenText: ; 0x19f14d
	text "Beat the six of us"
	line "trainers to win a"
	cont "fabulous prize!"

	para "Think you've got"
	line "what it takes?"
	done
; 0x19f1a2

SchoolboyDudleyBeatenText: ; 0x19f1a2
	text "Whoo! Good stuff."
	done
; 0x19f1b5

UnknownText_0x19f1b5: ; 0x19f1b5
	text "I did my best."
	line "I have no regrets."
	done
; 0x19f1d8

LassEllenSeenText: ; 0x19f1d8
	text "I'm second."
	line "Now it's serious!"
	done
; 0x19f1f5

LassEllenBeatenText: ; 0x19f1f5
	text "How could I lose?"
	done
; 0x19f208

UnknownText_0x19f208: ; 0x19f208
	text "I did my best."
	line "I have no regrets."
	done
; 0x19f22b

SchoolboyJoeSeenText: ; 0x19f22b
	text "Here's No. 3!"
	line "I won't be easy."
	done
; 0x19f249

SchoolboyJoeBeatenText: ; 0x19f249
	text "Ow! Stomped flat!"
	done
; 0x19f25c

UnknownText_0x19f25c: ; 0x19f25c
	text "I did my best."
	line "I have no regrets."
	done
; 0x19f27f

LassLauraSeenText: ; 0x19f27f
	text "I'm No. 4!"
	line "Getting tired?"
	done
; 0x19f299

LassLauraBeatenText: ; 0x19f299
	text "I lost too…"
	done
; 0x19f2a6

UnknownText_0x19f2a6: ; 0x19f2a6
	text "I did my best."
	line "I have no regrets."
	done
; 0x19f2c9

CamperLloydSeenText: ; 0x19f2c9
	text "OK! I'm No. 5."
	line "I'll stomp you!"
	done
; 0x19f2e7

CamperLloydBeatenText: ; 0x19f2e7
	text "Whoa! Too much."
	done
; 0x19f2f8

UnknownText_0x19f2f8: ; 0x19f2f8
	text "I did my best."
	line "I have no regrets."
	done
; 0x19f31b

LassShannonSeenText: ; 0x19f31b
	text "I'm the last in"
	line "line, but I tell"
	cont "you, I'm tough!"
	done
; 0x19f34b

LassShannonBeatenText: ; 0x19f34b
	text "You're kidding."
	done
; 0x19f35b

UnknownText_0x19f35b: ; 0x19f35b
	text "I did my best."
	line "I have no regrets."
	done
; 0x19f37e

SupernerdPatSeenText: ; 0x19f37e
	text "Mufufufu…"

	para "I have nothing to"
	line "do with the six-"
	cont "pack trainers."

	para "I waited here to"
	line "beat you when you"

	para "were tired out by"
	line "all the battles."
	done
; 0x19f401

SupernerdPatBeatenText: ; 0x19f401
	text "Aren't you tired"
	line "at all?"
	done
; 0x19f41a

UnknownText_0x19f41a: ; 0x19f41a
	text "I'm sorry… I won't"
	line "cheat anymore…"
	done
; 0x19f43b

UnknownText_0x19f43b: ; 0x19f43b
	text "You took on one"
	line "more battle than"

	para "you expected, but"
	line "you won anyway."

	para "As promised, you"
	line "win a prize."
	done
; 0x19f49d

UnknownText_0x19f49d: ; 0x19f49d
	text "But after seeing"
	line "how you battle, I"

	para "want to see how"
	line "I'll fare."

	para "How about it? Let"
	line "me take you on."
	done
; 0x19f4fd

UnknownText_0x19f4fd: ; 0x19f4fd
	text "I've never had a"
	line "battle this good!"
	done
; 0x19f520

UnknownText_0x19f520: ; 0x19f520
	text "That was a great"
	line "battle!"

	para "You and your #-"
	line "MON are truly out-"
	cont "standing!"
	done
; 0x19f567

UnknownText_0x19f567: ; 0x19f567
	text "SEA COTTAGE"
	line "BILL'S HOUSE"
	done
; 0x19f581

UnknownText_0x19f581: ; 0x19f581
	text "BILL'S HOUSE"
	done
; 0x19f58f

Route25_MapEventHeader: ; 0x19f58f
	; filler
	db 0, 0

	; warps
	db 1
	warp_def $5, $2f, 1, GROUP_BILLS_HOUSE, MAP_BILLS_HOUSE

	; xy triggers
	db 2
	xy_trigger 1, $6, $2a, $0, UnknownScript_0x19eea0, $0, $0
	xy_trigger 1, $7, $2a, $0, UnknownScript_0x19eee0, $0, $0

	; signposts
	db 2
	signpost 5, 45, $0, MapRoute25Signpost0Script
	signpost 5, 4, $7, MapRoute25SignpostItem1

	; people-events
	db 11
	person_event SPRITE_MISTY, 13, 50, $8, $0, 255, 255, $80, 0, ObjectEvent, $076e
	person_event SPRITE_COOLTRAINER_M, 14, 50, $8, $0, 255, 255, $a0, 0, ObjectEvent, $076e
	person_event SPRITE_YOUNGSTER, 12, 16, $6, $0, 255, 255, $92, 3, TrainerSchoolboyDudley, $ffff
	person_event SPRITE_LASS, 15, 20, $7, $0, 255, 255, $92, 3, TrainerLassEllen, $ffff
	person_event SPRITE_YOUNGSTER, 12, 25, $6, $0, 255, 255, $92, 1, TrainerSchoolboyJoe, $ffff
	person_event SPRITE_LASS, 10, 26, $9, $0, 255, 255, $92, 3, TrainerLassLaura, $ffff
	person_event SPRITE_YOUNGSTER, 8, 29, $6, $0, 255, 255, $a2, 2, TrainerCamperLloyd, $ffff
	person_event SPRITE_LASS, 15, 32, $7, $0, 255, 255, $92, 1, TrainerLassShannon, $ffff
	person_event SPRITE_SUPER_NERD, 11, 35, $6, $0, 255, 255, $b2, 1, TrainerSupernerdPat, $ffff
	person_event SPRITE_COOLTRAINER_M, 12, 41, $8, $0, 255, 255, $80, 0, CooltrainerMScript_0x19efac, $ffff
	person_event SPRITE_POKE_BALL, 8, 36, $1, $0, 255, 255, $1, 0, ItemFragment_0x19efe3, $078b
; 0x19f643