summaryrefslogtreecommitdiff
path: root/maps/AzaleaTown.asm
blob: 6e194f7101a4aa7ab1ae6c672ec6763c37e7fa82 (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
AzaleaTown_MapScriptHeader: ; 0x198000
	; trigger count
	db 3

	; triggers
	dw UnknownScript_0x198011, $0000
	dw UnknownScript_0x198012, $0000
	dw UnknownScript_0x198013, $0000

	; callback count
	db 1

	; callbacks

	dbw 5, UnknownScript_0x198014
; 0x198011

UnknownScript_0x198011: ; 0x198011
	end
; 0x198012

UnknownScript_0x198012: ; 0x198012
	end
; 0x198013

UnknownScript_0x198013: ; 0x198013
	end
; 0x198014

UnknownScript_0x198014: ; 0x198014
	setflag $0044
	return
; 0x198018

UnknownScript_0x198018: ; 0x198018
	moveperson $b, $b, $b
	spriteface $0, $3
	showemote $0, $0, 15
	special $006a
	pause 15
	appear $b
	applymovement $b, MovementData_0x198134
	spriteface $0, $0
	2jump UnknownScript_0x198049
; 0x198034

UnknownScript_0x198034: ; 0x198034
	spriteface $0, $3
	showemote $0, $0, 15
	special $006a
	pause 15
	appear $b
	applymovement $b, MovementData_0x19813c
	spriteface $0, $1
UnknownScript_0x198049: ; 0x198049
	playmusic $001f
	loadfont
	2writetext UnknownText_0x19814d
	closetext
	loadmovesprites
	setevent $06bf
	checkevent EVENT_GOT_TOTODILE_FROM_ELM
	iftrue UnknownScript_0x198071
	checkevent EVENT_GOT_CHIKORITA_FROM_ELM
	iftrue UnknownScript_0x198081
	winlosstext UnknownText_0x1981e6, UnknownText_0x19835b
	setlasttalked $b
	loadtrainer RIVAL1, RIVAL1_6
	startbattle
	reloadmapmusic
	returnafterbattle
	2jump UnknownScript_0x198091
; 0x198071

UnknownScript_0x198071: ; 0x198071
	winlosstext UnknownText_0x1981e6, UnknownText_0x19835b
	setlasttalked $b
	loadtrainer RIVAL1, RIVAL1_4
	startbattle
	reloadmapmusic
	returnafterbattle
	2jump UnknownScript_0x198091
; 0x198081

UnknownScript_0x198081: ; 0x198081
	winlosstext UnknownText_0x1981e6, UnknownText_0x19835b
	setlasttalked $b
	loadtrainer RIVAL1, RIVAL1_5
	startbattle
	reloadmapmusic
	returnafterbattle
	2jump UnknownScript_0x198091
; 0x198091

UnknownScript_0x198091: ; 0x198091
	playmusic $0020
	loadfont
	2writetext UnknownText_0x198233
	closetext
	loadmovesprites
	spriteface $0, $2
	applymovement $b, MovementData_0x198144
	playsound $0023
	disappear $b
	dotrigger $0
	waitbutton
	playmapmusic
	end
; 0x1980ab

AzaleaRocketScript_0x1980ab: ; 0x1980ab
	jumptextfaceplayer UnknownText_0x19837b
; 0x1980ae

AzaleaRocketScript_0x1980ae: ; 0x1980ae
	jumptextfaceplayer UnknownText_0x1983c7
; 0x1980b1

GrampsScript_0x1980b1: ; 0x1980b1
	faceplayer
	loadfont
	checkevent EVENT_CLEARED_SLOWPOKE_WELL
	iftrue UnknownScript_0x1980bf
	2writetext UnknownText_0x19841b
	closetext
	loadmovesprites
	end
; 0x1980bf

UnknownScript_0x1980bf: ; 0x1980bf
	2writetext UnknownText_0x198473
	closetext
	loadmovesprites
	end
; 0x1980c5

TeacherScript_0x1980c5: ; 0x1980c5
	jumptextfaceplayer UnknownText_0x1984ce
; 0x1980c8

YoungsterScript_0x1980c8: ; 0x1980c8
	jumptextfaceplayer UnknownText_0x19851a
; 0x1980cb

SlowpokeScript_0x1980cb: ; 0x1980cb
	loadfont
	2writetext UnknownText_0x1985b0
	pause 60
	2writetext UnknownText_0x1985c3
	cry SLOWPOKE
	closetext
	loadmovesprites
	end
; 0x1980da

UnknownScript_0x1980da: ; 0x1980da
	faceplayer
	loadfont
	2writetext UnknownText_0x1985cd
	cry $00c3
	closetext
	loadmovesprites
	end
; 0x1980e5

UnknownScript_0x1980e5: ; 0x1980e5
	applymovement $0, MovementData_0x198148
	loadfont
	2writetext UnknownText_0x1985df
	keeptextopen
	spriteface $d, $3
	2writetext UnknownText_0x19860b
	keeptextopen
	2writetext UnknownText_0x198628
	closetext
	verbosegiveitem GS_BALL, 1
	spriteface $d, $2
	setflag $0064
	clearevent $06ed
	setevent $06eb
	dotrigger $0
	loadmovesprites
	end
; 0x19810c

KurtOutsideScript_0x19810c: ; 0x19810c
	faceplayer
	loadfont
	2writetext UnknownText_0x198628
	closetext
	spriteface $d, $2
	loadmovesprites
	end
; 0x198117

MapAzaleaTownSignpost0Script: ; 0x198117
	jumptext UnknownText_0x19865a
; 0x19811a

MapAzaleaTownSignpost1Script: ; 0x19811a
	jumptext UnknownText_0x198693
; 0x19811d

MapAzaleaTownSignpost2Script: ; 0x19811d
	jumptext UnknownText_0x1986a1
; 0x198120

MapAzaleaTownSignpost3Script: ; 0x198120
	jumptext UnknownText_0x1986e7
; 0x198123

MapAzaleaTownSignpost4Script: ; 0x198123
	jumptext UnknownText_0x19878d
; 0x198126

MapAzaleaTownSignpost7Script: ; 0x198126
	jumptext UnknownText_0x19879c
; 0x198129

MapAzaleaTownSignpost5Script: ; 0x198129
	jumpstd $0010
; 0x19812c

MapAzaleaTownSignpost6Script: ; 0x19812c
	jumpstd $0011
; 0x19812f

FruitTreeScript_0x19812f: ; 0x19812f
	fruittree $14
; 0x198131

MapAzaleaTownSignpostItem8: ; 0x198131
	dw $00b1
	db FULL_HEAL
	
; 0x198134

MovementData_0x198134: ; 0x198134
	step_left
	step_left
	step_left
	step_left
	step_left
	step_left
	turn_head_up
	step_end
; 0x19813c

MovementData_0x19813c: ; 0x19813c
	step_left
	step_left
	step_left
	step_left
	step_left
	step_left
	turn_head_down
	step_end
; 0x198144

MovementData_0x198144: ; 0x198144
	step_left
	step_left
	step_left
	step_end
; 0x198148

MovementData_0x198148: ; 0x198148
	step_left
	step_left
	step_up
	turn_head_left
	step_end
; 0x19814d

UnknownText_0x19814d: ; 0x19814d
	text "…Tell me some-"
	line "thing."

	para "Is it true that"
	line "TEAM ROCKET has"
	cont "returned?"

	para "What? You beat"
	line "them? Hah! Quit"
	cont "lying."

	para "You're not joking?"
	line "Then let's see how"
	cont "good you are."
	done
; 0x1981e6

UnknownText_0x1981e6: ; 0x1981e6
	text "… Humph! Useless"
	line "#MON!"

	para "Listen, you. You"
	line "only won because"

	para "my #MON were"
	line "weak."
	done
; 0x198233

UnknownText_0x198233: ; 0x198233
	text "I hate the weak."

	para "#MON, trainers."
	line "It doesn't matter"
	cont "who or what."

	para "I'm going to be"
	line "strong and wipe"
	cont "out the weak."

	para "That goes for TEAM"
	line "ROCKET too."

	para "They act big and"
	line "tough in a group."

	para "But get them"
	line "alone, and they're"
	cont "weak."

	para "I hate them all."

	para "You stay out of my"
	line "way. A weakling"

	para "like you is only a"
	line "distraction."
	done
; 0x19835b

UnknownText_0x19835b: ; 0x19835b
	text "…Humph! I knew"
	line "you were lying."
	done
; 0x19837b

UnknownText_0x19837b: ; 0x19837b
	text "It's unsafe to go"
	line "in there, so I'm"
	cont "standing guard."

	para "Aren't I a good"
	line "Samaritan?"
	done
; 0x1983c7

UnknownText_0x1983c7: ; 0x1983c7
	text "Do you know about"
	line "SLOWPOKETAIL? I"
	cont "heard it's tasty!"

	para "Aren't you glad I"
	line "told you that?"
	done
; 0x19841b

UnknownText_0x19841b: ; 0x19841b
	text "The SLOWPOKE have"
	line "disappeared from"
	cont "town…"

	para "I heard their"
	line "TAILS are being"
	cont "sold somewhere."
	done
; 0x198473

UnknownText_0x198473: ; 0x198473
	text "The SLOWPOKE have"
	line "returned."

	para "Knowing them, they"
	line "could've just been"

	para "goofing off some-"
	line "where."
	done
; 0x1984ce

UnknownText_0x1984ce: ; 0x1984ce
	text "Did you come to"
	line "get KURT to make"
	cont "some BALLS?"

	para "A lot of people do"
	line "just that."
	done
; 0x19851a

UnknownText_0x19851a: ; 0x19851a
	text "Cut through AZALEA"
	line "and you'll be in"
	cont "ILEX FOREST."

	para "But these skinny"
	line "trees make it"

	para "impossible to get"
	line "through."

	para "The CHARCOAL MAN's"
	line "#MON can CUT"
	cont "down trees."
	done
; 0x1985b0

UnknownText_0x1985b0: ; 0x1985b0
	text "SLOWPOKE: …"

	para $56, " ", $56, " ", $56
	done
; 0x1985c3

UnknownText_0x1985c3: ; 0x1985c3
	text $56, " ", $56, "Yawn?"
	done
; 0x1985cd

UnknownText_0x1985cd: ; 0x1985cd
	text "WOOSTER: Gugyoo…"
	done
; 0x1985df

UnknownText_0x1985df: ; 0x1985df
	text "ILEX FOREST is"
	line "restless!"

	para "What is going on?"
	done
; 0x19860b

UnknownText_0x19860b: ; 0x19860b
	text $52, ", here's"
	line "your GS BALL back!"
	done
; 0x198628

UnknownText_0x198628: ; 0x198628
	text "Could you go see"
	line "why ILEX FOREST is"
	cont "so restless?"
	done
; 0x19865a

UnknownText_0x19865a: ; 0x19865a
	text "AZALEA TOWN"
	line "Where People and"

	para "#MON Live in"
	line "Happy Harmony"
	done
; 0x198693

UnknownText_0x198693: ; 0x198693
	text "KURT'S HOUSE"
	done
; 0x1986a1

UnknownText_0x1986a1: ; 0x1986a1
	text "AZALEA TOWN"
	line "#MON GYM"
	cont "LEADER: BUGSY"

	para "The Walking"
	line "Bug #MON"
	cont "Encyclopedia"
	done
; 0x1986e7

UnknownText_0x1986e7: ; 0x1986e7
	text "SLOWPOKE WELL"

	para "Also known as the"
	line "RAINMAKER WELL."

	para "Locals believe"
	line "that a SLOWPOKE's"
	cont "yawn summons rain."

	para "Records show that"
	line "a SLOWPOKE's yawn"

	para "ended a drought"
	line "400 years ago."
	done
; 0x19878d

UnknownText_0x19878d: ; 0x19878d
	text "CHARCOAL KILN"
	done
; 0x19879c

UnknownText_0x19879c: ; 0x19879c
	text "ILEX FOREST"

	para "Enter through the"
	line "gate."
	done
; 0x1987c1

AzaleaTown_MapEventHeader: ; 0x1987c1
	; filler
	db 0, 0

	; warps
	db 8
	warp_def $9, $f, 1, GROUP_AZALEA_POKECENTER_1F, MAP_AZALEA_POKECENTER_1F
	warp_def $d, $15, 1, GROUP_CHARCOAL_KILN, MAP_CHARCOAL_KILN
	warp_def $5, $15, 2, GROUP_AZALEA_MART, MAP_AZALEA_MART
	warp_def $5, $9, 1, GROUP_KURTS_HOUSE, MAP_KURTS_HOUSE
	warp_def $f, $a, 1, GROUP_AZALEA_GYM, MAP_AZALEA_GYM
	warp_def $7, $1f, 1, GROUP_SLOWPOKE_WELL_B1F, MAP_SLOWPOKE_WELL_B1F
	warp_def $a, $2, 3, GROUP_ILEX_FOREST_AZALEA_GATE, MAP_ILEX_FOREST_AZALEA_GATE
	warp_def $b, $2, 4, GROUP_ILEX_FOREST_AZALEA_GATE, MAP_ILEX_FOREST_AZALEA_GATE

	; xy triggers
	db 3
	xy_trigger 1, $a, $5, $0, UnknownScript_0x198018, $0, $0
	xy_trigger 1, $b, $5, $0, UnknownScript_0x198034, $0, $0
	xy_trigger 2, $6, $9, $0, UnknownScript_0x1980e5, $0, $0

	; signposts
	db 9
	signpost 9, 19, $0, MapAzaleaTownSignpost0Script
	signpost 9, 10, $0, MapAzaleaTownSignpost1Script
	signpost 15, 14, $0, MapAzaleaTownSignpost2Script
	signpost 7, 29, $0, MapAzaleaTownSignpost3Script
	signpost 13, 19, $0, MapAzaleaTownSignpost4Script
	signpost 9, 16, $0, MapAzaleaTownSignpost5Script
	signpost 5, 22, $0, MapAzaleaTownSignpost6Script
	signpost 9, 3, $0, MapAzaleaTownSignpost7Script
	signpost 6, 31, $7, MapAzaleaTownSignpostItem8

	; people-events
	db 12
	person_event SPRITE_AZALEA_ROCKET, 13, 35, $6, $0, 255, 255, $0, 0, AzaleaRocketScript_0x1980ab, $06fa
	person_event SPRITE_GRAMPS, 13, 25, $2, $21, 255, 255, $0, 0, GrampsScript_0x1980b1, $ffff
	person_event SPRITE_TEACHER, 17, 19, $4, $20, 255, 255, $90, 0, TeacherScript_0x1980c5, $ffff
	person_event SPRITE_YOUNGSTER, 13, 11, $5, $1, 255, 255, $a0, 0, YoungsterScript_0x1980c8, $ffff
	person_event SPRITE_SLOWPOKE, 21, 12, $1, $0, 255, 255, $0, 0, SlowpokeScript_0x1980cb, $06f9
	person_event SPRITE_SLOWPOKE, 13, 22, $1, $0, 255, 255, $0, 0, SlowpokeScript_0x1980cb, $06f9
	person_event SPRITE_SLOWPOKE, 13, 33, $1, $0, 255, 255, $0, 0, SlowpokeScript_0x1980cb, $06f9
	person_event SPRITE_SLOWPOKE, 19, 19, $1, $0, 255, 255, $0, 0, SlowpokeScript_0x1980cb, $06f9
	person_event SPRITE_FRUIT_TREE, 6, 12, $1, $0, 255, 255, $0, 0, FruitTreeScript_0x19812f, $ffff
	person_event SPRITE_AZALEA_ROCKET, 14, 15, $8, $0, 255, 255, $0, 0, ObjectEvent, $06bf
	person_event SPRITE_AZALEA_ROCKET, 20, 14, $6, $0, 255, 255, $0, 0, AzaleaRocketScript_0x1980ae, $06fc
	person_event SPRITE_KURT_OUTSIDE, 9, 10, $8, $0, 255, 255, $0, 0, KurtOutsideScript_0x19810c, $07a4
; 0x1988d0