summaryrefslogtreecommitdiff
path: root/maps/SaffronCity.asm
blob: 9c08c72d33525ce450695d5e544d671f33e4bc62 (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
SaffronCity_MapScriptHeader: ; 0x199321
	; trigger count
	db 0

	; callback count
	db 1

	; callbacks

	dbw 5, UnknownScript_0x199326
; 0x199326

UnknownScript_0x199326: ; 0x199326
	setflag $003c
	return
; 0x19932a

LassScript_0x19932a: ; 0x19932a
	faceplayer
	loadfont
	checkevent EVENT_RETURNED_MACHINE_PART
	iftrue UnknownScript_0x199338
	2writetext UnknownText_0x19938d
	closetext
	loadmovesprites
	end
; 0x199338

UnknownScript_0x199338: ; 0x199338
	2writetext UnknownText_0x19940d
	closetext
	loadmovesprites
	end
; 0x19933e

PokefanMScript_0x19933e: ; 0x19933e
	faceplayer
	loadfont
	checkevent EVENT_RETURNED_MACHINE_PART
	iftrue UnknownScript_0x19934c
	2writetext UnknownText_0x199460
	closetext
	loadmovesprites
	end
; 0x19934c

UnknownScript_0x19934c: ; 0x19934c
	2writetext UnknownText_0x1994ae
	closetext
	loadmovesprites
	end
; 0x199352

CooltrainerMScript_0x199352: ; 0x199352
	jumptextfaceplayer UnknownText_0x1994fe
; 0x199355

CooltrainerFScript_0x199355: ; 0x199355
	jumptextfaceplayer UnknownText_0x19958e
; 0x199358

FisherScript_0x199358: ; 0x199358
	faceplayer
	loadfont
	checkevent EVENT_RETURNED_MACHINE_PART
	iftrue UnknownScript_0x199366
	2writetext UnknownText_0x1995fc
	closetext
	loadmovesprites
	end
; 0x199366

UnknownScript_0x199366: ; 0x199366
	2writetext UnknownText_0x19964b
	closetext
	loadmovesprites
	end
; 0x19936c

YoungsterScript_0x19936c: ; 0x19936c
	jumptextfaceplayer UnknownText_0x1996a5
; 0x19936f

YoungsterScript_0x19936f: ; 0x19936f
	jumptextfaceplayer UnknownText_0x1996e5
; 0x199372

LassScript_0x199372: ; 0x199372
	jumptextfaceplayer UnknownText_0x199745
; 0x199375

MapSaffronCitySignpost0Script: ; 0x199375
	jumptext UnknownText_0x1997b7
; 0x199378

MapSaffronCitySignpost1Script: ; 0x199378
	jumptext UnknownText_0x1997e6
; 0x19937b

MapSaffronCitySignpost2Script: ; 0x19937b
	jumptext UnknownText_0x199829
; 0x19937e

MapSaffronCitySignpost3Script: ; 0x19937e
	jumptext UnknownText_0x19984a
; 0x199381

MapSaffronCitySignpost4Script: ; 0x199381
	jumptext UnknownText_0x199865
; 0x199384

MapSaffronCitySignpost5Script: ; 0x199384
	jumptext UnknownText_0x199879
; 0x199387

MapSaffronCitySignpost6Script: ; 0x199387
	jumpstd $0010
; 0x19938a

MapSaffronCitySignpost7Script: ; 0x19938a
	jumpstd $0011
; 0x19938d

UnknownText_0x19938d: ; 0x19938d
	text "A little girl who"
	line "is an expert at"

	para "mimicking people"
	line "lives here."

	para "She even mimics"
	line "the people she's"

	para "conversing with."
	line "It's confusing."
	done
; 0x19940d

UnknownText_0x19940d: ; 0x19940d
	text "The COPYCAT girl"
	line "looked unhappy."

	para "She said she lost"
	line "her favorite #"
	cont "DOLL--CLEFAIRY."
	done
; 0x199460

UnknownText_0x199460: ; 0x199460
	text "You came out from"
	line "JOHTO?"

	para "You can zip back"
	line "home if the MAGNET"
	cont "TRAIN's running."
	done
; 0x1994ae

UnknownText_0x1994ae: ; 0x1994ae
	text "You came out from"
	line "JOHTO?"

	para "You can zip back"
	line "home by hopping on"
	cont "the MAGNET TRAIN."
	done
; 0x1994fe

UnknownText_0x1994fe: ; 0x1994fe
	text "I went to the GYM,"
	line "raring for battles"
	cont "against trainers…"

	para "It turns out, I"
	line "stumbled into the"

	para "unused GYM next"
	line "door."

	para "Boy, I was pretty"
	line "embarrassed."
	done
; 0x19958e

UnknownText_0x19958e: ; 0x19958e
	text "This is SILPH CO.,"
	line "famous for #MON"
	cont "merchandise."

	para "In the past, TEAM"
	line "ROCKET wanted the"

	para "company because of"
	line "that."
	done
; 0x1995fc

UnknownText_0x1995fc: ; 0x1995fc
	text "Chew… Chew…"

	para "I hear there's big"
	line "trouble brewing at"
	cont "the POWER PLANT."

	para "Chew… Chew…"
	done
; 0x19964b

UnknownText_0x19964b: ; 0x19964b
	text "Chew… Chew…"

	para "I hear there was"
	line "big trouble at the"
	cont "POWER PLANT."

	para "Chew… Chew…"
	line "Haaah, I'm full!"
	done
; 0x1996a5

UnknownText_0x1996a5: ; 0x1996a5
	text "Going into an"
	line "alley for the"

	para "first time makes"
	line "me sorta anxious."
	done
; 0x1996e5

UnknownText_0x1996e5: ; 0x1996e5
	text "There's a place"
	line "called TRAINER"

	para "HOUSE in VIRIDIAN"
	line "where trainers"

	para "gather from all"
	line "over the place."
	done
; 0x199745

UnknownText_0x199745: ; 0x199745
	text "Our city was"
	line "featured on a"
	cont "radio program."

	para "It's nice to hear"
	line "praise for your"

	para "city, but it's a"
	line "bit embarrassing"
	cont "too."
	done
; 0x1997b7

UnknownText_0x1997b7: ; 0x1997b7
	text "SAFFRON CITY"

	para "Shining, Golden"
	line "Land of Commerce"
	done
; 0x1997e6

UnknownText_0x1997e6: ; 0x1997e6
	text "SAFFRON CITY"
	line "#MON GYM"
	cont "LEADER: SABRINA"

	para "The Master of"
	line "Psychic #MON!"
	done
; 0x199829

UnknownText_0x199829: ; 0x199829
	text "Everyone Welcome!"
	line "FIGHTING DOJO"
	done
; 0x19984a

UnknownText_0x19984a: ; 0x19984a
	text "SILPH CO."
	line "OFFICE BUILDING"
	done
; 0x199865

UnknownText_0x199865: ; 0x199865
	text "MR.PSYCHIC'S"
	line "HOUSE"
	done
; 0x199879

UnknownText_0x199879: ; 0x199879
	text "SAFFRON CITY"
	line "MAGNET TRAIN"
	cont "STATION"
	done
; 0x19989c

SaffronCity_MapEventHeader: ; 0x19989c
	; filler
	db 0, 0

	; warps
	db 15
	warp_def $3, $1a, 1, GROUP_FIGHTING_DOJO, MAP_FIGHTING_DOJO
	warp_def $3, $22, 1, GROUP_SAFFRON_GYM, MAP_SAFFRON_GYM
	warp_def $b, $19, 2, GROUP_SAFFRON_MART, MAP_SAFFRON_MART
	warp_def $1d, $9, 1, GROUP_SAFFRON_POKECENTER_1F, MAP_SAFFRON_POKECENTER_1F
	warp_def $1d, $1b, 1, GROUP_MR_PSYCHICS_HOUSE, MAP_MR_PSYCHICS_HOUSE
	warp_def $3, $8, 2, GROUP_SAFFRON_TRAIN_STATION, MAP_SAFFRON_TRAIN_STATION
	warp_def $15, $12, 1, GROUP_SILPH_CO_1F, MAP_SILPH_CO_1F
	warp_def $b, $9, 1, GROUP_COPYCATS_HOUSE_1F, MAP_COPYCATS_HOUSE_1F
	warp_def $3, $12, 3, GROUP_ROUTE_5_SAFFRON_CITY_GATE, MAP_ROUTE_5_SAFFRON_CITY_GATE
	warp_def $18, $0, 3, GROUP_ROUTE_7_SAFFRON_GATE, MAP_ROUTE_7_SAFFRON_GATE
	warp_def $19, $0, 4, GROUP_ROUTE_7_SAFFRON_GATE, MAP_ROUTE_7_SAFFRON_GATE
	warp_def $21, $10, 1, GROUP_ROUTE_6_SAFFRON_GATE, MAP_ROUTE_6_SAFFRON_GATE
	warp_def $21, $11, 2, GROUP_ROUTE_6_SAFFRON_GATE, MAP_ROUTE_6_SAFFRON_GATE
	warp_def $16, $27, 1, GROUP_ROUTE_8_SAFFRON_GATE, MAP_ROUTE_8_SAFFRON_GATE
	warp_def $17, $27, 2, GROUP_ROUTE_8_SAFFRON_GATE, MAP_ROUTE_8_SAFFRON_GATE

	; xy triggers
	db 0

	; signposts
	db 8
	signpost 5, 21, $0, MapSaffronCitySignpost0Script
	signpost 5, 33, $0, MapSaffronCitySignpost1Script
	signpost 5, 25, $0, MapSaffronCitySignpost2Script
	signpost 21, 15, $0, MapSaffronCitySignpost3Script
	signpost 29, 25, $0, MapSaffronCitySignpost4Script
	signpost 5, 11, $0, MapSaffronCitySignpost5Script
	signpost 29, 10, $0, MapSaffronCitySignpost6Script
	signpost 11, 26, $0, MapSaffronCitySignpost7Script

	; people-events
	db 8
	person_event SPRITE_LASS, 18, 11, $5, $2, 255, 255, $80, 0, LassScript_0x19932a, $ffff
	person_event SPRITE_POKEFAN_M, 34, 23, $5, $2, 255, 255, $b0, 0, PokefanMScript_0x19933e, $ffff
	person_event SPRITE_COOLTRAINER_M, 11, 36, $5, $1, 255, 255, $a0, 0, CooltrainerMScript_0x199352, $ffff
	person_event SPRITE_COOLTRAINER_F, 28, 24, $5, $2, 255, 255, $80, 0, CooltrainerFScript_0x199355, $ffff
	person_event SPRITE_FISHER, 16, 31, $6, $0, 255, 255, $a0, 0, FisherScript_0x199358, $ffff
	person_event SPRITE_YOUNGSTER, 23, 19, $4, $10, 255, 255, $90, 0, YoungsterScript_0x19936c, $ffff
	person_event SPRITE_YOUNGSTER, 26, 39, $2, $11, 255, 255, $80, 0, YoungsterScript_0x19936f, $ffff
	person_event SPRITE_LASS, 12, 23, $3, $0, 255, 255, $a0, 0, LassScript_0x199372, $ffff
; 0x19997d