summaryrefslogtreecommitdiff
path: root/maps/AzaleaGym.asm
blob: 6d5db0b19312bb8fcd7f2175c18b6c9b5679655a (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
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
AzaleaGym_MapScriptHeader: ; 0x18ec1c
	; trigger count
	db 0

	; callback count
	db 0
; 0x18ec1e

BugsyScript_0x18ec1e: ; 0x18ec1e
	faceplayer
	loadfont
	checkevent EVENT_BEAT_BUGSY
	iftrue UnknownScript_0x18ec48
	2writetext UnknownText_0x18ed0b
	closetext
	loadmovesprites
	winlosstext UnknownText_0x18edae, $0000
	loadtrainer BUGSY, 1
	startbattle
	returnafterbattle
	setevent EVENT_BEAT_BUGSY
	loadfont
	2writetext UnknownText_0x18ee14
	playsound $009c
	waitbutton
	setflag $001c
	checkcode $7
	2call UnknownScript_0x18ec73
UnknownScript_0x18ec48: ; 0x18ec48
	checkevent EVENT_GOT_TM49_FURY_CUTTER
	iftrue UnknownScript_0x18ec6d
	setevent EVENT_BEAT_TWINS_AMY_AND_MAY
	setevent EVENT_BEAT_BUG_CATCHER_BENNY
	setevent EVENT_BEAT_BUG_CATCHER_AL
	setevent EVENT_BEAT_BUG_CATCHER_JOSH
	2writetext UnknownText_0x18ee2b
	keeptextopen
	verbosegiveitem TM_49, 1
	iffalse UnknownScript_0x18ec71
	setevent EVENT_GOT_TM49_FURY_CUTTER
	2writetext UnknownText_0x18eefa
	closetext
	loadmovesprites
	end
; 0x18ec6d

UnknownScript_0x18ec6d: ; 0x18ec6d
	2writetext UnknownText_0x18ef98
	closetext
UnknownScript_0x18ec71: ; 0x18ec71
	loadmovesprites
	end
; 0x18ec73

UnknownScript_0x18ec73: ; 0x18ec73
	if_equal $7, UnknownScript_0x18ec7f
	if_equal $6, UnknownScript_0x18ec7c
	end
; 0x18ec7c

UnknownScript_0x18ec7c: ; 0x18ec7c
	jumpstd $0012
; 0x18ec7f

UnknownScript_0x18ec7f: ; 0x18ec7f
	jumpstd $0013
; 0x18ec82

TrainerTwinsAmyandmay1: ; 0x18ec82
	; bit/flag number
	dw $464

	; trainer group && trainer id
	db TWINS, AMYANDMAY1

	; text when seen
	dw TwinsAmyandmay1SeenText

	; text when trainer beaten
	dw TwinsAmyandmay1BeatenText

	; script when lost
	dw $0000

	; script when talk again
	dw TwinsAmyandmay1Script
; 0x18ec8e

TwinsAmyandmay1Script: ; 0x18ec8e
	talkaftercancel
	loadfont
	2writetext UnknownText_0x18f1fc
	closetext
	loadmovesprites
	end
; 0x18ec96

TrainerTwinsAmyandmay2: ; 0x18ec96
	; bit/flag number
	dw $464

	; trainer group && trainer id
	db TWINS, AMYANDMAY2

	; text when seen
	dw TwinsAmyandmay2SeenText

	; text when trainer beaten
	dw TwinsAmyandmay2BeatenText

	; script when lost
	dw $0000

	; script when talk again
	dw TwinsAmyandmay2Script
; 0x18eca2

TwinsAmyandmay2Script: ; 0x18eca2
	talkaftercancel
	loadfont
	2writetext UnknownText_0x18f269
	closetext
	loadmovesprites
	end
; 0x18ecaa

TrainerBug_catcherBug_catcher_benny: ; 0x18ecaa
	; bit/flag number
	dw $53c

	; trainer group && trainer id
	db BUG_CATCHER, BUG_CATCHER_BENNY

	; text when seen
	dw Bug_catcherBug_catcher_bennySeenText

	; text when trainer beaten
	dw Bug_catcherBug_catcher_bennyBeatenText

	; script when lost
	dw $0000

	; script when talk again
	dw Bug_catcherBug_catcher_bennyScript
; 0x18ecb6

Bug_catcherBug_catcher_bennyScript: ; 0x18ecb6
	talkaftercancel
	loadfont
	2writetext UnknownText_0x18f053
	closetext
	loadmovesprites
	end
; 0x18ecbe

TrainerBug_catcherAl: ; 0x18ecbe
	; bit/flag number
	dw $53d

	; trainer group && trainer id
	db BUG_CATCHER, AL

	; text when seen
	dw Bug_catcherAlSeenText

	; text when trainer beaten
	dw Bug_catcherAlBeatenText

	; script when lost
	dw $0000

	; script when talk again
	dw Bug_catcherAlScript
; 0x18ecca

Bug_catcherAlScript: ; 0x18ecca
	talkaftercancel
	loadfont
	2writetext UnknownText_0x18f0d3
	closetext
	loadmovesprites
	end
; 0x18ecd2

TrainerBug_catcherJosh: ; 0x18ecd2
	; bit/flag number
	dw $53e

	; trainer group && trainer id
	db BUG_CATCHER, JOSH

	; text when seen
	dw Bug_catcherJoshSeenText

	; text when trainer beaten
	dw Bug_catcherJoshBeatenText

	; script when lost
	dw $0000

	; script when talk again
	dw Bug_catcherJoshScript
; 0x18ecde

Bug_catcherJoshScript: ; 0x18ecde
	talkaftercancel
	loadfont
	2writetext UnknownText_0x18f17e
	closetext
	loadmovesprites
	end
; 0x18ece6

AzaleaGymGuyScript: ; 0x18ece6
	faceplayer
	checkevent EVENT_BEAT_BUGSY
	iftrue .AzaleaGymGuyWinScript
	loadfont
	2writetext AzaleaGymGuyText
	closetext
	loadmovesprites
	end

.AzaleaGymGuyWinScript
	loadfont
	2writetext AzaleaGymGuyWinText
	closetext
	loadmovesprites
	end
; 0x18ecfb

MapAzaleaGymSignpost1Script: ; 0x18ecfb
	checkflag $001c
	iftrue UnknownScript_0x18ed04
	jumpstd $002d
; 0x18ed04

UnknownScript_0x18ed04: ; 0x18ed04
	trainertotext BUGSY, 1, $1
	jumpstd $002e
; 0x18ed0b

UnknownText_0x18ed0b: ; 0x18ed0b
	text "I'm BUGSY!"
	line "I never lose when"

	para "it comes to bug"
	line "#MON."

	para "My research is"
	line "going to make me"

	para "the authority on"
	line "bug #MON!"

	para "Let me demonstrate"
	line "what I've learned"
	cont "from my studies."
	done
; 0x18edae

UnknownText_0x18edae: ; 0x18edae
	text "Whoa, amazing!"
	line "You're an expert"
	cont "on #MON!"

	para "My research isn't"
	line "complete yet."

	para "OK, you win. Take"
	line "this BADGE."
	done
; 0x18ee14

UnknownText_0x18ee14: ; 0x18ee14
	text $52, " received"
	line "HIVEBADGE."
	done
; 0x18ee2b

UnknownText_0x18ee2b: ; 0x18ee2b
	text "Do you know the"
	line "benefits of HIVE-"
	cont "BADGE?"

	para "If you have it,"
	line "#MON up to L30"

	para "will obey you,"
	line "even traded ones."

	para "#MON that know"
	line "CUT will be able"

	para "to use it outside"
	line "of battle too."

	para "Here, I also want"
	line "you to have this."
	done
; 0x18eefa

UnknownText_0x18eefa: ; 0x18eefa
	text "TM49 contains"
	line "FURY CUTTER."

	para "If you don't miss,"
	line "it gets stronger"
	cont "every turn."

	para "The longer your"
	line "battle goes, the"
	cont "better it gets."

	para "Isn't that great?"
	line "I discovered it!"
	done
; 0x18ef98

UnknownText_0x18ef98: ; 0x18ef98
	text "Bug #MON are"
	line "deep. There are"

	para "many mysteries to"
	line "be explored."

	para "Study your favor-"
	line "ites thoroughly."
	done
; 0x18eff8

Bug_catcherBug_catcher_bennySeenText: ; 0x18eff8
	text "Bug #MON evolve"
	line "young. So they get"

	para "stronger that much"
	line "faster."
	done
; 0x18f037

Bug_catcherBug_catcher_bennyBeatenText: ; 0x18f037
	text "Just evolving"
	line "isn't enough!"
	done
; 0x18f053

UnknownText_0x18f053: ; 0x18f053
	text "#MON become"
	line "stronger if they"
	cont "evolve. Really!"
	done
; 0x18f081

Bug_catcherAlSeenText: ; 0x18f081
	text "Bug #MON are"
	line "cool and tough!"

	para "I'll prove it to"
	line "you!"
	done
; 0x18f0b4

Bug_catcherAlBeatenText: ; 0x18f0b4
	text "You proved how"
	line "tough you are…"
	done
; 0x18f0d3

UnknownText_0x18f0d3: ; 0x18f0d3
	text "They're so cool,"
	line "but most girls"

	para "don't like bug"
	line "#MON."

	para "I don't know why…"
	done
; 0x18f118

Bug_catcherJoshSeenText: ; 0x18f118
	text "You saved all the"
	line "SLOWPOKE? Whew,"
	cont "you're mighty!"

	para "But my grown-up"
	line "#MON are pretty"
	cont "tough too!"
	done
; 0x18f174

Bug_catcherJoshBeatenText: ; 0x18f174
	text "Urrgggh!"
	done
; 0x18f17e

UnknownText_0x18f17e: ; 0x18f17e
	text "I guess I should"
	line "teach them better"
	cont "moves…"
	done
; 0x18f1a9

TwinsAmyandmay1SeenText: ; 0x18f1a9
	text "AMY: Hi! Are you"
	line "challenging the"
	cont "LEADER? No way!"
	done
; 0x18f1db

TwinsAmyandmay1BeatenText: ; 0x18f1db
	text "AMY & MAY: Oh,"
	line "double goodness!"
	done
; 0x18f1fc

UnknownText_0x18f1fc: ; 0x18f1fc
	text "AMY: You're"
	line "really strong!"
	done
; 0x18f217

TwinsAmyandmay2SeenText: ; 0x18f217
	text "MAY: You want to"
	line "see the LEADER?"
	cont "We come first!"
	done
; 0x18f248

TwinsAmyandmay2BeatenText: ; 0x18f248
	text "AMY & MAY: Oh,"
	line "double goodness!"
	done
; 0x18f269

UnknownText_0x18f269: ; 0x18f269
	text "MAY: Our bug #-"
	line "MON lost! Oh, what"
	cont "a shame."
	done
; 0x18f296

AzaleaGymGuyText: ; 0x18f296
	text "Yo, challenger!"

	para "BUGSY's young, but"
	line "his knowledge of"

	para "bug #MON is for"
	line "real."

	para "It's going to be"
	line "tough without my"
	cont "advice."

	para "Let's see… Bug"
	line "#MON don't like"
	cont "fire."

	para "Flying-type moves"
	line "are super-effec-"
	cont "tive too."
	done
; 0x18f359

AzaleaGymGuyWinText: ; 0x18f359
	text "Well done! That"
	line "was a great clash"

	para "of talented young"
	line "trainers."

	para "With people like"
	line "you, the future of"
	cont "#MON is bright!"
	done
; 0x18f3cc

AzaleaGym_MapEventHeader: ; 0x18f3cc
	; filler
	db 0, 0

	; warps
	db 2
	warp_def $f, $4, 5, GROUP_AZALEA_TOWN, MAP_AZALEA_TOWN
	warp_def $f, $5, 5, GROUP_AZALEA_TOWN, MAP_AZALEA_TOWN

	; xy triggers
	db 0

	; signposts
	db 2
	signpost 13, 3, $0, MapAzaleaGymSignpost1Script
	signpost 13, 6, $0, MapAzaleaGymSignpost1Script

	; people-events
	db 7
	person_event SPRITE_BUGSY, 11, 9, $3, $0, 255, 255, $a0, 0, BugsyScript_0x18ec1e, $ffff
	person_event SPRITE_BUG_CATCHER, 7, 9, $a, $0, 255, 255, $b2, 2, TrainerBug_catcherBug_catcher_benny, $ffff
	person_event SPRITE_BUG_CATCHER, 12, 12, $6, $0, 255, 255, $b2, 3, TrainerBug_catcherAl, $ffff
	person_event SPRITE_BUG_CATCHER, 6, 4, $6, $0, 255, 255, $b2, 3, TrainerBug_catcherJosh, $ffff
	person_event SPRITE_TWIN, 14, 8, $6, $0, 255, 255, $82, 1, TrainerTwinsAmyandmay1, $ffff
	person_event SPRITE_TWIN, 14, 9, $6, $0, 255, 255, $82, 1, TrainerTwinsAmyandmay2, $ffff
	person_event SPRITE_GYM_GUY, 17, 11, $6, $0, 255, 255, $80, 0, AzaleaGymGuyScript, $ffff
; 0x18f441