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
|
DewfordTown_Gym_MapScripts:: @ 8153065
map_script 3, DewfordTown_Gym_MapScript1_15306B
.byte 0
DewfordTown_Gym_MapScript1_15306B:: @ 815306B
call DewfordTown_Gym_EventScript_153071
end
DewfordTown_Gym_EventScript_153071:: @ 8153071
checktrainerflag OPPONENT_BRAWLY
goto_if_eq DewfordTown_Gym_EventScript_1530AA
call DewfordTown_Gym_EventScript_153122
copyvar VAR_SPECIAL_1, VAR_SPECIAL_0
compare VAR_SPECIAL_0, 0
goto_if_eq DewfordTown_Gym_EventScript_1530BA
compare VAR_SPECIAL_0, 1
goto_if_eq DewfordTown_Gym_EventScript_1530B6
compare VAR_SPECIAL_0, 2
goto_if_eq DewfordTown_Gym_EventScript_1530B2
goto DewfordTown_Gym_EventScript_1530AE
DewfordTown_Gym_EventScript_1530AA:: @ 81530AA
setflashradius 0
return
DewfordTown_Gym_EventScript_1530AE:: @ 81530AE
setflashradius 1
return
DewfordTown_Gym_EventScript_1530B2:: @ 81530B2
setflashradius 2
return
DewfordTown_Gym_EventScript_1530B6:: @ 81530B6
setflashradius 3
return
DewfordTown_Gym_EventScript_1530BA:: @ 81530BA
setflashradius 4
return
DewfordTown_Gym_EventScript_1530BE:: @ 81530BE
call DewfordTown_Gym_EventScript_153122
nop1
compare VAR_SPECIAL_0, VAR_SPECIAL_1
goto_if_eq DewfordTown_Gym_EventScript_1530F5
copyvar VAR_SPECIAL_1, VAR_SPECIAL_0
compare VAR_SPECIAL_0, 1
goto_if_eq DewfordTown_Gym_EventScript_1530F6
compare VAR_SPECIAL_0, 2
goto_if_eq DewfordTown_Gym_EventScript_153101
compare VAR_SPECIAL_0, 3
goto_if_eq DewfordTown_Gym_EventScript_15310C
DewfordTown_Gym_EventScript_1530F5:: @ 81530F5
return
DewfordTown_Gym_EventScript_1530F6:: @ 81530F6
playse 35
animateflash 3
call DewfordTown_Gym_EventScript_153071
return
DewfordTown_Gym_EventScript_153101:: @ 8153101
playse 35
animateflash 2
call DewfordTown_Gym_EventScript_153071
return
DewfordTown_Gym_EventScript_15310C:: @ 815310C
playse 35
animateflash 1
call DewfordTown_Gym_EventScript_153071
return
DewfordTown_Gym_EventScript_153117:: @ 8153117
playse 35
animateflash 0
call DewfordTown_Gym_EventScript_153071
return
DewfordTown_Gym_EventScript_153122:: @ 8153122
setvar VAR_SPECIAL_0, 0
checktrainerflag OPPONENT_HIDEKI
goto_if 0, DewfordTown_Gym_EventScript_153135
addvar VAR_SPECIAL_0, 1
DewfordTown_Gym_EventScript_153135:: @ 8153135
checktrainerflag OPPONENT_TESSA
goto_if 0, DewfordTown_Gym_EventScript_153143
addvar VAR_SPECIAL_0, 1
DewfordTown_Gym_EventScript_153143:: @ 8153143
checktrainerflag OPPONENT_LAURA
goto_if 0, DewfordTown_Gym_EventScript_153151
addvar VAR_SPECIAL_0, 1
DewfordTown_Gym_EventScript_153151:: @ 8153151
return
DewfordTown_Gym_EventScript_153152:: @ 8153152
trainerbattle 1, OPPONENT_BRAWLY, 0, DewfordTown_Gym_Text_175182, DewfordTown_Gym_Text_175246, DewfordTown_Gym_EventScript_153177
checkflag FLAG_RECEIVED_TM08
goto_if 0, DewfordTown_Gym_EventScript_1531B5
msgbox DewfordTown_Gym_Text_175412, 4
release
end
DewfordTown_Gym_EventScript_153177:: @ 8153177
call DewfordTown_Gym_EventScript_153117
message DewfordTown_Gym_Text_1752BB
waitmessage
call DewfordTown_Gym_EventScript_1A02C5
msgbox DewfordTown_Gym_Text_1752E6, 4
setflag FLAG_DEFEATED_DEWFORD_GYM
setflag FLAG_BADGE02_GET
addvar VAR_PETALBURG_GYM_STATE, 1
compare VAR_PETALBURG_GYM_STATE, 6
call_if 1, DewfordTown_Gym_EventScript_1A00FB
setvar VAR_SPECIAL_8, 2
call DewfordTown_Gym_EventScript_1A01C0
goto DewfordTown_Gym_EventScript_1531B5
end
DewfordTown_Gym_EventScript_1531B5:: @ 81531B5
giveitem_std ITEM_TM08
compare RESULT, 0
goto_if_eq DewfordTown_Gym_EventScript_1A029B
msgbox DewfordTown_Gym_Text_1753BF, 4
setflag FLAG_RECEIVED_TM08
release
end
DewfordTown_Gym_EventScript_1531D9:: @ 81531D9
trainerbattle 2, OPPONENT_HIDEKI, 0, DewfordTown_Gym_Text_174F61, DewfordTown_Gym_Text_174F7A, DewfordTown_Gym_EventScript_1531F4
msgbox DewfordTown_Gym_Text_174F8E, 6
end
DewfordTown_Gym_EventScript_1531F4:: @ 81531F4
call DewfordTown_Gym_EventScript_1530BE
release
end
DewfordTown_Gym_EventScript_1531FB:: @ 81531FB
trainerbattle 2, OPPONENT_TESSA, 0, DewfordTown_Gym_Text_174FCE, DewfordTown_Gym_Text_175009, DewfordTown_Gym_EventScript_153216
msgbox DewfordTown_Gym_Text_175031, 6
end
DewfordTown_Gym_EventScript_153216:: @ 8153216
call DewfordTown_Gym_EventScript_1530BE
release
end
DewfordTown_Gym_EventScript_15321D:: @ 815321D
trainerbattle 2, OPPONENT_LAURA, 0, DewfordTown_Gym_Text_1750C9, DewfordTown_Gym_Text_175104, DewfordTown_Gym_EventScript_153238
msgbox DewfordTown_Gym_Text_175117, 6
end
DewfordTown_Gym_EventScript_153238:: @ 8153238
call DewfordTown_Gym_EventScript_1530BE
release
end
DewfordTown_Gym_EventScript_15323F:: @ 815323F
lock
faceplayer
checkflag FLAG_DEFEATED_DEWFORD_GYM
goto_if_eq DewfordTown_Gym_EventScript_153254
msgbox DewfordTown_Gym_Text_174D98, 4
release
end
DewfordTown_Gym_EventScript_153254:: @ 8153254
msgbox DewfordTown_Gym_Text_174F1E, 4
release
end
DewfordTown_Gym_EventScript_15325E:: @ 815325E
lockall
checkflag FLAG_BADGE02_GET
goto_if_eq DewfordTown_Gym_EventScript_15327E
goto DewfordTown_Gym_EventScript_153288
end
DewfordTown_Gym_EventScript_15326E:: @ 815326E
lockall
checkflag FLAG_BADGE02_GET
goto_if_eq DewfordTown_Gym_EventScript_15327E
goto DewfordTown_Gym_EventScript_153288
end
DewfordTown_Gym_EventScript_15327E:: @ 815327E
msgbox DewfordTown_Gym_Text_175490, 4
releaseall
end
DewfordTown_Gym_EventScript_153288:: @ 8153288
msgbox DewfordTown_Gym_Text_175477, 4
releaseall
end
|