forked from Rangi42/polishedcrystal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCeladonGym.asm
270 lines (214 loc) · 6.06 KB
/
CeladonGym.asm
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
CeladonGym_MapScriptHeader:
def_scene_scripts
def_callbacks
def_warp_events
warp_event 4, 17, CELADON_CITY, 8
warp_event 5, 17, CELADON_CITY, 8
def_coord_events
def_bg_events
bg_event 3, 15, BGEVENT_READ, CeladonGymStatue
bg_event 6, 15, BGEVENT_READ, CeladonGymStatue
def_object_events
object_event 5, 3, SPRITE_ERIKA, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, CeladonGymErikaScript, -1
object_event 7, 8, SPRITE_LASS, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, 0, OBJECTTYPE_GENERICTRAINER, 2, GenericTrainerLassMichelle, -1
object_event 2, 8, SPRITE_PICNICKER, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, 0, OBJECTTYPE_GENERICTRAINER, 2, GenericTrainerPicnickerTanya, -1
object_event 3, 5, SPRITE_BEAUTY, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, 0, OBJECTTYPE_GENERICTRAINER, 2, GenericTrainerBeautyJulia, -1
object_event 6, 5, SPRITE_AROMA_LADY, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, 0, OBJECTTYPE_GENERICTRAINER, 2, GenericTrainerAroma_ladyDahlia, -1
object_event 4, 10, SPRITE_TWIN, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, OBJECTTYPE_GENERICTRAINER, 1, GenericTrainerTwinsJoandzoe1, -1
object_event 5, 10, SPRITE_TWIN, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, OBJECTTYPE_GENERICTRAINER, 1, GenericTrainerTwinsJoandzoe2, -1
CeladonGymErikaScript:
faceplayer
opentext
checkflag ENGINE_RAINBOWBADGE
iftrue .FightDone
writetext ErikaBeforeBattleText
waitbutton
closetext
winlosstext ErikaBeatenText, 0
loadtrainer ERIKA, 1
startbattle
reloadmapafterbattle
setevent EVENT_BEAT_ERIKA
setevent EVENT_BEAT_LASS_MICHELLE
setevent EVENT_BEAT_PICNICKER_TANYA
setevent EVENT_BEAT_BEAUTY_JULIA
setevent EVENT_BEAT_AROMA_LADY_DAHLIA
setevent EVENT_BEAT_TWINS_JO_AND_ZOE
opentext
writetext PlayerReceivedRainbowBadgeText
playsound SFX_GET_BADGE
waitsfx
setflag ENGINE_RAINBOWBADGE
readvar VAR_BADGES
ifequal 9, .FirstBadge
ifequal 10, .SecondBadge
ifequal 12, .LyrasEgg
sjump .FightDone
.FirstBadge:
specialphonecall SPECIALCALL_FIRSTBADGE
sjump .FightDone
.SecondBadge:
checkevent EVENT_GOT_GS_BALL_FROM_POKECOM_CENTER
iftrue .FightDone
specialphonecall SPECIALCALL_SECONDBADGE
sjump .FightDone
.LyrasEgg:
specialphonecall SPECIALCALL_LYRASEGG
.FightDone:
checkevent EVENT_GOT_TM19_GIGA_DRAIN
iftrue_jumpopenedtext ErikaAfterBattleText
writetext ErikaExplainTMText
promptbutton
verbosegivetmhm TM_GIGA_DRAIN
setevent EVENT_GOT_TM19_GIGA_DRAIN
jumpopenedtext ErikaOutroText
GenericTrainerLassMichelle:
generictrainer LASS, MICHELLE, EVENT_BEAT_LASS_MICHELLE, LassMichelleSeenText, LassMichelleBeatenText
text "I just got care-"
line "less, that's all!"
done
GenericTrainerPicnickerTanya:
generictrainer PICNICKER, TANYA, EVENT_BEAT_PICNICKER_TANYA, PicnickerTanyaSeenText, PicnickerTanyaBeatenText
text "Oh, look at all"
line "your Badges. No"
para "wonder I couldn't"
line "win!"
done
GenericTrainerBeautyJulia:
generictrainer BEAUTY, JULIA, EVENT_BEAT_BEAUTY_JULIA, BeautyJuliaSeenText, BeautyJuliaBeatenText
text "How do I go about"
line "becoming ladylike"
cont "like Erika?"
done
GenericTrainerAroma_ladyDahlia:
generictrainer AROMA_LADY, DAHLIA, EVENT_BEAT_AROMA_LADY_DAHLIA, Aroma_ladyDahliaSeenText, Aroma_ladyDahliaBeatenText
text "Gloom releases a"
line "foul fragrance,"
para "but Erika knows"
line "how to turn it"
para "into a sweet"
line "perfume."
done
GenericTrainerTwinsJoandzoe1:
generictrainer TWINS, JOANDZOE1, EVENT_BEAT_TWINS_JO_AND_ZOE, TwinsJoandzoe1SeenText, TwinsJoandzoe1BeatenText
text "Erika will get you"
line "back for us!"
done
GenericTrainerTwinsJoandzoe2:
generictrainer TWINS, JOANDZOE2, EVENT_BEAT_TWINS_JO_AND_ZOE, TwinsJoandzoe2SeenText, TwinsJoandzoe2BeatenText
text "Erika is much,"
line "much stronger!"
done
CeladonGymStatue:
gettrainername ERIKA, 1, $1
checkflag ENGINE_RAINBOWBADGE
iftrue .Beaten
jumpstd gymstatue1
.Beaten:
jumpstd gymstatue2
ErikaBeforeBattleText:
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
ErikaBeatenText:
text "Erika: Oh!"
line "I concede defeat…"
para "You are remarkably"
line "strong…"
para "I shall give you"
line "the Rainbow Badge…"
done
PlayerReceivedRainbowBadgeText:
text "<PLAYER> received"
line "the Rainbow Badge."
done
ErikaExplainTMText:
text "Erika: That was a"
line "delightful match."
para "I felt inspired."
line "Please, I wish you"
cont "to have this TM."
done
ErikaOutroText:
text "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
ErikaAfterBattleText:
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
LassMichelleSeenText:
text "Do you think a"
line "girls-only Gym"
cont "is rare?"
done
LassMichelleBeatenText:
text "Oh, bleah!"
done
PicnickerTanyaSeenText:
text "Oh, a battle?"
line "That's kind of"
cont "scary, but OK!"
done
PicnickerTanyaBeatenText:
text "Oh, that's it?"
done
BeautyJuliaSeenText:
text "Were you looking"
line "at these flowers"
cont "or at me?"
done
BeautyJuliaBeatenText:
text "How annoying!"
done
Aroma_ladyDahliaSeenText:
text "There is an in-"
line "triguing scent"
cont "around you…"
done
Aroma_ladyDahliaBeatenText:
text "The foul scent"
line "of defeat…"
done
TwinsJoandzoe1SeenText:
text "We'll show you"
line "#mon moves that"
cont "Erika taught us!"
done
TwinsJoandzoe1BeatenText:
text "Oh… We lost…"
done
TwinsJoandzoe2SeenText:
text "We're going to"
line "protect Erika!"
done
TwinsJoandzoe2BeatenText:
text "We couldn't win…"
done