summaryrefslogtreecommitdiff
path: root/maps/CeladonGym.asm
blob: f6426f8c42c0ca60403f9f699105ddeea9df1d16 (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
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
CeladonGym_MapScriptHeader: ; 0x72a68
	; trigger count
	db 0

	; callback count
	db 0
; 0x72a6a

ErikaScript_0x72a6a: ; 0x72a6a
	faceplayer
	loadfont
	checkflag $0026
	iftrue UnknownScript_0x72a9b
	2writetext UnknownText_0x72b28
	closetext
	loadmovesprites
	winlosstext UnknownText_0x72c3e, $0000
	loadtrainer ERIKA, 1
	startbattle
	returnafterbattle
	setevent $04c8
	setevent EVENT_BEAT_LASS_MICHELLE
	setevent EVENT_BEAT_PICNICKER_TANYA
	setevent EVENT_BEAT_BEAUTY_JULIA
	setevent EVENT_BEAT_TWINS_JO_AND_ZOE
	loadfont
	2writetext UnknownText_0x72c96
	playsound $009c
	waitbutton
	setflag $0026
UnknownScript_0x72a9b: ; 0x72a9b
	checkevent EVENT_GOT_TM19_GIGA_DRAIN
	iftrue UnknownScript_0x72aae
	2writetext UnknownText_0x72cb0
	keeptextopen
	verbosegiveitem TM_19, 1
	iffalse UnknownScript_0x72aae
	setevent EVENT_GOT_TM19_GIGA_DRAIN
UnknownScript_0x72aae: ; 0x72aae
	2writetext UnknownText_0x72d8f
	closetext
	loadmovesprites
	end
; 0x72ab4

TrainerLassMichelle: ; 0x72ab4
	; bit/flag number
	dw $51d

	; trainer group && trainer id
	db LASS, MICHELLE

	; text when seen
	dw LassMichelleSeenText

	; text when trainer beaten
	dw LassMichelleBeatenText

	; script when lost
	dw $0000

	; script when talk again
	dw LassMichelleScript
; 0x72ac0

LassMichelleScript: ; 0x72ac0
	talkaftercancel
	loadfont
	2writetext UnknownText_0x72e30
	closetext
	loadmovesprites
	end
; 0x72ac8

TrainerPicnickerTanya: ; 0x72ac8
	; bit/flag number
	dw $490

	; trainer group && trainer id
	db PICNICKER, TANYA

	; text when seen
	dw PicnickerTanyaSeenText

	; text when trainer beaten
	dw PicnickerTanyaBeatenText

	; script when lost
	dw $0000

	; script when talk again
	dw PicnickerTanyaScript
; 0x72ad4

PicnickerTanyaScript: ; 0x72ad4
	talkaftercancel
	loadfont
	2writetext UnknownText_0x72e8e
	closetext
	loadmovesprites
	end
; 0x72adc

TrainerBeautyJulia: ; 0x72adc
	; bit/flag number
	dw $4ba

	; trainer group && trainer id
	db BEAUTY, JULIA

	; text when seen
	dw BeautyJuliaSeenText

	; text when trainer beaten
	dw BeautyJuliaBeatenText

	; script when lost
	dw $0000

	; script when talk again
	dw BeautyJuliaScript
; 0x72ae8

BeautyJuliaScript: ; 0x72ae8
	talkaftercancel
	loadfont
	2writetext UnknownText_0x72f01
	closetext
	loadmovesprites
	end
; 0x72af0

TrainerTwinsJoandzoe1: ; 0x72af0
	; bit/flag number
	dw $468

	; trainer group && trainer id
	db TWINS, JOANDZOE1

	; text when seen
	dw TwinsJoandzoe1SeenText

	; text when trainer beaten
	dw TwinsJoandzoe1BeatenText

	; script when lost
	dw $0000

	; script when talk again
	dw TwinsJoandzoe1Script
; 0x72afc

TwinsJoandzoe1Script: ; 0x72afc
	talkaftercancel
	loadfont
	2writetext UnknownText_0x72f70
	closetext
	loadmovesprites
	end
; 0x72b04

TrainerTwinsJoandzoe2: ; 0x72b04
	; bit/flag number
	dw $468

	; trainer group && trainer id
	db TWINS, JOANDZOE2

	; text when seen
	dw TwinsJoandzoe2SeenText

	; text when trainer beaten
	dw TwinsJoandzoe2BeatenText

	; script when lost
	dw $0000

	; script when talk again
	dw TwinsJoandzoe2Script
; 0x72b10

TwinsJoandzoe2Script: ; 0x72b10
	talkaftercancel
	loadfont
	2writetext UnknownText_0x72fc0
	closetext
	loadmovesprites
	end
; 0x72b18

MapCeladonGymSignpost1Script: ; 0x72b18
	checkflag $0026
	iftrue UnknownScript_0x72b21
	jumpstd $002d
; 0x72b21

UnknownScript_0x72b21: ; 0x72b21
	trainertotext ERIKA, 1, $1
	jumpstd $002e
; 0x72b28

UnknownText_0x72b28: ; 0x72b28
	text "ERIKA: Hello…"
	line "Lovely weather,"

	para "isn't it?"
	line "It's so pleasant…"

	para "…I'm afraid I may"
	line "doze off…"

	para "My name is ERIKA."
	line "I am the LEADER of"
	cont "CELADON GYM."

	para "…Oh? All the way"
	line "from JOHTO, you"
	cont "say? How nice…"

	para "Oh. I'm sorry, I"
	line "didn't realize"

	para "that you wished to"
	line "challenge me."

	para "Very well, but I"
	line "shall not lose."
	done
; 0x72c3e

UnknownText_0x72c3e: ; 0x72c3e
	text "ERIKA: Oh!"
	line "I concede defeat…"

	para "You are remarkably"
	line "strong…"

	para "I shall give you"
	line "RAINBOWBADGE…"
	done
; 0x72c96

UnknownText_0x72c96: ; 0x72c96
	text $52, " received"
	line "RAINBOWBADGE."
	done
; 0x72cb0

UnknownText_0x72cb0: ; 0x72cb0
	text "ERIKA: That was a"
	line "delightful match."

	para "I felt inspired."
	line "Please, I wish you"
	cont "to have this TM."

	para "It is GIGA DRAIN."

	para "It is a wonderful"
	line "move that drains"

	para "half the damage it"
	line "inflicts to heal"
	cont "your #MON."

	para "Please use it if"
	line "it pleases you…"
	done
; 0x72d8f

UnknownText_0x72d8f: ; 0x72d8f
	text "ERIKA: Losing"
	line "leaves a bitter"
	cont "aftertaste…"

	para "But knowing that"
	line "there are strong"

	para "trainers spurs me"
	line "to do better…"
	done
; 0x72dfc

LassMichelleSeenText: ; 0x72dfc
	text "Do you think a"
	line "girls-only GYM"
	cont "is rare?"
	done
; 0x72e24

LassMichelleBeatenText: ; 0x72e24
	text "Oh, bleah!"
	done
; 0x72e30

UnknownText_0x72e30: ; 0x72e30
	text "I just got care-"
	line "less, that's all!"
	done
; 0x72e53

PicnickerTanyaSeenText: ; 0x72e53
	text "Oh, a battle?"
	line "That's kind of"
	cont "scary, but OK!"
	done
; 0x72e7f

PicnickerTanyaBeatenText: ; 0x72e7f
	text "Oh, that's it?"
	done
; 0x72e8e

UnknownText_0x72e8e: ; 0x72e8e
	text "Oh, look at all"
	line "your BADGES. No"

	para "wonder I couldn't"
	line "win!"
	done
; 0x72ec5

BeautyJuliaSeenText: ; 0x72ec5
	text "Were you looking"
	line "at these flowers"
	cont "or at me?"
	done
; 0x72ef2

BeautyJuliaBeatenText: ; 0x72ef2
	text "How annoying!"
	done
; 0x72f01

UnknownText_0x72f01: ; 0x72f01
	text "How do I go about"
	line "becoming ladylike"
	cont "like ERIKA?"
	done
; 0x72f32

TwinsJoandzoe1SeenText: ; 0x72f32
	text "We'll show you"
	line "#MON moves that"
	cont "ERIKA taught us!"
	done
; 0x72f62

TwinsJoandzoe1BeatenText: ; 0x72f62
	text "Oh… We lost…"
	done
; 0x72f70

UnknownText_0x72f70: ; 0x72f70
	text "ERIKA will get you"
	line "back for us!"
	done
; 0x72f91

TwinsJoandzoe2SeenText: ; 0x72f91
	text "We're going to"
	line "protect ERIKA!"
	done
; 0x72faf

TwinsJoandzoe2BeatenText: ; 0x72faf
	text "We couldn't win…"
	done
; 0x72fc0

UnknownText_0x72fc0: ; 0x72fc0
	text "ERIKA is much,"
	line "much stronger!"
	done
; 0x72fdf

CeladonGym_MapEventHeader: ; 0x72fdf
	; filler
	db 0, 0

	; warps
	db 2
	warp_def $11, $4, 8, GROUP_CELADON_CITY, MAP_CELADON_CITY
	warp_def $11, $5, 8, GROUP_CELADON_CITY, MAP_CELADON_CITY

	; xy triggers
	db 0

	; signposts
	db 2
	signpost 15, 3, $0, MapCeladonGymSignpost1Script
	signpost 15, 6, $0, MapCeladonGymSignpost1Script

	; people-events
	db 6
	person_event SPRITE_ERIKA, 7, 9, $6, $0, 255, 255, $a0, 0, ErikaScript_0x72a6a, $ffff
	person_event SPRITE_LASS, 12, 11, $8, $0, 255, 255, $92, 2, TrainerLassMichelle, $ffff
	person_event SPRITE_LASS, 12, 6, $9, $0, 255, 255, $a2, 2, TrainerPicnickerTanya, $ffff
	person_event SPRITE_BUENA, 9, 7, $9, $0, 255, 255, $92, 2, TrainerBeautyJulia, $ffff
	person_event SPRITE_TWIN, 14, 8, $6, $0, 255, 255, $82, 1, TrainerTwinsJoandzoe1, $ffff
	person_event SPRITE_TWIN, 14, 9, $6, $0, 255, 255, $82, 1, TrainerTwinsJoandzoe2, $ffff
; 0x73047