summaryrefslogtreecommitdiff
path: root/maps/RuinsofAlphOutside.asm
blob: 056645554ae095db6e78028b90fd1e09cac63ee2 (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
RuinsofAlphOutside_MapScriptHeader: ; 0x58000
	; trigger count
	db 2

	; triggers
	dw UnknownScript_0x5800d, $0000
	dw UnknownScript_0x5800e, $0000

	; callback count
	db 1

	; callbacks

	dbw 2, UnknownScript_0x5800f
; 0x5800d

UnknownScript_0x5800d: ; 0x5800d
	end
; 0x5800e

UnknownScript_0x5800e: ; 0x5800e
	end
; 0x5800f

UnknownScript_0x5800f: ; 0x5800f
	checkflag $000c
	iftrue UnknownScript_0x5802c
	checkevent EVENT_MADE_UNOWN_APPEAR_IN_RUINS
	iftrue UnknownScript_0x5801e
	2jump UnknownScript_0x5802c
; 0x5801e

UnknownScript_0x5801e: ; 0x5801e
	checkcode $e
	if_greater_than $2, UnknownScript_0x58027
	2jump UnknownScript_0x5802c
; 0x58027

UnknownScript_0x58027: ; 0x58027
	appear $3
	dotrigger $1
	return
; 0x5802c

UnknownScript_0x5802c: ; 0x5802c
	disappear $3
	dotrigger $0
	return
; 0x58031

UnknownScript_0x58031: ; 0x58031
	spriteface $3, $1
	spriteface $0, $0
	2jump UnknownScript_0x58044
; 0x5803a

UnknownScript_0x5803a: ; 0x5803a
	spriteface $3, $2
	spriteface $0, $3
	2jump UnknownScript_0x58044
; 0x58043

ScientistScript_0x58043: ; 0x58043
	faceplayer
UnknownScript_0x58044: ; 0x58044
	loadfont
	2writetext UnknownText_0x580c7
	closetext
	loadmovesprites
	playmusic $0011
	follow $3, $0
	applymovement $3, MovementData_0x580ba
	disappear $3
	stopfollow
	applymovement $0, MovementData_0x580c5
	domaptrigger GROUP_RUINS_OF_ALPH_RESEARCH_CENTER, MAP_RUINS_OF_ALPH_RESEARCH_CENTER, $1
	warpcheck
	end
; 0x58061

FisherScript_0x58061: ; 0x58061
	faceplayer
	loadfont
	checkevent $00bc
	iftrue UnknownScript_0x58070
	setevent $00bc
	2writetext UnknownText_0x583a4
	keeptextopen
UnknownScript_0x58070: ;0x58070
	2writetext UnknownText_0x58420
	closetext
	loadmovesprites
	end
; 0x58076

YoungsterScript_0x58076: ; 0x58076
	faceplayer
	loadfont
	2writetext UnknownText_0x58449
	closetext
	loadmovesprites
	end
; 0x5807e

YoungsterScript_0x5807e: ; 0x5807e
	faceplayer
	loadfont
	2writetext UnknownText_0x5848e
	closetext
	loadmovesprites
	spriteface $6, $1
	end
; 0x58089

TrainerPsychicNathan: ; 0x58089
	; bit/flag number
	dw $43a

	; trainer group && trainer id
	db PSYCHIC_T, NATHAN

	; text when seen
	dw PsychicNathanSeenText

	; text when trainer beaten
	dw PsychicNathanBeatenText

	; script when lost
	dw $0000

	; script when talk again
	dw PsychicNathanScript
; 0x58095

PsychicNathanScript: ; 0x58095
	talkaftercancel
	loadfont
	2writetext UnknownText_0x5830e
	closetext
	loadmovesprites
	end
; 0x5809d


TrainerSuperNerdStan: ; 0x5809d
	; bit/flag number
	dw $581

	; trainer group && trainer id
	db SUPER_NERD, STAN

	; text when seen
	dw UnknownText_0x581e5

	; text when trainer beaten
	dw UnknownText_0x58217

	; script when lost
	dw $0000

	; script when talk again
	dw UnknownScript_0x580a9
; 0x580a9

UnknownScript_0x580a9: ; 0x580a9
	talkaftercancel
	loadfont
	2writetext UnknownText_0x58250
	closetext
	loadmovesprites
	end
; 0x580b1


MapRuinsofAlphOutsideSignpost0Script: ; 0x580b1
	jumptext UnknownText_0x58325
; 0x580b4

MapRuinsofAlphOutsideSignpost1Script: ; 0x580b4
	jumptext UnknownText_0x58342
; 0x580b7

MapRuinsofAlphOutsideSignpost2Script: ; 0x580b7
	jumptext UnknownText_0x58362
; 0x580ba

MovementData_0x580ba: ; 0x580ba
	step_right
	step_right
	step_right
	step_right
	step_up
	step_up
	step_right
	step_right
	step_up
	step_up
	step_end
; 0x580c5

MovementData_0x580c5: ; 0x580c5
	step_up
	step_end
; 0x580c7

UnknownText_0x580c7: ; 0x580c7
	text "Hm? That's a #-"
	line "DEX, isn't it?"
	cont "May I see it?"

	para "There are so many"
	line "kinds of #MON."

	para "Hm? What's this?"

	para "What is this"
	line "#MON?"

	para "It looks like the"
	line "strange writing on"

	para "the walls of the"
	line "RUINS."

	para "If those drawings"
	line "are really #-"
	cont "MON, there should"
	cont "be many more."

	para "I know! Let me up-"
	line "grade your #-"
	cont "DEX. Follow me."
	done
; 0x581e5

UnknownText_0x581e5: ; 0x581e5
	text "What do you want?"
	line "I'm studying--"
	cont "don't disturb me!"
	done
; 0x58217

UnknownText_0x58217: ; 0x58217
	text "Sorry…"
	line "I'm frustrated by"

	para "our lack of real"
	line "understanding…"
	done
; 0x58250

UnknownText_0x58250: ; 0x58250
	text "The RUINS are from"
	line "about 1500 years"
	cont "ago."

	para "Nobody knows who"
	line "built them."

	para "It's also not"
	line "known if the #-"
	cont "MON statues have"
	cont "any meaning."

	para "It's all one big"
	line "mystery…"
	done
; 0x582eb

PsychicNathanSeenText: ; 0x582eb
	text "Hmmm… This is a"
	line "strange place."
	done
; 0x5830b

PsychicNathanBeatenText: ; 0x5830b
	text "…"
	done
; 0x5830e

UnknownText_0x5830e: ; 0x5830e
	text "I like thinking"
	line "here."
	done
; 0x58325

UnknownText_0x58325: ; 0x58325
	text "MYSTERY STONE"
	line "PANEL CHAMBER"
	done
; 0x58342

UnknownText_0x58342: ; 0x58342
	text "RUINS OF ALPH"
	line "VISITORS WELCOME"
	done
; 0x58362

UnknownText_0x58362: ; 0x58362
	text "RUINS OF ALPH"
	line "RESEARCH CENTER"

	para "THE AUTHORITY ON"
	line "THE RUINS OF ALPH"
	done
; 0x583a4

UnknownText_0x583a4: ; 0x583a4
	text "While exploring"
	line "the RUINS, we"

	para "suddenly noticed"
	line "an odd presence."

	para "We all got scared"
	line "and ran away."

	para "You should be"
	line "careful too."
	done
; 0x58420

UnknownText_0x58420: ; 0x58420
	text "The RUINS hide a"
	line "huge secret!"

	para "…I think…"
	done
; 0x58449

UnknownText_0x58449: ; 0x58449
	text "There are many"
	line "kinds of UNOWN, so"

	para "we use them for"
	line "our secret codes."
	done
; 0x5848e

UnknownText_0x5848e: ; 0x5848e
	text "A… H… E… A… D…"
	line "Hmm…"

	para "What?"

	para "I'm decoding this"
	line "message!"
	done
; 0x584c3

RuinsofAlphOutside_MapEventHeader: ; 0x584c3
	; filler
	db 0, 0

	; warps
	db 11
	warp_def $11, $2, 1, GROUP_RUINS_OF_ALPH_HO_OH_CHAMBER, MAP_RUINS_OF_ALPH_HO_OH_CHAMBER
	warp_def $7, $e, 1, GROUP_RUINS_OF_ALPH_KABUTO_CHAMBER, MAP_RUINS_OF_ALPH_KABUTO_CHAMBER
	warp_def $1d, $2, 1, GROUP_RUINS_OF_ALPH_OMANYTE_CHAMBER, MAP_RUINS_OF_ALPH_OMANYTE_CHAMBER
	warp_def $21, $10, 1, GROUP_RUINS_OF_ALPH_AERODACTYL_CHAMBER, MAP_RUINS_OF_ALPH_AERODACTYL_CHAMBER
	warp_def $d, $a, 1, GROUP_RUINS_OF_ALPH_INNER_CHAMBER, MAP_RUINS_OF_ALPH_INNER_CHAMBER
	warp_def $b, $11, 1, GROUP_RUINS_OF_ALPH_RESEARCH_CENTER, MAP_RUINS_OF_ALPH_RESEARCH_CENTER
	warp_def $13, $6, 1, GROUP_UNION_CAVE_B1F, MAP_UNION_CAVE_B1F
	warp_def $1b, $6, 2, GROUP_UNION_CAVE_B1F, MAP_UNION_CAVE_B1F
	warp_def $5, $7, 3, GROUP_ROUTE_36_RUINS_OF_ALPH_GATE, MAP_ROUTE_36_RUINS_OF_ALPH_GATE
	warp_def $14, $d, 1, GROUP_ROUTE_32_RUINS_OF_ALPH_GATE, MAP_ROUTE_32_RUINS_OF_ALPH_GATE
	warp_def $15, $d, 2, GROUP_ROUTE_32_RUINS_OF_ALPH_GATE, MAP_ROUTE_32_RUINS_OF_ALPH_GATE

	; xy triggers
	db 2
	xy_trigger 1, $e, $b, $0, UnknownScript_0x58031, $0, $0
	xy_trigger 1, $f, $a, $0, UnknownScript_0x5803a, $0, $0

	; signposts
	db 3
	signpost 8, 16, $0, MapRuinsofAlphOutsideSignpost0Script
	signpost 16, 12, $0, MapRuinsofAlphOutsideSignpost1Script
	signpost 12, 18, $0, MapRuinsofAlphOutsideSignpost2Script

	; people-events
	db 5
	person_event SPRITE_YOUNGSTER, 24, 8, $6, $0, 255, 255, $2, 1, TrainerPsychicNathan, $ffff
	person_event SPRITE_SCIENTIST, 19, 15, $7, $0, 255, 255, $0, 0, ScientistScript_0x58043, $0703
	person_event SPRITE_FISHER, 21, 17, $3, $0, 255, 255, $a0, 0, FisherScript_0x58061, $078e
	person_event SPRITE_YOUNGSTER, 15, 18, $2, $11, 255, 255, $b0, 0, YoungsterScript_0x58076, $078f
	person_event SPRITE_YOUNGSTER, 12, 16, $7, $0, 255, 255, $80, 0, YoungsterScript_0x5807e, $078f
; 0x58560