summaryrefslogtreecommitdiff
path: root/maps/CianwoodCity.asm
blob: 8f4192e98271145cc2754b64b824fac02daffd00 (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
CianwoodCity_MapScriptHeader: ; 0x1a0000
	; trigger count
	db 2

	; triggers
	dw UnknownScript_0x1a000d, $0000
	dw UnknownScript_0x1a000e, $0000

	; callback count
	db 1

	; callbacks

	dbw 5, UnknownScript_0x1a000f
; 0x1a000d

UnknownScript_0x1a000d: ; 0x1a000d
	end
; 0x1a000e

UnknownScript_0x1a000e: ; 0x1a000e
	end
; 0x1a000f

UnknownScript_0x1a000f: ; 0x1a000f
	setflag $0045
	setevent $07aa
	checkevent $0333
	iffalse UnknownScript_0x1a001d
	disappear $c
UnknownScript_0x1a001d: ; 0x1a001d
	return
; 0x1a001e

UnknownScript_0x1a001e: ; 0x1a001e
	spriteface $0, $1
	showemote $0, $0, 15
	pause 15
	playsound $0014
	applymovement $d, MovementData_0x1a00da
	spriteface $0, $0
	pause 15
	playsound $0014
	applymovement $d, MovementData_0x1a00e0
	disappear $d
	pause 10
	dotrigger $0
	clearevent EVENT_SAW_SUICUNE_ON_ROUTE_42
	domaptrigger GROUP_ROUTE_42, MAP_ROUTE_42, $1
	checkevent $0333
	iftrue UnknownScript_0x1a0083
	setevent $0333
	playmusic $0061
	appear $c
	applymovement $c, MovementData_0x1a00e7
	loadfont
	2writetext UnknownText_0x1a0433
	closetext
	loadmovesprites
	winlosstext UnknownText_0x1a05a1, $0000
	setlasttalked $c
	loadtrainer MYSTICALMAN, EUSINE
	startbattle
	reloadmapmusic
	returnafterbattle
	playmusic $0061
	loadfont
	2writetext UnknownText_0x1a05c3
	closetext
	loadmovesprites
	applymovement $c, MovementData_0x1a00ec
	disappear $c
	pause 20
	special $006a
	playmapmusic
	pause 10
UnknownScript_0x1a0083: ; 0x1a0083
	end
; 0x1a0084

PokefanFScript_0x1a0084: ; 0x1a0084
	faceplayer
	loadfont
	checkevent EVENT_GOT_HM02_FLY
	iftrue UnknownScript_0x1a00ad
	2writetext UnknownText_0x1a00f1
	keeptextopen
	checkevent EVENT_BEAT_CHUCK
	iftrue UnknownScript_0x1a009c
	2writetext UnknownText_0x1a0163
	closetext
	loadmovesprites
	end
; 0x1a009c

UnknownScript_0x1a009c: ; 0x1a009c
	2writetext UnknownText_0x1a01e3
	keeptextopen
	verbosegiveitem HM_02, 1
	iffalse UnknownScript_0x1a00b1
	setevent EVENT_GOT_HM02_FLY
	2writetext UnknownText_0x1a021d
	keeptextopen
UnknownScript_0x1a00ad: ; 0x1a00ad
	2writetext UnknownText_0x1a0277
	closetext
UnknownScript_0x1a00b1: ; 0x1a00b1
	loadmovesprites
	end
; 0x1a00b3

StandingYoungsterScript_0x1a00b3: ; 0x1a00b3
	jumptextfaceplayer UnknownText_0x1a02df
; 0x1a00b6

PokefanMScript_0x1a00b6: ; 0x1a00b6
	jumptextfaceplayer UnknownText_0x1a0319
; 0x1a00b9

LassScript_0x1a00b9: ; 0x1a00b9
	jumptextfaceplayer UnknownText_0x1a0394
; 0x1a00bc

UnknownScript_0x1a00bc: ; 0x1a00bc
	jumptextfaceplayer UnknownText_0x1a03cc
; 0x1a00bf

MapCianwoodCitySignpost0Script: ; 0x1a00bf
	jumptext UnknownText_0x1a0660
; 0x1a00c2

MapCianwoodCitySignpost1Script: ; 0x1a00c2
	jumptext UnknownText_0x1a068f
; 0x1a00c5

MapCianwoodCitySignpost3Script: ; 0x1a00c5
	jumptext UnknownText_0x1a06d6
; 0x1a00c8

MapCianwoodCitySignpost4Script: ; 0x1a00c8
	jumptext UnknownText_0x1a0725
; 0x1a00cb

MapCianwoodCitySignpost5Script: ; 0x1a00cb
	jumptext UnknownText_0x1a0760
; 0x1a00ce

MapCianwoodCitySignpost2Script: ; 0x1a00ce
	jumpstd $0010
; 0x1a00d1

RockScript_0x1a00d1: ; 0x1a00d1
	jumpstd $000f
; 0x1a00d4

MapCianwoodCitySignpostItem6: ; 0x1a00d4
	dw $00b2
	db REVIVE
	
; 0x1a00d7

MapCianwoodCitySignpostItem7: ; 0x1a00d7
	dw $00b3
	db MAX_ETHER
	
; 0x1a00da

MovementData_0x1a00da: ; 0x1a00da
	db $39 ; movement
	fast_jump_step_down
	fast_jump_step_down
	fast_jump_step_right
	db $38 ; movement
	step_end
; 0x1a00e0

MovementData_0x1a00e0: ; 0x1a00e0
	db $39 ; movement
	fast_jump_step_right
	fast_jump_step_up
	fast_jump_step_right
	fast_jump_step_right
	db $38 ; movement
	step_end
; 0x1a00e7

MovementData_0x1a00e7: ; 0x1a00e7
	step_up
	step_up
	step_up
	step_up
	step_end
; 0x1a00ec

MovementData_0x1a00ec: ; 0x1a00ec
	step_down
	step_down
	step_down
	step_down
	step_end
; 0x1a00f1

UnknownText_0x1a00f1: ; 0x1a00f1
	text "You crossed the"
	line "sea to get here?"

	para "That must have"
	line "been hard."

	para "It would be much"
	line "easier if your"

	para "#MON knew how"
	line "to FLY…"
	done
; 0x1a0163

UnknownText_0x1a0163: ; 0x1a0163
	text "But you can't use"
	line "FLY without this"
	cont "city's GYM BADGE."

	para "If you beat the"
	line "GYM LEADER here,"
	cont "come see me."

	para "I'll have a nice"
	line "gift for you."
	done
; 0x1a01e3

UnknownText_0x1a01e3: ; 0x1a01e3
	text "That's CIANWOOD's"
	line "GYM BADGE!"

	para "Then you should"
	line "take this HM."
	done
; 0x1a021d

UnknownText_0x1a021d: ; 0x1a021d
	text "Teach FLY to your"
	line "#MON."

	para "You will be able"
	line "to FLY instantly"

	para "to anywhere you "
	line "have visited."
	done
; 0x1a0277

UnknownText_0x1a0277: ; 0x1a0277
	text "My husband lost to"
	line "you, so he needs"
	cont "to train harder."

	para "That's good, since"
	line "he was getting a"
	cont "little chubby."
	done
; 0x1a02df

UnknownText_0x1a02df: ; 0x1a02df
	text "If you use FLY,"
	line "you can get back"

	para "to OLIVINE in-"
	line "stantly."
	done
; 0x1a0319

UnknownText_0x1a0319: ; 0x1a0319
	text "Boulders to the"
	line "north of town can"
	cont "be crushed."

	para "They may be hiding"
	line "something."

	para "Your #MON could"
	line "use ROCK SMASH to"
	cont "break them."
	done
; 0x1a0394

UnknownText_0x1a0394: ; 0x1a0394
	text "CHUCK, the GYM"
	line "LEADER, spars with"

	para "his fighting #-"
	line "MON."
	done
; 0x1a03cc

; possibly unused
UnknownText_0x1a03cc: ; 0x1a03cc
	text "There are several"
	line "islands between"
	cont "here and OLIVINE."

	para "A mythical sea"
	line "creature supposed-"
	cont "ly lives there."
	done
; 0x1a0433

UnknownText_0x1a0433: ; 0x1a0433
	text "EUSINE: Yo,"
	line $52, "."

	para "Wasn't that"
	line "SUICUNE just now?"

	para "I only caught a"
	line "quick glimpse, but"

	para "I thought I saw"
	line "SUICUNE running on"
	cont "the waves."

	para "SUICUNE is beau-"
	line "tiful and grand."

	para "And it races"
	line "through towns and"

	para "roads at simply"
	line "awesome speeds."

	para "It's wonderful…"

	para "I want to see"
	line "SUICUNE up close…"

	para "I've decided."

	para "I'll battle you as"
	line "a trainer to earn"
	cont "SUICUNE's respect!"

	para "Come on, ", $52, "."
	line "Let's battle now!"
	done
; 0x1a05a1

UnknownText_0x1a05a1: ; 0x1a05a1
	text "I hate to admit"
	line "it, but you win."
	done
; 0x1a05c3

UnknownText_0x1a05c3: ; 0x1a05c3
	text "You're amazing,"
	line $52, "!"

	para "No wonder #MON"
	line "gravitate to you."

	para "I get it now."

	para "I'm going to keep"
	line "searching for"
	cont "SUICUNE."

	para "I'm sure we'll see"
	line "each other again."

	para "See you around!"
	done
; 0x1a0660

UnknownText_0x1a0660: ; 0x1a0660
	text "CIANWOOD CITY"

	para "A Port Surrounded"
	line "by Rough Seas"
	done
; 0x1a068f

UnknownText_0x1a068f: ; 0x1a068f
	text "CIANWOOD CITY"
	line "#MON GYM"

	para "LEADER: CHUCK"

	para "His Roaring Fists"
	line "Do the Talking"
	done
; 0x1a06d6

UnknownText_0x1a06d6: ; 0x1a06d6
	text "500 Years of"
	line "Tradition"

	para "CIANWOOD CITY"
	line "PHARMACY"

	para "We Await Your"
	line "Medicinal Queries"
	done
; 0x1a0725

UnknownText_0x1a0725: ; 0x1a0725
	text "CIANWOOD CITY"
	line "PHOTO STUDIO"

	para "Take a Snapshot as"
	line "a Keepsake!"
	done
; 0x1a0760

UnknownText_0x1a0760: ; 0x1a0760
	text "THE # SEER"
	line "AHEAD"
	done
; 0x1a0772

CianwoodCity_MapEventHeader: ; 0x1a0772
	; filler
	db 0, 0

	; warps
	db 7
	warp_def $29, $11, 1, GROUP_MANIAS_HOUSE, MAP_MANIAS_HOUSE
	warp_def $2b, $8, 1, GROUP_CIANWOOD_GYM, MAP_CIANWOOD_GYM
	warp_def $2b, $17, 1, GROUP_CIANWOOD_POKECENTER_1F, MAP_CIANWOOD_POKECENTER_1F
	warp_def $2f, $f, 1, GROUP_CIANWOOD_PHARMACY, MAP_CIANWOOD_PHARMACY
	warp_def $1f, $9, 1, GROUP_CIANWOOD_CITY_PHOTO_STUDIO, MAP_CIANWOOD_CITY_PHOTO_STUDIO
	warp_def $25, $f, 1, GROUP_CIANWOOD_LUGIA_SPEECH_HOUSE, MAP_CIANWOOD_LUGIA_SPEECH_HOUSE
	warp_def $11, $5, 1, GROUP_POKE_SEERS_HOUSE, MAP_POKE_SEERS_HOUSE

	; xy triggers
	db 1
	xy_trigger 1, $10, $b, $0, UnknownScript_0x1a001e, $0, $0

	; signposts
	db 8
	signpost 34, 20, $0, MapCianwoodCitySignpost0Script
	signpost 45, 7, $0, MapCianwoodCitySignpost1Script
	signpost 43, 24, $0, MapCianwoodCitySignpost2Script
	signpost 47, 19, $0, MapCianwoodCitySignpost3Script
	signpost 32, 8, $0, MapCianwoodCitySignpost4Script
	signpost 24, 8, $0, MapCianwoodCitySignpost5Script
	signpost 19, 4, $7, MapCianwoodCitySignpostItem6
	signpost 29, 5, $7, MapCianwoodCitySignpostItem7

	; people-events
	db 12
	person_event SPRITE_STANDING_YOUNGSTER, 41, 25, $3, $0, 255, 255, $a0, 0, StandingYoungsterScript_0x1a00b3, $ffff
	person_event SPRITE_POKEFAN_M, 37, 21, $5, $1, 255, 255, $0, 0, PokefanMScript_0x1a00b6, $ffff
	person_event SPRITE_LASS, 46, 18, $4, $20, 255, 255, $0, 0, LassScript_0x1a00b9, $ffff
	person_event SPRITE_ROCK, 20, 12, $18, $0, 255, 255, $0, 0, RockScript_0x1a00d1, $ffff
	person_event SPRITE_ROCK, 21, 13, $18, $0, 255, 255, $0, 0, RockScript_0x1a00d1, $ffff
	person_event SPRITE_ROCK, 29, 8, $18, $0, 255, 255, $0, 0, RockScript_0x1a00d1, $ffff
	person_event SPRITE_ROCK, 33, 9, $18, $0, 255, 255, $0, 0, RockScript_0x1a00d1, $ffff
	person_event SPRITE_ROCK, 31, 14, $18, $0, 255, 255, $0, 0, RockScript_0x1a00d1, $ffff
	person_event SPRITE_ROCK, 23, 8, $18, $0, 255, 255, $0, 0, RockScript_0x1a00d1, $ffff
	person_event SPRITE_POKEFAN_F, 50, 14, $5, $1, 255, 255, $0, 0, PokefanFScript_0x1a0084, $ffff
	person_event SPRITE_SUPER_NERD, 25, 15, $7, $0, 255, 255, $90, 0, ObjectEvent, $07ad
	person_event SPRITE_SUICUNE, 18, 14, $1, $0, 255, 255, $90, 0, ObjectEvent, $07ae
; 0x1a0867