summaryrefslogtreecommitdiff
path: root/maps/EcruteakCity.asm
blob: 4168561586419533f8d842f6b167c0b9e214a323 (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
EcruteakCity_MapScriptHeader: ; 0x1a4000
	; trigger count
	db 0

	; callback count
	db 1

	; callbacks

	dbw 5, UnknownScript_0x1a4005
; 0x1a4005

UnknownScript_0x1a4005: ; 0x1a4005
	setflag $0048
	return
; 0x1a4009

GrampsScript_0x1a4009: ; 0x1a4009
	jumptextfaceplayer UnknownText_0x1a4105
; 0x1a400c

GrampsScript_0x1a400c: ; 0x1a400c
	jumptextfaceplayer UnknownText_0x1a4147
; 0x1a400f

GrampsScript_0x1a400f: ; 0x1a400f
	jumptextfaceplayer UnknownText_0x1a43cb
; 0x1a4012

LassScript_0x1a4012: ; 0x1a4012
	jumptextfaceplayer UnknownText_0x1a41db
; 0x1a4015

LassScript_0x1a4015: ; 0x1a4015
	faceplayer
	loadfont
	checkevent EVENT_RELEASED_THE_BEASTS
	iftrue UnknownScript_0x1a4023
	2writetext UnknownText_0x1a421a
	closetext
	loadmovesprites
	end
; 0x1a4023

UnknownScript_0x1a4023: ; 0x1a4023
	2writetext UnknownText_0x1a4269
	closetext
	loadmovesprites
	end
; 0x1a4029

FisherScript_0x1a4029: ; 0x1a4029
	faceplayer
	loadfont
	checkevent EVENT_JASMINE_RETURNED_TO_GYM
	iftrue UnknownScript_0x1a4037
	2writetext UnknownText_0x1a42ac
	closetext
	loadmovesprites
	end
; 0x1a4037

UnknownScript_0x1a4037: ; 0x1a4037
	2writetext UnknownText_0x1a4325
	closetext
	loadmovesprites
	end
; 0x1a403d

YoungsterScript_0x1a403d: ; 0x1a403d
	jumptextfaceplayer UnknownText_0x1a4386
; 0x1a4040

MapEcruteakCitySignpost0Script: ; 0x1a4040
	jumptext UnknownText_0x1a44d1
; 0x1a4043

MapEcruteakCitySignpost1Script: ; 0x1a4043
	jumptext UnknownText_0x1a4513
; 0x1a4046

MapEcruteakCitySignpost2Script: ; 0x1a4046
	jumptext UnknownText_0x1a4548
; 0x1a4049

MapEcruteakCitySignpost3Script: ; 0x1a4049
	jumptext UnknownText_0x1a458c
; 0x1a404c

MapEcruteakCitySignpost4Script: ; 0x1a404c
	jumptext UnknownText_0x1a45a4
; 0x1a404f

MapEcruteakCitySignpost5Script: ; 0x1a404f
	jumpstd $0010
; 0x1a4052

MapEcruteakCitySignpost6Script: ; 0x1a4052
	jumpstd $0011
; 0x1a4055

MapEcruteakCitySignpostItem7: ; 0x1a4055
	dw $00b4
	db HYPER_POTION
	
; 0x1a4058

UnusedMissingDaughterText: ; 0x1a4058
; This text is neither used nor referenced in the final game.
	text "Oh, no. Oh, no…"

	para "My daughter is"
	line "missing."

	para "No… She couldn't"
	line "have gone to the"
	cont "BURNED TOWER."

	para "I told her not to"
	line "go near it…"

	para "People seem to"
	line "disappear there…"

	para "Oh, what should I"
	line "do…?"
	done

UnknownText_0x1a4105: ; 0x1a4105
	text "ECRUTEAK used to"
	line "have two towers:"

	para "one each in the"
	line "east and west."
	done
; 0x1a4147

UnknownText_0x1a4147: ; 0x1a4147
	text "Ah, child."
	line "Have you learned"

	para "to dance like the"
	line "KIMONO GIRLS?"

	para "If you go to their"
	line "DANCE THEATER, an"

	para "odd old man will"
	line "give you something"
	cont "nice, I hear."
	done
; 0x1a41db

UnknownText_0x1a41db: ; 0x1a41db
	text "I'm going to prac-"
	line "tice at the DANCE"

	para "THEATER. Care to"
	line "join me?"
	done
; 0x1a421a

UnknownText_0x1a421a: ; 0x1a421a
	text "The tower that"
	line "used to be here…"

	para "My grandma told me"
	line "it used to be much"
	cont "taller."
	done
; 0x1a4269

UnknownText_0x1a4269: ; 0x1a4269
	text "Three big #MON"
	line "ran off in differ-"
	cont "ent directions."
	cont "What were they?"
	done
; 0x1a42ac

UnknownText_0x1a42ac: ; 0x1a42ac
	text "I heard a rumor"
	line "about OLIVINE"
	cont "LIGHTHOUSE."

	para "The #MON that"
	line "serves as the"

	para "beacon fell ill."
	line "Sounds like they"
	cont "are in trouble."
	done
; 0x1a4325

UnknownText_0x1a4325: ; 0x1a4325
	text "The #MON at"
	line "OLIVINE LIGHTHOUSE"
	cont "has been cured."

	para "Boats can safely"
	line "sail out to sea at"
	cont "night again."
	done
; 0x1a4386

UnknownText_0x1a4386: ; 0x1a4386
	text "I hear #MON are"
	line "rampaging at the"

	para "LAKE OF RAGE. I'd"
	line "like to see that."
	done
; 0x1a43cb

UnknownText_0x1a43cb: ; 0x1a43cb
	text "In the distant"
	line "past…"

	para "This tower burned"
	line "in a fire. Three"

	para "nameless #MON"
	line "perished in it."

	para "A rainbow-colored"
	line "#MON descended"

	para "from the sky and"
	line "resurrected them…"

	para "It's a legend that"
	line "has been passed"

	para "down by ECRUTEAK"
	line "GYM LEADERS."

	para "Me?"

	para "I was a trainer"
	line "way back when."
	cont "Hohoho!"
	done
; 0x1a44d1

UnknownText_0x1a44d1: ; 0x1a44d1
	text "ECRUTEAK CITY"
	line "A Historical City"

	para "Where the Past"
	line "Meets the Present"
	done
; 0x1a4513

UnknownText_0x1a4513: ; 0x1a4513
	text "TIN TOWER"

	para "A legendary #-"
	line "MON is said to"
	cont "roost here."
	done
; 0x1a4548

UnknownText_0x1a4548: ; 0x1a4548
	text "ECRUTEAK CITY"
	line "#MON GYM"
	cont "LEADER: MORTY"

	para "The Mystic Seer of"
	line "the Future"
	done
; 0x1a458c

UnknownText_0x1a458c: ; 0x1a458c
	text "ECRUTEAK DANCE"
	line "THEATER"
	done
; 0x1a45a4

UnknownText_0x1a45a4: ; 0x1a45a4
	text "BURNED TOWER"

	para "It was destroyed"
	line "by a mysterious"
	cont "fire."

	para "Please stay away,"
	line "as it is unsafe."
	done
; 0x1a45fc

EcruteakCity_MapEventHeader: ; 0x1a45fc
	; filler
	db 0, 0

	; warps
	db 15
	warp_def $1a, $23, 1, GROUP_ROUTE_42_ECRUTEAK_GATE, MAP_ROUTE_42_ECRUTEAK_GATE
	warp_def $1b, $23, 2, GROUP_ROUTE_42_ECRUTEAK_GATE, MAP_ROUTE_42_ECRUTEAK_GATE
	warp_def $b, $12, 1, GROUP_ECRUTEAK_HOUSE, MAP_ECRUTEAK_HOUSE
	warp_def $2, $14, 1, GROUP_WISE_TRIOS_ROOM, MAP_WISE_TRIOS_ROOM
	warp_def $3, $14, 2, GROUP_WISE_TRIOS_ROOM, MAP_WISE_TRIOS_ROOM
	warp_def $1b, $17, 1, GROUP_ECRUTEAK_POKECENTER_1F, MAP_ECRUTEAK_POKECENTER_1F
	warp_def $15, $5, 1, GROUP_ECRUTEAK_LUGIA_SPEECH_HOUSE, MAP_ECRUTEAK_LUGIA_SPEECH_HOUSE
	warp_def $15, $17, 1, GROUP_DANCE_THEATRE, MAP_DANCE_THEATRE
	warp_def $15, $1d, 2, GROUP_ECRUTEAK_MART, MAP_ECRUTEAK_MART
	warp_def $1b, $6, 1, GROUP_ECRUTEAK_GYM, MAP_ECRUTEAK_GYM
	warp_def $1b, $d, 1, GROUP_ECRUTEAK_ITEMFINDER_HOUSE, MAP_ECRUTEAK_ITEMFINDER_HOUSE
	warp_def $7, $25, 1, GROUP_TIN_TOWER_1F, MAP_TIN_TOWER_1F
	warp_def $5, $5, 1, GROUP_BURNED_TOWER_1F, MAP_BURNED_TOWER_1F
	warp_def $12, $0, 3, GROUP_ROUTE_38_ECRUTEAK_GATE, MAP_ROUTE_38_ECRUTEAK_GATE
	warp_def $13, $0, 4, GROUP_ROUTE_38_ECRUTEAK_GATE, MAP_ROUTE_38_ECRUTEAK_GATE

	; xy triggers
	db 0

	; signposts
	db 8
	signpost 21, 15, $0, MapEcruteakCitySignpost0Script
	signpost 10, 38, $0, MapEcruteakCitySignpost1Script
	signpost 28, 8, $0, MapEcruteakCitySignpost2Script
	signpost 21, 21, $0, MapEcruteakCitySignpost3Script
	signpost 10, 2, $0, MapEcruteakCitySignpost4Script
	signpost 27, 24, $0, MapEcruteakCitySignpost5Script
	signpost 21, 30, $0, MapEcruteakCitySignpost6Script
	signpost 14, 23, $7, MapEcruteakCitySignpostItem7

	; people-events
	db 7
	person_event SPRITE_GRAMPS, 19, 22, $2, $11, 255, 255, $0, 0, GrampsScript_0x1a4009, $ffff
	person_event SPRITE_GRAMPS, 25, 24, $3, $0, 255, 255, $0, 0, GrampsScript_0x1a400c, $ffff
	person_event SPRITE_LASS, 33, 25, $5, $2, 255, 255, $90, 0, LassScript_0x1a4012, $ffff
	person_event SPRITE_LASS, 13, 7, $7, $0, 255, 255, $0, 0, LassScript_0x1a4015, $ffff
	person_event SPRITE_FISHER, 26, 13, $5, $1, 255, 255, $a0, 0, FisherScript_0x1a4029, $ffff
	person_event SPRITE_YOUNGSTER, 18, 14, $2, $11, 255, 255, $80, 0, YoungsterScript_0x1a403d, $ffff
	person_event SPRITE_GRAMPS, 11, 7, $2, $11, 255, 255, $a0, 0, GrampsScript_0x1a400f, $07a9
; 0x1a46d0