summaryrefslogtreecommitdiff
path: root/maps/BurnedTower1F.asm
blob: f73933fab7640286b62ab96390d477000c1e330f (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
BurnedTower1F_MapScriptHeader: ; 0x185be1
	; trigger count
	db 3

	; triggers
	dw UnknownScript_0x185bf2, $0000
	dw UnknownScript_0x185bf6, $0000
	dw UnknownScript_0x185bf7, $0000

	; callback count
	db 1

	; callbacks

	dbw 1, UnknownScript_0x185bf8
; 0x185bf2

UnknownScript_0x185bf2: ; 0x185bf2
	priorityjump UnknownScript_0x185c0d
	end
; 0x185bf6

UnknownScript_0x185bf6: ; 0x185bf6
	end
; 0x185bf7

UnknownScript_0x185bf7: ; 0x185bf7
	end
; 0x185bf8

UnknownScript_0x185bf8: ; 0x185bf8
	checkevent $0332
	iftrue UnknownScript_0x185c02
	changeblock $a, $8, $32
UnknownScript_0x185c02: ; 0x185c02
	checkevent EVENT_RELEASED_THE_BEASTS
	iftrue UnknownScript_0x185c0c
	changeblock $6, $e, $9
UnknownScript_0x185c0c: ; 0x185c0c
	return
; 0x185c0d

UnknownScript_0x185c0d: ; 0x185c0d
	spriteface $3, $0
	showemote $0, $3, 15
	applymovement $3, MovementData_0x185cd3
	loadfont
	2writetext UnknownText_0x185ecc
	closetext
	loadmovesprites
	moveperson $3, $9, $e
	dotrigger $1
	end
; 0x185c25

UnknownScript_0x185c25: ; 0x185c25
	showemote $0, $4, 15
	special $006a
	pause 15
	spriteface $4, $3
	pause 15
	applymovement $0, MovementData_0x185ccd
	applymovement $4, MovementData_0x185ccf
	playmusic $001f
	loadfont
	2writetext UnknownText_0x185cd9
	closetext
	loadmovesprites
	checkevent EVENT_GOT_TOTODILE_FROM_ELM
	iftrue UnknownScript_0x185c60
	checkevent EVENT_GOT_CHIKORITA_FROM_ELM
	iftrue UnknownScript_0x185c70
	winlosstext UnknownText_0x185d9b, UnknownText_0x185e2c
	setlasttalked $4
	loadtrainer RIVAL1, RIVAL1_9
	startbattle
	reloadmapmusic
	returnafterbattle
	2jump UnknownScript_0x185c80
; 0x185c60

UnknownScript_0x185c60: ; 0x185c60
	winlosstext UnknownText_0x185d9b, UnknownText_0x185e2c
	setlasttalked $4
	loadtrainer RIVAL1, RIVAL1_7
	startbattle
	reloadmapmusic
	returnafterbattle
	2jump UnknownScript_0x185c80
; 0x185c70

UnknownScript_0x185c70: ; 0x185c70
	winlosstext UnknownText_0x185d9b, UnknownText_0x185e2c
	setlasttalked $4
	loadtrainer RIVAL1, RIVAL1_8
	startbattle
	reloadmapmusic
	returnafterbattle
	2jump UnknownScript_0x185c80
; 0x185c80

UnknownScript_0x185c80: ; 0x185c80
	playmusic $0020
	loadfont
	2writetext UnknownText_0x185de2
	closetext
	loadmovesprites
	dotrigger $2
	setevent $06c5
	special $006a
	pause 15
	earthquake 50
	showemote $0, $0, 15
	playsound $001f
	waitbutton
	changeblock $a, $8, $25
	reloadmappart
	pause 15
	applymovement $0, MovementData_0x185cd1
	playsound $002f
	showemote $0, $4, 20
	loadfont
	2writetext UnknownText_0x185e75
	closetext
	loadmovesprites
	setevent $0332
	pause 15
	warpcheck
	end
; 0x185cbc

SuperNerdScript_0x185cbc: ; 0x185cbc
	jumptextfaceplayer UnknownText_0x185f99
; 0x185cbf

MortyScript_0x185cbf: ; 0x185cbf
	jumptextfaceplayer UnknownText_0x186002
; 0x185cc2

RockScript_0x185cc2: ; 0x185cc2
	jumpstd $000f
; 0x185cc5

MapBurnedTower1FSignpostItem0: ; 0x185cc5
	dw $0080
	db ETHER
	
; 0x185cc8

MapBurnedTower1FSignpostItem1: ; 0x185cc8
	dw $00ff
	db ULTRA_BALL
	
; 0x185ccb

ItemFragment_0x185ccb: ; 0x185ccb
	db HP_UP, 1
; 0x185ccd

MovementData_0x185ccd: ; 0x185ccd
	step_left
	step_end
; 0x185ccf

MovementData_0x185ccf: ; 0x185ccf
	step_right
	step_end
; 0x185cd1

MovementData_0x185cd1: ; 0x185cd1
	db $59 ; movement
	step_end
; 0x185cd3

MovementData_0x185cd3: ; 0x185cd3
	step_down
	step_left
	step_left
	step_left
	step_down
	step_end
; 0x185cd9

UnknownText_0x185cd9: ; 0x185cd9
	text $56, " ", $56, " ", $56

	para "…Oh, it's you."

	para "I came looking for"
	line "some legendary"

	para "#MON that they"
	line "say roosts here."

	para "But there's"
	line "nothing here!"

	para "Nothing after all"
	line "the trouble of"

	para "coming to this"
	line "dump? No way!"

	para "It's all your"
	line "fault!"
	done
; 0x185d9b

UnknownText_0x185d9b: ; 0x185d9b
	text "…Humph!"

	para "This is why I hate"
	line "battling wimps."

	para "There's no"
	line "challenge in it."
	done
; 0x185de2

UnknownText_0x185de2: ; 0x185de2
	text "…Aw, whatever."

	para "You would never be"
	line "able to catch a"

	para "legendary #MON"
	line "anyway."
	done
; 0x185e2c

UnknownText_0x185e2c: ; 0x185e2c
	text "…Humph!"

	para "This is why I hate"
	line "battling wimps."

	para "It's just a waste"
	line "of my time."
	done
; 0x185e75

UnknownText_0x185e75: ; 0x185e75
	text "Humph!"

	para "What are you doing"
	line "falling into a"

	para "hole? Some genius"
	line "you are!"

	para "Serves you right!"
	done
; 0x185ecc

UnknownText_0x185ecc: ; 0x185ecc
	text "EUSINE: My name's"
	line "EUSINE."

	para "I'm on the trail"
	line "of a #MON named"
	cont "SUICUNE."

	para "And you are…?"

	para $52, "? Glad to"
	line "meet you!"

	para "I heard rumors"
	line "that SUICUNE is in"

	para "this BURNED TOWER,"
	line "so I came to look."

	para "But where exactly"
	line "could it be?"
	done
; 0x185f99

UnknownText_0x185f99: ; 0x185f99
	text "EUSINE: I heard"
	line "that SUICUNE is in"

	para "this BURNED TOWER,"
	line "so I came to look."

	para "But where exactly"
	line "could it be?"
	done
; 0x186002

UnknownText_0x186002: ; 0x186002
	text "MORTY: ECRUTEAK's"
	line "GYM LEADER has to"

	para "study what are"
	line "said to be the"

	para "legendary #MON"
	line "--SUICUNE, ENTEI"
	cont "and RAIKOU."

	para "EUSINE is here, so"
	line "I've decided to"

	para "investigate the"
	line "TOWER with him."
	done
; 0x1860b2

BurnedTower1F_MapEventHeader: ; 0x1860b2
	; filler
	db 0, 0

	; warps
	db 14
	warp_def $f, $9, 13, GROUP_ECRUTEAK_CITY, MAP_ECRUTEAK_CITY
	warp_def $f, $a, 13, GROUP_ECRUTEAK_CITY, MAP_ECRUTEAK_CITY
	warp_def $9, $a, 1, GROUP_BURNED_TOWER_B1F, MAP_BURNED_TOWER_B1F
	warp_def $5, $5, 1, GROUP_BURNED_TOWER_B1F, MAP_BURNED_TOWER_B1F
	warp_def $6, $5, 1, GROUP_BURNED_TOWER_B1F, MAP_BURNED_TOWER_B1F
	warp_def $6, $4, 1, GROUP_BURNED_TOWER_B1F, MAP_BURNED_TOWER_B1F
	warp_def $4, $f, 2, GROUP_BURNED_TOWER_B1F, MAP_BURNED_TOWER_B1F
	warp_def $5, $f, 2, GROUP_BURNED_TOWER_B1F, MAP_BURNED_TOWER_B1F
	warp_def $7, $a, 3, GROUP_BURNED_TOWER_B1F, MAP_BURNED_TOWER_B1F
	warp_def $e, $5, 4, GROUP_BURNED_TOWER_B1F, MAP_BURNED_TOWER_B1F
	warp_def $e, $4, 4, GROUP_BURNED_TOWER_B1F, MAP_BURNED_TOWER_B1F
	warp_def $e, $e, 5, GROUP_BURNED_TOWER_B1F, MAP_BURNED_TOWER_B1F
	warp_def $e, $f, 5, GROUP_BURNED_TOWER_B1F, MAP_BURNED_TOWER_B1F
	warp_def $f, $7, 6, GROUP_BURNED_TOWER_B1F, MAP_BURNED_TOWER_B1F

	; xy triggers
	db 1
	xy_trigger 1, $9, $b, $0, UnknownScript_0x185c25, $0, $0

	; signposts
	db 2
	signpost 7, 8, $7, MapBurnedTower1FSignpostItem0
	signpost 11, 13, $7, MapBurnedTower1FSignpostItem1

	; people-events
	db 5
	person_event SPRITE_ROCK, 8, 19, $18, $0, 255, 255, $0, 0, RockScript_0x185cc2, $ffff
	person_event SPRITE_SUPER_NERD, 16, 16, $3, $0, 255, 255, $90, 0, SuperNerdScript_0x185cbc, $0765
	person_event SPRITE_SILVER, 13, 12, $8, $0, 255, 255, $2, 3, ObjectEvent, $06c5
	person_event SPRITE_MORTY, 18, 18, $2, $11, 255, 255, $b0, 0, MortyScript_0x185cbf, $0764
	person_event SPRITE_POKE_BALL, 6, 18, $1, $0, 255, 255, $1, 0, ItemFragment_0x185ccb, $0656
; 0x186151