summaryrefslogtreecommitdiff
path: root/maps/CeruleanCity.asm
blob: f92804d08c3152a8b011ea98b79c0dba9f68577c (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
CeruleanCity_MapScriptHeader: ; 0x184000
	; trigger count
	db 0

	; callback count
	db 1

	; callbacks

	dbw 5, UnknownScript_0x184005
; 0x184005

UnknownScript_0x184005: ; 0x184005
	setflag $0038
	return
; 0x184009

CooltrainerMScript_0x184009: ; 0x184009
	faceplayer
	loadfont
	checkevent EVENT_RETURNED_MACHINE_PART
	iftrue UnknownScript_0x184017
	2writetext UnknownText_0x1840bc
	closetext
	loadmovesprites
	end
; 0x184017

UnknownScript_0x184017: ; 0x184017
	2writetext UnknownText_0x184144
	closetext
	loadmovesprites
	end
; 0x18401d

SuperNerdScript_0x18401d: ; 0x18401d
	jumptextfaceplayer UnknownText_0x1841a8
; 0x184020

SlowpokeScript_0x184020: ; 0x184020
	loadfont
	2writetext UnknownText_0x1841e9
	cry SLOWBRO
	closetext
	loadmovesprites
	end
; 0x18402a

CooltrainerFScript_0x18402a: ; 0x18402a
	faceplayer
	loadfont
	2writetext UnknownText_0x1841fa
	closetext
	loadmovesprites
	spriteface $5, $2
	loadfont
	2writetext UnknownText_0x184229
	closetext
	loadmovesprites
	loadfont
	2writetext UnknownText_0x1841e9
	cry SLOWBRO
	closetext
	loadmovesprites
	loadfont
	2writetext UnknownText_0x18424b
	closetext
	loadmovesprites
	end
; 0x18404a

FisherScript_0x18404a: ; 0x18404a
	faceplayer
	loadfont
	checkevent EVENT_RETURNED_MACHINE_PART
	iftrue UnknownScript_0x184058
	checkevent EVENT_MET_ROCKET_GRUNT_AT_CERULEAN_GYM
	iftrue UnknownScript_0x18405e
UnknownScript_0x184058: ; 0x184058
	2writetext UnknownText_0x18424e
	closetext
	loadmovesprites
	end
; 0x18405e

UnknownScript_0x18405e: ; 0x18405e
	2writetext UnknownText_0x184275
	closetext
	loadmovesprites
	end
; 0x184064

YoungsterScript_0x184064: ; 0x184064
	faceplayer
	loadfont
	2writetext UnknownText_0x1842a9
	closetext
	loadmovesprites
	checkevent $00fa
	iffalse UnknownScript_0x184072
	end
; 0x184072

UnknownScript_0x184072: ; 0x184072
	waitbutton
	playsound $0012
	waitbutton
	playsound $0022
	waitbutton
	playsound $0012
	waitbutton
	playsound $0022
	waitbutton
	playsound $0012
	waitbutton
	playsound $0022
	waitbutton
	playsound $0012
	waitbutton
	playsound $0022
	waitbutton
	showemote $0, $7, 15
	spriteface $7, $2
	loadfont
	2writetext UnknownText_0x1842ee
	closetext
	loadmovesprites
	end
; 0x1840a1

MapCeruleanCitySignpost0Script: ; 0x1840a1
	jumptext UnknownText_0x184312
; 0x1840a4

MapCeruleanCitySignpost1Script: ; 0x1840a4
	jumptext UnknownText_0x184345
; 0x1840a7

MapCeruleanCitySignpost2Script: ; 0x1840a7
	jumptext UnknownText_0x184381
; 0x1840aa

MapCeruleanCitySignpost3Script: ; 0x1840aa
	jumptext UnknownText_0x1843cc
; 0x1840ad

MapCeruleanCitySignpost4Script: ; 0x1840ad
	jumptext UnknownText_0x18443b
; 0x1840b0

MapCeruleanCitySignpost5Script: ; 0x1840b0
	jumptext UnknownText_0x184450
; 0x1840b3

MapCeruleanCitySignpost6Script: ; 0x1840b3
	jumpstd $0010
; 0x1840b6

MapCeruleanCitySignpost7Script: ; 0x1840b6
	jumpstd $0011
; 0x1840b9

MapCeruleanCitySignpostItem8: ; 0x1840b9
	dw $00fa
	db BERSERK_GENE
	
; 0x1840bc

UnknownText_0x1840bc: ; 0x1840bc
	text "KANTO's POWER"
	line "PLANT?"

	para "It's near the end"
	line "of ROUTE 9, the"

	para "road that heads"
	line "east from here."

	para "I think there was"
	line "an accident of"
	cont "some sort there."
	done
; 0x184144

UnknownText_0x184144: ; 0x184144
	text "You're collecting"
	line "every single kind"
	cont "of #MON?"

	para "That must be quite"
	line "a challenge, but"
	cont "it sounds fun too."
	done
; 0x1841a8

UnknownText_0x1841a8: ; 0x1841a8
	text "The CAPE in the"
	line "north is a good"

	para "place for dates."
	line "Girls like it!"
	done
; 0x1841e9

UnknownText_0x1841e9: ; 0x1841e9
	text "SLOWBRO: Yarah?"
	done
; 0x1841fa

UnknownText_0x1841fa: ; 0x1841fa
	text "My SLOWBRO and I"
	line "make an awesome"
	cont "combination!"
	done
; 0x184229

UnknownText_0x184229: ; 0x184229
	text "SLOWBRO, show me"
	line "your CONFUSION!"
	done
; 0x18424b

UnknownText_0x18424b: ; 0x18424b
	text "…"
	done
; 0x18424e

UnknownText_0x18424e: ; 0x18424e
	text "I'm a huge fan of"
	line "CERULEAN GYM's"
	cont "MISTY."
	done
; 0x184275

UnknownText_0x184275: ; 0x184275
	text "I saw this shady"
	line "guy go off toward"
	cont "CERULEAN's CAPE."
	done
; 0x1842a9

UnknownText_0x1842a9: ; 0x1842a9
	text "There used to be a"
	line "cave here that had"

	para "horribly powerful"
	line "#MON in it."
	done
; 0x1842ee

UnknownText_0x1842ee: ; 0x1842ee
	text "Ayuh?"

	para "My ITEMFINDER is"
	line "responding…"
	done
; 0x184312

UnknownText_0x184312: ; 0x184312
	text "CERULEAN CITY"

	para "A Mysterious Blue"
	line "Aura Surrounds It"
	done
; 0x184345

UnknownText_0x184345: ; 0x184345
	text "CERULEAN CITY"
	line "#MON GYM"
	cont "LEADER: MISTY"

	para "The Tomboyish"
	line "Mermaid"
	done
; 0x184381

UnknownText_0x184381: ; 0x184381
	text "There's a notice"
	line "here…"

	para "The BIKE SHOP has"
	line "moved to GOLDENROD"
	cont "CITY in JOHTO…"
	done
; 0x1843cc

UnknownText_0x1843cc: ; 0x1843cc
	text "There's a notice"
	line "here…"

	para "Stamp out thievery"
	line "and make the city"

	para "a friendlier, more"
	line "cheerful place!"

	para "CERULEAN POLICE"
	done
; 0x18443b

UnknownText_0x18443b: ; 0x18443b
	text "CERULEAN CAPE"
	line "AHEAD"
	done
; 0x184450

UnknownText_0x184450: ; 0x184450
	text "It's locked…"
	done
; 0x18445d

CeruleanCity_MapEventHeader: ; 0x18445d
	; filler
	db 0, 0

	; warps
	db 6
	warp_def $f, $7, 1, GROUP_CERULEAN_GYM_BADGE_SPEECH_HOUSE, MAP_CERULEAN_GYM_BADGE_SPEECH_HOUSE
	warp_def $11, $1c, 1, GROUP_CERULEAN_POLICE_STATION, MAP_CERULEAN_POLICE_STATION
	warp_def $13, $d, 1, GROUP_CERULEAN_TRADE_SPEECH_HOUSE, MAP_CERULEAN_TRADE_SPEECH_HOUSE
	warp_def $15, $13, 1, GROUP_CERULEAN_POKECENTER_1F, MAP_CERULEAN_POKECENTER_1F
	warp_def $17, $1e, 1, GROUP_CERULEAN_GYM, MAP_CERULEAN_GYM
	warp_def $1d, $19, 2, GROUP_CERULEAN_MART, MAP_CERULEAN_MART

	; xy triggers
	db 0

	; signposts
	db 9
	signpost 23, 23, $0, MapCeruleanCitySignpost0Script
	signpost 25, 27, $0, MapCeruleanCitySignpost1Script
	signpost 29, 11, $0, MapCeruleanCitySignpost2Script
	signpost 17, 25, $0, MapCeruleanCitySignpost3Script
	signpost 7, 23, $0, MapCeruleanCitySignpost4Script
	signpost 29, 14, $0, MapCeruleanCitySignpost5Script
	signpost 21, 20, $0, MapCeruleanCitySignpost6Script
	signpost 29, 26, $0, MapCeruleanCitySignpost7Script
	signpost 12, 2, $7, MapCeruleanCitySignpostItem8

	; people-events
	db 6
	person_event SPRITE_COOLTRAINER_M, 27, 19, $2, $22, 255, 255, $90, 0, CooltrainerMScript_0x184009, $ffff
	person_event SPRITE_SUPER_NERD, 19, 27, $2, $11, 255, 255, $90, 0, SuperNerdScript_0x18401d, $ffff
	person_event SPRITE_SLOWPOKE, 28, 24, $1, $0, 255, 255, $0, 0, SlowpokeScript_0x184020, $ffff
	person_event SPRITE_COOLTRAINER_F, 28, 25, $8, $0, 255, 255, $a0, 0, CooltrainerFScript_0x18402a, $ffff
	person_event SPRITE_FISHER, 30, 34, $5, $1, 255, 255, $80, 0, FisherScript_0x18404a, $ffff
	person_event SPRITE_YOUNGSTER, 16, 10, $3, $1, 255, 255, $80, 0, YoungsterScript_0x184064, $ffff
; 0x1844fc