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
|
PokemonLeague_ChampionsRoom_MapScripts:: @ 8162AE2
map_script 4, PokemonLeague_ChampionsRoom_MapScript1_162B5D
map_script 5, PokemonLeague_ChampionsRoom_MapScript2_162AF2
map_script 2, PokemonLeague_ChampionsRoom_MapScript3_162B6C
.byte 0
PokemonLeague_ChampionsRoom_MapScript2_162AF2:: @ 8162AF2
setvar VAR_0x8004, 4
call EventScript_1A75D5
compare_var_to_value VAR_STARTER_MON, 2
call_if 1, EventScript_162B1E
compare_var_to_value VAR_STARTER_MON, 1
call_if 1, EventScript_162B31
compare_var_to_value VAR_STARTER_MON, 0
call_if 1, EventScript_162B44
end
EventScript_162B1E:: @ 8162B1E
checktrainerflag FLAG_0x1B6
goto_if_eq EventScript_162B57
checktrainerflag FLAG_0x2E3
goto_if_eq EventScript_162B57
return
EventScript_162B31:: @ 8162B31
checktrainerflag FLAG_0x1B7
goto_if_eq EventScript_162B57
checktrainerflag FLAG_0x2E4
goto_if_eq EventScript_162B57
return
EventScript_162B44:: @ 8162B44
checktrainerflag FLAG_0x1B8
goto_if_eq EventScript_162B57
checktrainerflag FLAG_0x2E5
goto_if_eq EventScript_162B57
return
EventScript_162B57:: @ 8162B57
setvar VAR_0x4001, 1
return
PokemonLeague_ChampionsRoom_MapScript1_162B5D:: @ 8162B5D
map_script_2 VAR_0x4001, 0, EventScript_162B67
.2byte 0
EventScript_162B67:: @ 8162B67
turnobject 255, 2
end
PokemonLeague_ChampionsRoom_MapScript3_162B6C:: @ 8162B6C
map_script_2 VAR_0x4001, 0, EventScript_162B76
.2byte 0
EventScript_162B76:: @ 8162B76
lockall
textcolor 0
setflag FLAG_0x002
applymovement 255, Movement_162D07
waitmovement 0
delay 20
checkflag FLAG_0x82C
call_if 0, EventScript_162CB3
checkflag FLAG_0x82C
call_if 1, EventScript_162CBC
special sub_8110AB4
compare_var_to_value VAR_RESULT, 2
goto_if_eq EventScript_162C68
setflag FLAG_0x003
setflag FLAG_0x005
savebgm BGM_FRLG_KACHI_LEADER
checkflag FLAG_0x844
call_if 0, EventScript_162C6F
checkflag FLAG_0x844
call_if 1, EventScript_162C91
setflag FLAG_0x004
clearflag FLAG_0x005
setflag FLAG_0x4BC
setflag FLAG_0x004
msgbox gUnknown_8178F2F
playbgm BGM_FRLG_HALL_OF_FAME_PALLET_TOWN, 0
addobject 2
msgbox gUnknown_8178FC6
closemessage
applymovement 255, Movement_162D1F
applymovement 1, Movement_162D41
applymovement 2, Movement_162D2A
waitmovement 0
delay 25
specialvar VAR_RESULT, ScrSpecial_GetStarter
getspeciesname 0, VAR_RESULT
msgbox gUnknown_8178FCF
applymovement 2, Movement_1A75EB
applymovement 1, Movement_1A75E7
waitmovement 0
msgbox gUnknown_817908F
closemessage
applymovement 2, Movement_1A75ED
waitmovement 0
delay 20
msgbox gUnknown_81791A3
closemessage
delay 13
applymovement 2, Movement_162D37
applymovement 255, Movement_162D12
waitmovement 0
setvar VAR_0x4001, 1
warp MAP_POKEMON_LEAGUE_HALL_OF_FAME, 255, 5, 12
waitstate
releaseall
end
EventScript_162C68:: @ 8162C68
call EventScript_162B57
releaseall
end
EventScript_162C6F:: @ 8162C6F
compare_var_to_value VAR_STARTER_MON, 2
call_if 1, EventScript_162CC5
compare_var_to_value VAR_STARTER_MON, 1
call_if 1, EventScript_162CD0
compare_var_to_value VAR_STARTER_MON, 0
call_if 1, EventScript_162CDB
return
EventScript_162C91:: @ 8162C91
compare_var_to_value VAR_STARTER_MON, 2
call_if 1, EventScript_162CE6
compare_var_to_value VAR_STARTER_MON, 1
call_if 1, EventScript_162CF1
compare_var_to_value VAR_STARTER_MON, 0
call_if 1, EventScript_162CFC
return
EventScript_162CB3:: @ 8162CB3
msgbox gUnknown_8178B6C
return
EventScript_162CBC:: @ 8162CBC
msgbox gUnknown_8178CD4
return
EventScript_162CC5:: @ 8162CC5
trainerbattle 3, 438, 0, Text_178E3F
return
EventScript_162CD0:: @ 8162CD0
trainerbattle 3, 439, 0, Text_178E3F
return
EventScript_162CDB:: @ 8162CDB
trainerbattle 3, 440, 0, Text_178E3F
return
EventScript_162CE6:: @ 8162CE6
trainerbattle 3, 739, 0, Text_178E3F
return
EventScript_162CF1:: @ 8162CF1
trainerbattle 3, 740, 0, Text_178E3F
return
EventScript_162CFC:: @ 8162CFC
trainerbattle 3, 741, 0, Text_178E3F
return
Movement_162D07:: @ 8162D07
step_11
step_11
step_11
step_11
step_11
step_11
step_11
step_11
step_11
step_11
step_end
Movement_162D12:: @ 8162D12
step_1c
step_12
step_11
step_11
step_11
step_13
step_11
step_11
step_11
step_11
step_1b
step_60
step_end
Movement_162D1F:: @ 8162D1F
step_1b
step_2d
step_1c
step_1c
step_1c
step_1c
step_1c
step_1c
step_1c
step_2f
step_end
Movement_162D2A:: @ 8162D2A
step_1c
step_1c
step_11
step_11
step_11
step_11
step_11
step_12
step_11
step_11
step_2d
step_1c
step_end
Movement_162D37:: @ 8162D37
step_11
step_11
step_13
step_11
step_11
step_11
step_11
step_1b
step_60
step_end
Movement_162D41:: @ 8162D41
step_1c
step_1c
step_1c
step_1c
step_1c
step_1c
step_1c
step_1c
step_1c
step_2f
step_end
|