summaryrefslogtreecommitdiff
path: root/data/scripts/maps/DewfordTown_Gym.inc
blob: 6acd6779260f5e9d8a625de7ae68d85be394460c (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
DewfordTown_Gym_MapScripts:: @ 81FC63C
	map_script 3, DewfordTown_Gym_MapScript1_1FC642
	.byte 0

DewfordTown_Gym_MapScript1_1FC642: @ 81FC642
	call DewfordTown_Gym_EventScript_1FC648
	end

DewfordTown_Gym_EventScript_1FC648:: @ 81FC648
	checktrainerflag TRAINER_BRAWLY_1
	goto_eq DewfordTown_Gym_EventScript_1FC6A2
	call DewfordTown_Gym_EventScript_1FC768
	copyvar VAR_0x8001, VAR_0x8000
	compare VAR_0x8000, 0
	goto_eq DewfordTown_Gym_EventScript_1FC6BE
	compare VAR_0x8000, 1
	goto_eq DewfordTown_Gym_EventScript_1FC6BA
	compare VAR_0x8000, 2
	goto_eq DewfordTown_Gym_EventScript_1FC6B6
	compare VAR_0x8000, 3
	goto_eq DewfordTown_Gym_EventScript_1FC6B2
	compare VAR_0x8000, 4
	goto_eq DewfordTown_Gym_EventScript_1FC6AE
	compare VAR_0x8000, 5
	goto_eq DewfordTown_Gym_EventScript_1FC6AA
	goto DewfordTown_Gym_EventScript_1FC6A6

DewfordTown_Gym_EventScript_1FC6A2:: @ 81FC6A2
	setflashradius 0
	return

DewfordTown_Gym_EventScript_1FC6A6:: @ 81FC6A6
	setflashradius 1
	return

DewfordTown_Gym_EventScript_1FC6AA:: @ 81FC6AA
	setflashradius 2
	return

DewfordTown_Gym_EventScript_1FC6AE:: @ 81FC6AE
	setflashradius 3
	return

DewfordTown_Gym_EventScript_1FC6B2:: @ 81FC6B2
	setflashradius 4
	return

DewfordTown_Gym_EventScript_1FC6B6:: @ 81FC6B6
	setflashradius 5
	return

DewfordTown_Gym_EventScript_1FC6BA:: @ 81FC6BA
	setflashradius 6
	return

DewfordTown_Gym_EventScript_1FC6BE:: @ 81FC6BE
	setflashradius 7
	return

DewfordTown_Gym_EventScript_1FC6C2:: @ 81FC6C2
	call DewfordTown_Gym_EventScript_1FC768
	nop1
	compare VAR_0x8000, VAR_0x8001
	goto_eq DewfordTown_Gym_EventScript_1FC71A
	copyvar VAR_0x8001, VAR_0x8000
	compare VAR_0x8000, 1
	goto_eq DewfordTown_Gym_EventScript_1FC71B
	compare VAR_0x8000, 2
	goto_eq DewfordTown_Gym_EventScript_1FC726
	compare VAR_0x8000, 3
	goto_eq DewfordTown_Gym_EventScript_1FC731
	compare VAR_0x8000, 4
	goto_eq DewfordTown_Gym_EventScript_1FC73C
	compare VAR_0x8000, 5
	goto_eq DewfordTown_Gym_EventScript_1FC747
	compare VAR_0x8000, 6
	goto_eq DewfordTown_Gym_EventScript_1FC752

DewfordTown_Gym_EventScript_1FC71A:: @ 81FC71A
	return

DewfordTown_Gym_EventScript_1FC71B:: @ 81FC71B
	playse SE_MU_PACHI
	animateflash 6
	call DewfordTown_Gym_EventScript_1FC648
	return

DewfordTown_Gym_EventScript_1FC726:: @ 81FC726
	playse SE_MU_PACHI
	animateflash 5
	call DewfordTown_Gym_EventScript_1FC648
	return

DewfordTown_Gym_EventScript_1FC731:: @ 81FC731
	playse SE_MU_PACHI
	animateflash 4
	call DewfordTown_Gym_EventScript_1FC648
	return

DewfordTown_Gym_EventScript_1FC73C:: @ 81FC73C
	playse SE_MU_PACHI
	animateflash 3
	call DewfordTown_Gym_EventScript_1FC648
	return

DewfordTown_Gym_EventScript_1FC747:: @ 81FC747
	playse SE_MU_PACHI
	animateflash 2
	call DewfordTown_Gym_EventScript_1FC648
	return

DewfordTown_Gym_EventScript_1FC752:: @ 81FC752
	playse SE_MU_PACHI
	animateflash 1
	call DewfordTown_Gym_EventScript_1FC648
	return

DewfordTown_Gym_EventScript_1FC75D:: @ 81FC75D
	playse SE_MU_PACHI
	animateflash 0
	call DewfordTown_Gym_EventScript_1FC648
	return

DewfordTown_Gym_EventScript_1FC768:: @ 81FC768
	setvar VAR_0x8000, 0
	checktrainerflag TRAINER_TAKAO
	goto_if 0, DewfordTown_Gym_EventScript_1FC77B
	addvar VAR_0x8000, 1

DewfordTown_Gym_EventScript_1FC77B:: @ 81FC77B
	checktrainerflag TRAINER_JOCELYN
	goto_if 0, DewfordTown_Gym_EventScript_1FC789
	addvar VAR_0x8000, 1

DewfordTown_Gym_EventScript_1FC789:: @ 81FC789
	checktrainerflag TRAINER_LAURA
	goto_if 0, DewfordTown_Gym_EventScript_1FC797
	addvar VAR_0x8000, 1

DewfordTown_Gym_EventScript_1FC797:: @ 81FC797
	checktrainerflag TRAINER_BRENDEN
	goto_if 0, DewfordTown_Gym_EventScript_1FC7A5
	addvar VAR_0x8000, 1

DewfordTown_Gym_EventScript_1FC7A5:: @ 81FC7A5
	checktrainerflag TRAINER_CRISTIAN
	goto_if 0, DewfordTown_Gym_EventScript_1FC7B3
	addvar VAR_0x8000, 1

DewfordTown_Gym_EventScript_1FC7B3:: @ 81FC7B3
	checktrainerflag TRAINER_LILITH
	goto_if 0, DewfordTown_Gym_EventScript_1FC7C1
	addvar VAR_0x8000, 1

DewfordTown_Gym_EventScript_1FC7C1:: @ 81FC7C1
	return

DewfordTown_Gym_EventScript_1FC7C2:: @ 81FC7C2
	trainerbattle 1, TRAINER_BRAWLY_1, 0, DewfordTown_Gym_Text_1FCF44, DewfordTown_Gym_Text_1FD008, DewfordTown_Gym_EventScript_1FC7F7
	specialvar VAR_RESULT, ShouldTryRematchBattle
	compare VAR_RESULT, 1
	goto_eq DewfordTown_Gym_EventScript_1FC89C
	checkflag FLAG_0x0A6
	goto_if 0, DewfordTown_Gym_EventScript_1FC878
	msgbox DewfordTown_Gym_Text_1FD20D, 4
	release
	end

DewfordTown_Gym_EventScript_1FC7F7:: @ 81FC7F7
	call DewfordTown_Gym_EventScript_1FC75D
	message DewfordTown_Gym_Text_1FD07D
	waitmessage
	call DewfordTown_Gym_EventScript_27207E
	msgbox DewfordTown_Gym_Text_1FD0A8, 4
	setflag FLAG_0x4F1
	setflag FLAG_BADGE02_GET
	addvar VAR_0x4085, 1
	compare VAR_0x4085, 6
	call_if 1, DewfordTown_Gym_EventScript_271E84
	setvar VAR_0x8008, 2
	call DewfordTown_Gym_EventScript_271F43
	call DewfordTown_Gym_EventScript_1FC855
	closemessage
	delay 30
	playfanfare MUS_ME_TORE_EYE
	msgbox DewfordTown_Gym_Text_1FD1E0, 4
	waitfanfare
	closemessage
	delay 30
	setflag FLAG_0x1D4
	setvar VAR_0x40F4, 0
	setflag FLAG_0x080
	release
	end

DewfordTown_Gym_EventScript_1FC855:: @ 81FC855
	giveitem_std ITEM_TM08
	compare VAR_RESULT, 0
	goto_eq DewfordTown_Gym_EventScript_27205E
	msgbox DewfordTown_Gym_Text_1FD181, 4
	setflag FLAG_0x0A6
	return

DewfordTown_Gym_EventScript_1FC878:: @ 81FC878
	giveitem_std ITEM_TM08
	compare VAR_RESULT, 0
	goto_eq DewfordTown_Gym_EventScript_272054
	msgbox DewfordTown_Gym_Text_1FD181, 4
	setflag FLAG_0x0A6
	release
	end

DewfordTown_Gym_EventScript_1FC89C:: @ 81FC89C
	trainerbattle 7, TRAINER_BRAWLY_1, 0, DewfordTown_Gym_Text_1FD2C4, DewfordTown_Gym_Text_1FD367, DewfordTown_Gym_Text_1FD3DE
	msgbox DewfordTown_Gym_Text_1FD37B, 6
	end

DewfordTown_Gym_EventScript_1FC8B7:: @ 81FC8B7
	trainerbattle 2, TRAINER_TAKAO, 0, DewfordTown_Gym_Text_1FCB9F, DewfordTown_Gym_Text_1FCBB8, DewfordTown_Gym_EventScript_1FC8D2
	msgbox DewfordTown_Gym_Text_1FCBCA, 6
	end

DewfordTown_Gym_EventScript_1FC8D2:: @ 81FC8D2
	call DewfordTown_Gym_EventScript_1FC6C2
	release
	end

DewfordTown_Gym_EventScript_1FC8D9:: @ 81FC8D9
	trainerbattle 2, TRAINER_JOCELYN, 0, DewfordTown_Gym_Text_1FCC0A, DewfordTown_Gym_Text_1FCC45, DewfordTown_Gym_EventScript_1FC8F4
	msgbox DewfordTown_Gym_Text_1FCC6B, 6
	end

DewfordTown_Gym_EventScript_1FC8F4:: @ 81FC8F4
	call DewfordTown_Gym_EventScript_1FC6C2
	release
	end

DewfordTown_Gym_EventScript_1FC8FB:: @ 81FC8FB
	trainerbattle 2, TRAINER_LAURA, 0, DewfordTown_Gym_Text_1FCD01, DewfordTown_Gym_Text_1FCD3C, DewfordTown_Gym_EventScript_1FC916
	msgbox DewfordTown_Gym_Text_1FCD4F, 6
	end

DewfordTown_Gym_EventScript_1FC916:: @ 81FC916
	call DewfordTown_Gym_EventScript_1FC6C2
	release
	end

DewfordTown_Gym_EventScript_1FC91D:: @ 81FC91D
	trainerbattle 2, TRAINER_BRENDEN, 0, DewfordTown_Gym_Text_1FCE48, DewfordTown_Gym_Text_1FCE75, DewfordTown_Gym_EventScript_1FC938
	msgbox DewfordTown_Gym_Text_1FCEAB, 6
	end

DewfordTown_Gym_EventScript_1FC938:: @ 81FC938
	call DewfordTown_Gym_EventScript_1FC6C2
	release
	end

DewfordTown_Gym_EventScript_1FC93F:: @ 81FC93F
	trainerbattle 2, TRAINER_CRISTIAN, 0, DewfordTown_Gym_Text_1FCEDC, DewfordTown_Gym_Text_1FCF0A, DewfordTown_Gym_EventScript_1FC95A
	msgbox DewfordTown_Gym_Text_1FCF26, 6
	end

DewfordTown_Gym_EventScript_1FC95A:: @ 81FC95A
	call DewfordTown_Gym_EventScript_1FC6C2
	release
	end

DewfordTown_Gym_EventScript_1FC961:: @ 81FC961
	trainerbattle 2, TRAINER_LILITH, 0, DewfordTown_Gym_Text_1FCDB8, DewfordTown_Gym_Text_1FCDE5, DewfordTown_Gym_EventScript_1FC97C
	msgbox DewfordTown_Gym_Text_1FCE08, 6
	end

DewfordTown_Gym_EventScript_1FC97C:: @ 81FC97C
	call DewfordTown_Gym_EventScript_1FC6C2
	release
	end

DewfordTown_Gym_EventScript_1FC983:: @ 81FC983
	lock
	faceplayer
	checkflag FLAG_0x4F1
	goto_eq DewfordTown_Gym_EventScript_1FC998
	msgbox DewfordTown_Gym_Text_1FC9D6, 4
	release
	end

DewfordTown_Gym_EventScript_1FC998:: @ 81FC998
	msgbox DewfordTown_Gym_Text_1FCB5C, 4
	release
	end

DewfordTown_Gym_EventScript_1FC9A2:: @ 81FC9A2
	lockall
	checkflag FLAG_BADGE02_GET
	goto_eq DewfordTown_Gym_EventScript_1FC9C2
	goto DewfordTown_Gym_EventScript_1FC9CC
	end

DewfordTown_Gym_EventScript_1FC9B2:: @ 81FC9B2
	lockall
	checkflag FLAG_BADGE02_GET
	goto_eq DewfordTown_Gym_EventScript_1FC9C2
	goto DewfordTown_Gym_EventScript_1FC9CC
	end

DewfordTown_Gym_EventScript_1FC9C2:: @ 81FC9C2
	msgbox DewfordTown_Gym_Text_1FD28B, 4
	releaseall
	end

DewfordTown_Gym_EventScript_1FC9CC:: @ 81FC9CC
	msgbox DewfordTown_Gym_Text_1FD272, 4
	releaseall
	end

DewfordTown_Gym_Text_1FC9D6: @ 81FC9D6
	.string "Hey, how’s it going, CHAMPION-\n"
	.string "bound {PLAYER}?\p"
	.string "DEWFORD’s GYM LEADER BRAWLY commands\n"
	.string "FIGHTING-type POKéMON.\p"
	.string "Going against him with NORMAL-type\n"
	.string "POKéMON is asking for trouble.\p"
	.string "FIGHTING POKéMON will lay a serious\n"
	.string "smack down on NORMAL POKéMON,\l"
	.string "so be careful!\p"
	.string "What’s worse, the GYM is as dark as\n"
	.string "the ocean floor.\p"
	.string "But it will get brighter after defeating\n"
	.string "the TRAINERS in your way.\p"
	.string "Hey, okay, go for it!$"

DewfordTown_Gym_Text_1FCB5C: @ 81FCB5C
	.string "Whoah! It’s turned too bright in here!\p"
	.string "Your future is bright, too!$"

DewfordTown_Gym_Text_1FCB9F: @ 81FCB9F
	.string "Might is right!\n"
	.string "Come on!$"

DewfordTown_Gym_Text_1FCBB8: @ 81FCBB8
	.string "Not enough power…$"

DewfordTown_Gym_Text_1FCBCA: @ 81FCBCA
	.string "Your skill overcame my strength!\n"
	.string "Your technique is commendable!$"

DewfordTown_Gym_Text_1FCC0A: @ 81FCC0A
	.string "There’s no need for BRAWLY to be\n"
	.string "involved!\p"
	.string "I’ll crush you!$"

DewfordTown_Gym_Text_1FCC45: @ 81FCC45
	.string "But… How?\n"
	.string "How could I lose so easily?$"

DewfordTown_Gym_Text_1FCC6B: @ 81FCC6B
	.string "I’m not going to waste this loss.\n"
	.string "I’ll use it to motivate me to train!\p"
	.string "One day I’ll become a GYM LEADER…\p"
	.string "No, I’ll become the POKéMON LEAGUE\n"
	.string "CHAMPION!$"

DewfordTown_Gym_Text_1FCD01: @ 81FCD01
	.string "Don’t you dare brush me off!\n"
	.string "It’s not my fault if you cry!$"

DewfordTown_Gym_Text_1FCD3C: @ 81FCD3C
	.string "Waaaaaaah!\n"
	.string "I lost!$"

DewfordTown_Gym_Text_1FCD4F: @ 81FCD4F
	.string "I battle in the dark to make my heart\n"
	.string "stronger.\p"
	.string "But because it’s so dark, I can never\n"
	.string "see BRAWLY’s face…$"

DewfordTown_Gym_Text_1FCDB8: @ 81FCDB8
	.string "Ufufu…\n"
	.string "Are you stumbling around in the dark?$"

DewfordTown_Gym_Text_1FCDE5: @ 81FCDE5
	.string "Oh, you…\n"
	.string "I don’t want to know you!$"

DewfordTown_Gym_Text_1FCE08: @ 81FCE08
	.string "You deserve to stay lost and end up\n"
	.string "back at the entrance again!$"

DewfordTown_Gym_Text_1FCE48: @ 81FCE48
	.string "I’ll show you the gumption of\n"
	.string "a sailing man!$"

DewfordTown_Gym_Text_1FCE75: @ 81FCE75
	.string "How’d this happen?\n"
	.string "It’s not like me to lose this way!$"

DewfordTown_Gym_Text_1FCEAB: @ 81FCEAB
	.string "Oh, aye! You’re worthy of seeing\n"
	.string "our GYM LEADER.$"

DewfordTown_Gym_Text_1FCEDC: @ 81FCEDC
	.string "If you mean to pass, it has to be\n"
	.string "through me!$"

DewfordTown_Gym_Text_1FCF0A: @ 81FCF0A
	.string "Grrrrr!\n"
	.string "Vastly overpowered!$"

DewfordTown_Gym_Text_1FCF26: @ 81FCF26
	.string "You win!\n"
	.string "Go after that BADGE!$"

DewfordTown_Gym_Text_1FCF44: @ 81FCF44
	.string "I’m BRAWLY!\n"
	.string "DEWFORD’s GYM LEADER!\p"
	.string "I’ve been churned in the rough waves\n"
	.string "of these parts, and I’ve grown tough\l"
	.string "in the pitch-black cave!\p"
	.string "So you wanted to challenge me?\n"
	.string "Let me see what you’re made of!$"

DewfordTown_Gym_Text_1FD008: @ 81FD008
	.string "Whoah, wow! You made a much bigger\n"
	.string "splash than I expected!\p"
	.string "You swamped me!\p"
	.string "Okay, you’ve got me.\n"
	.string "Take this GYM BADGE!$"

DewfordTown_Gym_Text_1FD07D: @ 81FD07D
	.string "{PLAYER} received the KNUCKLE BADGE\n"
	.string "from BRAWLY.$"

DewfordTown_Gym_Text_1FD0A8: @ 81FD0A8
	.string "The KNUCKLE BADGE makes all POKéMON\n"
	.string "up to Level 30, even those you get in\l"
	.string "trades, obey without question.\p"
	.string "And, you’ll be able to use the HM move\n"
	.string "FLASH outside of battle.\p"
	.string "If you’d like, use this TECHNICAL\n"
	.string "MACHINE, too.$"

DewfordTown_Gym_Text_1FD181: @ 81FD181
	.string "That TM08 contains BULK UP.\p"
	.string "It’s a move that raises both ATTACK\n"
	.string "and DEFENSE stats.\p"
	.string "… … … … … …$"

DewfordTown_Gym_Text_1FD1E0: @ 81FD1E0
	.string "Registered GYM LEADER BRAWLY\n"
	.string "in the POKéNAV.$"

DewfordTown_Gym_Text_1FD20D: @ 81FD20D
	.string "I can see your talent becoming a giant\n"
	.string "wave to cause a storm of astonishment\l"
	.string "among TRAINERS one day!$"

DewfordTown_Gym_Text_1FD272: @ 81FD272
	.string "DEWFORD TOWN POKéMON GYM$"

DewfordTown_Gym_Text_1FD28B: @ 81FD28B
	.string "DEWFORD TOWN POKéMON GYM\p"
	.string "BRAWLY’S CERTIFIED TRAINERS:\n"
	.string "{PLAYER}$"

DewfordTown_Gym_Text_1FD2C4: @ 81FD2C4
	.string "BRAWLY: A wave may draw back, but it\n"
	.string "always returns to the shore.\p"
	.string "A giant wave of a talent like you…\n"
	.string "I knew you would return!\p"
	.string "Show me how much higher\n"
	.string "you’ve gone!$"

DewfordTown_Gym_Text_1FD367: @ 81FD367
	.string "Wow!\n"
	.string "Swamped again!$"

DewfordTown_Gym_Text_1FD37B: @ 81FD37B
	.string "BRAWLY: Battling is vast and it’s deep.\n"
	.string "You can’t see the bottom.\l"
	.string "It’s just like the sea of HOENN!$"

DewfordTown_Gym_Text_1FD3DE: @ 81FD3DE
	.string "BRAWLY: A wave may draw back, but it\n"
	.string "always returns to the shore.\p"
	.string "A giant wave of a talent like you…\n"
	.string "I knew you would return!\p"
	.string "Oh? You only have one POKéMON\n"
	.string "that can battle.\p"
	.string "I’m sorry, but I’d like you to come back\n"
	.string "with at least two POKéMON.$"