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
|
object_const_def
const ECRUTEAKGYM_MORTY
const ECRUTEAKGYM_SAGE1
const ECRUTEAKGYM_SAGE2
const ECRUTEAKGYM_GRANNY1
const ECRUTEAKGYM_GRANNY2
const ECRUTEAKGYM_GYM_GUIDE
const ECRUTEAKGYM_GRAMPS
EcruteakGym_MapScripts:
def_scene_scripts
scene_script .ForcedToLeave ; SCENE_DEFAULT
scene_script .DummyScene ; SCENE_FINISHED
def_callbacks
.ForcedToLeave:
sdefer EcruteakGymClosed
end
.DummyScene:
end
EcruteakGymMortyScript:
faceplayer
opentext
checkevent EVENT_BEAT_MORTY
iftrue .FightDone
writetext MortyIntroText
waitbutton
closetext
winlosstext MortyWinLossText, 0
loadtrainer MORTY, MORTY1
startbattle
reloadmapafterbattle
setevent EVENT_BEAT_MORTY
opentext
writetext Text_ReceivedFogBadge
playsound SFX_GET_BADGE
waitsfx
setflag ENGINE_FOGBADGE
readvar VAR_BADGES
scall EcruteakGymActivateRockets
setmapscene ECRUTEAK_TIN_TOWER_ENTRANCE, SCENE_FINISHED
setevent EVENT_RANG_CLEAR_BELL_1
setevent EVENT_RANG_CLEAR_BELL_2
.FightDone:
checkevent EVENT_GOT_TM30_SHADOW_BALL
iftrue .GotShadowBall
setevent EVENT_BEAT_SAGE_JEFFREY
setevent EVENT_BEAT_SAGE_PING
setevent EVENT_BEAT_MEDIUM_MARTHA
setevent EVENT_BEAT_MEDIUM_GRACE
writetext MortyText_FogBadgeSpeech
promptbutton
verbosegiveitem TM_SHADOW_BALL
iffalse .NoRoomForShadowBall
setevent EVENT_GOT_TM30_SHADOW_BALL
writetext MortyText_ShadowBallSpeech
waitbutton
closetext
end
.GotShadowBall:
writetext MortyFightDoneText
waitbutton
.NoRoomForShadowBall:
closetext
end
EcruteakGymActivateRockets:
ifequal 7, .RadioTowerRockets
ifequal 6, .GoldenrodRockets
end
.GoldenrodRockets:
jumpstd GoldenrodRocketsScript
.RadioTowerRockets:
jumpstd RadioTowerRocketsScript
EcruteakGymClosed:
applymovement PLAYER, EcruteakGymPlayerStepUpMovement
applymovement ECRUTEAKGYM_GRAMPS, EcruteakGymGrampsSlowStepDownMovement
opentext
writetext EcruteakGymClosedText
waitbutton
closetext
follow PLAYER, ECRUTEAKGYM_GRAMPS
applymovement PLAYER, EcruteakGymPlayerSlowStepDownMovement
stopfollow
special FadeOutPalettes
playsound SFX_ENTER_DOOR
waitsfx
warp ECRUTEAK_CITY, 6, 27
end
TrainerSageJeffrey:
trainer SAGE, JEFFREY, EVENT_BEAT_SAGE_JEFFREY, SageJeffreySeenText, SageJeffreyBeatenText, 0, .Script
.Script:
endifjustbattled
opentext
writetext SageJeffreyAfterBattleText
waitbutton
closetext
end
TrainerSagePing:
trainer SAGE, PING, EVENT_BEAT_SAGE_PING, SagePingSeenText, SagePingBeatenText, 0, .Script
.Script:
endifjustbattled
opentext
writetext SagePingAfterBattleText
waitbutton
closetext
end
TrainerMediumMartha:
trainer MEDIUM, MARTHA, EVENT_BEAT_MEDIUM_MARTHA, MediumMarthaSeenText, MediumMarthaBeatenText, 0, .Script
.Script:
endifjustbattled
opentext
writetext MediumMarthaAfterBattleText
waitbutton
closetext
end
TrainerMediumGrace:
trainer MEDIUM, GRACE, EVENT_BEAT_MEDIUM_GRACE, MediumGraceSeenText, MediumGraceBeatenText, 0, .Script
.Script:
endifjustbattled
opentext
writetext MediumGraceAfterBattleText
waitbutton
closetext
end
EcruteakGymGuideScript:
faceplayer
opentext
checkevent EVENT_BEAT_MORTY
iftrue .EcruteakGymGuideWinScript
writetext EcruteakGymGuideText
waitbutton
closetext
end
.EcruteakGymGuideWinScript:
writetext EcruteakGymGuideWinText
waitbutton
closetext
end
EcruteakGymStatue:
checkflag ENGINE_FOGBADGE
iftrue .Beaten
jumpstd GymStatue1Script
.Beaten:
gettrainername STRING_BUFFER_4, MORTY, MORTY1
jumpstd GymStatue2Script
EcruteakGymPlayerStepUpMovement:
step UP
step_end
EcruteakGymPlayerSlowStepDownMovement:
fix_facing
slow_step DOWN
remove_fixed_facing
step_end
EcruteakGymGrampsSlowStepDownMovement:
slow_step DOWN
step_end
MortyIntroText:
text "Good of you to"
line "have come."
para "Here in ECRUTEAK,"
line "#MON have been"
cont "revered."
para "It's said that a"
line "rainbow-colored"
para "#MON will come"
line "down to appear"
para "before a truly"
line "powerful trainer."
para "I believed that"
line "tale, so I have"
para "secretly trained"
line "here all my life."
para "As a result, I can"
line "now see what"
cont "others cannot."
para "Just a bit more…"
para "With a little"
line "more, I could see"
para "a future in which"
line "I meet the #MON"
cont "of rainbow colors."
para "You're going to"
line "help me reach that"
cont "level!"
done
MortyWinLossText:
text "I'm not good"
line "enough yet…"
para "All right. This"
line "BADGE is yours."
done
Text_ReceivedFogBadge:
text "<PLAYER> received"
line "FOGBADGE."
done
MortyText_FogBadgeSpeech:
text "By having FOG-"
line "BADGE, #MON up"
para "to L50 will obey"
line "you."
para "Also, #MON that"
line "know SURF will be"
para "able to use that"
line "move anytime."
para "I want you to have"
line "this too."
done
MortyText_ShadowBallSpeech:
text "It's SHADOW BALL."
line "It causes damage"
para "and may reduce"
line "SPCL.DEF."
para "Use it if it"
line "appeals to you."
done
MortyFightDoneText:
text "I see…"
para "Your journey has"
line "taken you to far-"
cont "away places."
para "And you have wit-"
line "nessed much more"
cont "than I."
para "I envy you for"
line "that…"
done
SageJeffreySeenText:
text "I spent the spring"
line "with my #MON."
para "Then summer, fall"
line "and winter…"
para "Then spring came"
line "again. We have"
para "lived together"
line "for a long time."
done
SageJeffreyBeatenText:
text "Wins and losses, I"
line "experienced both."
done
SageJeffreyAfterBattleText:
text "Where did #MON"
line "come from?"
done
SagePingSeenText:
text "Can you inflict"
line "any damage on our"
cont "#MON?"
done
SagePingBeatenText:
text "Ah! Well done!"
done
SagePingAfterBattleText:
text "We use only ghost-"
line "type #MON."
para "No normal-type"
line "attack can harm"
cont "them!"
done
MediumMarthaSeenText:
text "I shall win!"
done
MediumMarthaBeatenText:
text "I, I, I lost!"
done
MediumMarthaAfterBattleText:
text "The one who wants"
line "to win most--will!"
done
MediumGraceSeenText:
text "Stumped by our in-"
line "visible floor?"
para "Defeat me if you"
line "want a hint!"
done
MediumGraceBeatenText:
text "Wha-what?"
done
MediumGraceAfterBattleText:
text "Fine. I shall tell"
line "you the secret of"
para "the invisible"
line "floor."
para "The path is right"
line "before our eyes!"
done
EcruteakGymGuideText:
text "The trainers here"
line "have secret mo-"
cont "tives."
para "If you win, they"
line "may tell you some"
para "deep secrets about"
line "ECRUTEAK."
done
EcruteakGymGuideWinText:
text "Whew, <PLAYER>."
line "You did great!"
para "I was cowering in"
line "the corner out of"
cont "pure terror!"
done
EcruteakGymClosedText:
text "MORTY, the GYM"
line "LEADER, is absent."
para "Sorry, but you'll"
line "have to leave."
para "Hohohoho."
done
EcruteakGym_MapEvents:
db 0, 0 ; filler
def_warp_events
warp_event 4, 17, ECRUTEAK_CITY, 10
warp_event 5, 17, ECRUTEAK_CITY, 10
warp_event 4, 14, ECRUTEAK_GYM, 4
warp_event 2, 4, ECRUTEAK_GYM, 3
warp_event 3, 4, ECRUTEAK_GYM, 3
warp_event 4, 4, ECRUTEAK_GYM, 3
warp_event 4, 5, ECRUTEAK_GYM, 3
warp_event 6, 7, ECRUTEAK_GYM, 3
warp_event 7, 4, ECRUTEAK_GYM, 3
warp_event 2, 6, ECRUTEAK_GYM, 3
warp_event 3, 6, ECRUTEAK_GYM, 3
warp_event 4, 6, ECRUTEAK_GYM, 3
warp_event 5, 6, ECRUTEAK_GYM, 3
warp_event 7, 6, ECRUTEAK_GYM, 3
warp_event 7, 7, ECRUTEAK_GYM, 3
warp_event 4, 8, ECRUTEAK_GYM, 3
warp_event 5, 8, ECRUTEAK_GYM, 3
warp_event 6, 8, ECRUTEAK_GYM, 3
warp_event 7, 8, ECRUTEAK_GYM, 3
warp_event 2, 8, ECRUTEAK_GYM, 3
warp_event 2, 9, ECRUTEAK_GYM, 3
warp_event 2, 10, ECRUTEAK_GYM, 3
warp_event 2, 11, ECRUTEAK_GYM, 3
warp_event 4, 10, ECRUTEAK_GYM, 3
warp_event 5, 10, ECRUTEAK_GYM, 3
warp_event 2, 12, ECRUTEAK_GYM, 3
warp_event 3, 12, ECRUTEAK_GYM, 3
warp_event 4, 12, ECRUTEAK_GYM, 3
warp_event 5, 12, ECRUTEAK_GYM, 3
warp_event 7, 10, ECRUTEAK_GYM, 3
warp_event 7, 11, ECRUTEAK_GYM, 3
warp_event 7, 12, ECRUTEAK_GYM, 3
warp_event 7, 13, ECRUTEAK_GYM, 3
def_coord_events
def_bg_events
bg_event 3, 15, BGEVENT_READ, EcruteakGymStatue
bg_event 6, 15, BGEVENT_READ, EcruteakGymStatue
def_object_events
object_event 5, 1, SPRITE_MORTY, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_BROWN, OBJECTTYPE_SCRIPT, 0, EcruteakGymMortyScript, -1
object_event 2, 7, SPRITE_SAGE, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_TRAINER, 1, TrainerSageJeffrey, -1
object_event 3, 13, SPRITE_SAGE, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_TRAINER, 3, TrainerSagePing, -1
object_event 7, 5, SPRITE_GRANNY, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_NPC_BROWN, OBJECTTYPE_TRAINER, 1, TrainerMediumMartha, -1
object_event 7, 9, SPRITE_GRANNY, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_NPC_BROWN, OBJECTTYPE_TRAINER, 1, TrainerMediumGrace, -1
object_event 7, 15, SPRITE_GYM_GUIDE, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_SCRIPT, 0, EcruteakGymGuideScript, -1
object_event 4, 14, SPRITE_GRAMPS, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_SCRIPT, 0, ObjectEvent, EVENT_ECRUTEAK_GYM_GRAMPS
|