forked from pret/pokecrystal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRoute40.asm
473 lines (378 loc) · 8.58 KB
/
Route40.asm
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
Route40_MapScriptHeader: ; 0x1a6160
; trigger count
db 0
; callback count
db 1
; callbacks
dbw 2, UnknownScript_0x1a6165
; 0x1a6165
UnknownScript_0x1a6165: ; 0x1a6165
clearevent $07cf
checkcode $b
if_equal MONDAY, UnknownScript_0x1a6171
disappear $a
return
; 0x1a6171
UnknownScript_0x1a6171: ; 0x1a6171
appear $a
return
; 0x1a6174
TrainerSwimmerfElaine: ; 0x1a6174
; bit/flag number
dw $3e8
; trainer group && trainer id
db SWIMMERF, ELAINE
; text when seen
dw SwimmerfElaineSeenText
; text when trainer beaten
dw SwimmerfElaineBeatenText
; script when lost
dw $0000
; script when talk again
dw SwimmerfElaineScript
; 0x1a6180
SwimmerfElaineScript: ; 0x1a6180
talkaftercancel
loadfont
2writetext UnknownText_0x1a637b
closetext
loadmovesprites
end
; 0x1a6188
TrainerSwimmerfPaula: ; 0x1a6188
; bit/flag number
dw $3e9
; trainer group && trainer id
db SWIMMERF, PAULA
; text when seen
dw SwimmerfPaulaSeenText
; text when trainer beaten
dw SwimmerfPaulaBeatenText
; script when lost
dw $0000
; script when talk again
dw SwimmerfPaulaScript
; 0x1a6194
SwimmerfPaulaScript: ; 0x1a6194
talkaftercancel
loadfont
2writetext UnknownText_0x1a63f5
closetext
loadmovesprites
end
; 0x1a619c
TrainerSwimmermSimon: ; 0x1a619c
; bit/flag number
dw $595
; trainer group && trainer id
db SWIMMERM, SIMON
; text when seen
dw SwimmermSimonSeenText
; text when trainer beaten
dw SwimmermSimonBeatenText
; script when lost
dw $0000
; script when talk again
dw SwimmermSimonScript
; 0x1a61a8
SwimmermSimonScript: ; 0x1a61a8
talkaftercancel
loadfont
2writetext UnknownText_0x1a6282
closetext
loadmovesprites
end
; 0x1a61b0
TrainerSwimmermRandall: ; 0x1a61b0
; bit/flag number
dw $596
; trainer group && trainer id
db SWIMMERM, RANDALL
; text when seen
dw SwimmermRandallSeenText
; text when trainer beaten
dw SwimmermRandallBeatenText
; script when lost
dw $0000
; script when talk again
dw SwimmermRandallScript
; 0x1a61bc
SwimmermRandallScript: ; 0x1a61bc
talkaftercancel
loadfont
2writetext UnknownText_0x1a62fa
closetext
loadmovesprites
end
; 0x1a61c4
LassScript_0x1a61c4: ; 0x1a61c4
jumptextfaceplayer UnknownText_0x1a6429
; 0x1a61c7
PokefanMScript_0x1a61c7: ; 0x1a61c7
special $00a0
iftrue UnknownScript_0x1a61d0
jumptextfaceplayer UnknownText_0x1a646a
; 0x1a61d0
UnknownScript_0x1a61d0: ; 0x1a61d0
jumptextfaceplayer UnknownText_0x1a649b
; 0x1a61d3
LassScript_0x1a61d3: ; 0x1a61d3
jumptextfaceplayer UnknownText_0x1a64e6
; 0x1a61d6
StandingYoungsterScript_0x1a61d6: ; 0x1a61d6
jumptextfaceplayer UnknownText_0x1a6564
; 0x1a61d9
BuenaScript_0x1a61d9: ; 0x1a61d9
faceplayer
loadfont
checkevent EVENT_GOT_SHARP_BEAK_FROM_MONICA
iftrue UnknownScript_0x1a6207
checkcode $b
if_not_equal MONDAY, UnknownScript_0x1a620d
checkevent EVENT_MET_MONICA_OF_MONDAY
iftrue UnknownScript_0x1a61f4
2writetext UnknownText_0x1a6606
keeptextopen
setevent EVENT_MET_MONICA_OF_MONDAY
UnknownScript_0x1a61f4: ; 0x1a61f4
2writetext UnknownText_0x1a6636
keeptextopen
verbosegiveitem SHARP_BEAK, 1
iffalse UnknownScript_0x1a620b
setevent EVENT_GOT_SHARP_BEAK_FROM_MONICA
2writetext UnknownText_0x1a666c
closetext
loadmovesprites
end
; 0x1a6207
UnknownScript_0x1a6207: ; 0x1a6207
2writetext UnknownText_0x1a66dc
closetext
UnknownScript_0x1a620b: ; 0x1a620b
loadmovesprites
end
; 0x1a620d
UnknownScript_0x1a620d: ; 0x1a620d
2writetext UnknownText_0x1a6737
closetext
loadmovesprites
end
; 0x1a6213
MapRoute40Signpost0Script: ; 0x1a6213
jumptext UnknownText_0x1a6767
; 0x1a6216
RockScript_0x1a6216: ; 0x1a6216
jumpstd $000f
; 0x1a6219
MapRoute40SignpostItem1: ; 0x1a6219
dw $00ab
db HYPER_POTION
; 0x1a621c
MovementData_0x1a621c: ; 0x1a621c
step_right
step_up
step_up
step_up
step_up
step_up
step_up
step_end
; 0x1a6224
MovementData_0x1a6224: ; 0x1a6224
step_up
step_up
step_up
step_up
step_up
step_end
; 0x1a622a
MovementData_0x1a622a: ; 0x1a622a
step_up
step_up
step_up
step_up
step_end
; 0x1a622f
SwimmermSimonSeenText: ; 0x1a622f
text "You have to warm"
line "up before going"
cont "into the water."
para "That's basic."
done
; 0x1a626e
SwimmermSimonBeatenText: ; 0x1a626e
text "OK! Uncle! I give!"
done
; 0x1a6282
UnknownText_0x1a6282: ; 0x1a6282
text "CIANWOOD CITY is"
line "a good distance"
cont "away from here."
done
; 0x1a62b4
SwimmermRandallSeenText: ; 0x1a62b4
text "Hey, you're young"
line "and fit!"
para "Don't ride your"
line "#MON! Swim!"
done
; 0x1a62ea
SwimmermRandallBeatenText: ; 0x1a62ea
text "Uh-oh. I lost…"
done
; 0x1a62fa
UnknownText_0x1a62fa: ; 0x1a62fa
text "Swimming exercises"
line "your entire body."
cont "It's healthy."
done
; 0x1a632d
SwimmerfElaineSeenText: ; 0x1a632d
text "Are you going to"
line "CIANWOOD?"
para "How about a quick"
line "battle first?"
done
; 0x1a6369
SwimmerfElaineBeatenText: ; 0x1a6369
text "I lost that one!"
done
; 0x1a637b
UnknownText_0x1a637b: ; 0x1a637b
text "I'd say I'm a bet-"
line "ter swimmer than"
cont "you. Yeah!"
done
; 0x1a63a9
SwimmerfPaulaSeenText: ; 0x1a63a9
text "No inner tube for"
line "me."
para "I'm hanging on to"
line "a sea #MON!"
done
; 0x1a63dd
SwimmerfPaulaBeatenText: ; 0x1a63dd
text "Ooh, I'm feeling"
line "dizzy!"
done
; 0x1a63f5
UnknownText_0x1a63f5: ; 0x1a63f5
text "While I float like"
line "this, the waves"
cont "carry me along."
done
; 0x1a6429
UnknownText_0x1a6429: ; 0x1a6429
text "Although you can't"
line "see it from here,"
para "CIANWOOD is across"
line "the sea."
done
; 0x1a646a
UnknownText_0x1a646a: ; 0x1a646a
text "Hm! There's a big"
line "building up ahead!"
para "What is it?"
done
; 0x1a649b
UnknownText_0x1a649b: ; 0x1a649b
text "Hm! Look at all"
line "those serious-"
cont "looking trainers"
cont "streaming in."
para "What? What?"
done
; 0x1a64e6
UnknownText_0x1a64e6: ; 0x1a64e6
text "I came to OLIVINE"
line "by ship to see the"
para "sights and soak up"
line "the atmosphere."
para "Being a port, it"
line "feels so different"
cont "from a big city."
done
; 0x1a6564
UnknownText_0x1a6564: ; 0x1a6564
text "Have you gone to"
line "the BATTLE TOWER?"
para "I think a lot of"
line "tough trainers"
para "have gathered"
line "there already."
para "But since you have"
line "so many BADGES,"
para "you shouldn't do"
line "badly at all."
done
; 0x1a6606
UnknownText_0x1a6606: ; 0x1a6606
text "MONICA: Glad to"
line "meet you. I'm"
para "MONICA of Monday."
done
; 0x1a6636
UnknownText_0x1a6636: ; 0x1a6636
text "As a token of our"
line "friendship, I have"
cont "a gift for you!"
done
; 0x1a666c
UnknownText_0x1a666c: ; 0x1a666c
text "MONICA: It's an"
line "item that raises"
para "the power of fly-"
line "ing-type moves."
para "You should equip a"
line "bird #MON with"
cont "that item."
done
; 0x1a66dc
UnknownText_0x1a66dc: ; 0x1a66dc
text "MONICA: My broth-"
line "ers and sisters"
para "are all over the"
line "place."
para "See if you could"
line "find them all!"
done
; 0x1a6737
UnknownText_0x1a6737: ; 0x1a6737
text "MONICA: I don't"
line "think today is"
cont "Monday. How sad…"
done
; 0x1a6767
UnknownText_0x1a6767: ; 0x1a6767
text "ROUTE 40"
para "CIANWOOD CITY -"
line "OLIVINE CITY"
done
; 0x1a678e
Route40_MapEventHeader: ; 0x1a678e
; filler
db 0, 0
; warps
db 1
warp_def $5, $9, 1, GROUP_ROUTE_40_BATTLE_TOWER_GATE, MAP_ROUTE_40_BATTLE_TOWER_GATE
; xy triggers
db 0
; signposts
db 2
signpost 10, 14, $0, MapRoute40Signpost0Script
signpost 8, 7, $7, MapRoute40SignpostItem1
; people-events
db 12
person_event SPRITE_OLIVINE_RIVAL, 19, 18, $9, $0, 255, 255, $82, 4, TrainerSwimmermSimon, $ffff
person_event SPRITE_OLIVINE_RIVAL, 34, 22, $8, $0, 255, 255, $82, 5, TrainerSwimmermRandall, $ffff
person_event SPRITE_SWIMMER_GIRL, 23, 7, $9, $0, 255, 255, $a2, 4, TrainerSwimmerfElaine, $ffff
person_event SPRITE_SWIMMER_GIRL, 29, 14, $1f, $0, 255, 255, $a2, 3, TrainerSwimmerfPaula, $ffff
person_event SPRITE_ROCK, 15, 11, $18, $0, 255, 255, $0, 0, RockScript_0x1a6216, $ffff
person_event SPRITE_ROCK, 13, 10, $18, $0, 255, 255, $0, 0, RockScript_0x1a6216, $ffff
person_event SPRITE_ROCK, 12, 11, $18, $0, 255, 255, $0, 0, RockScript_0x1a6216, $ffff
person_event SPRITE_LASS, 17, 15, $6, $0, 255, 255, $0, 0, LassScript_0x1a61c4, $ffff
person_event SPRITE_BUENA, 14, 12, $3, $0, 255, 255, $0, 0, BuenaScript_0x1a61d9, $075e
person_event SPRITE_POKEFAN_M, 10, 11, $9, $0, 255, 255, $0, 0, PokefanMScript_0x1a61c7, $ffff
person_event SPRITE_LASS, 8, 17, $3, $0, 255, 255, $a0, 0, LassScript_0x1a61d3, $ffff
person_event SPRITE_STANDING_YOUNGSTER, 13, 20, $3, $0, 255, 255, $90, 0, StandingYoungsterScript_0x1a61d6, $07cf
; 0x1a683f