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
|
ThreeIsland_MapScripts:: @ 81677AD
map_script 3, ThreeIsland_MapScript1_1677B3
.byte 0
ThreeIsland_MapScript1_1677B3:: @ 81677B3
setworldmapflag FLAG_WORLD_MAP_THREE_ISLAND
checkflag FLAG_RESCUED_LOSTELLE
call_if TRUE, EventScript_1677CB
compare_var_to_value VAR_MAP_SCENE_THREE_ISLAND, 4
call_if eq, EventScript_1677CF
end
EventScript_1677CB:: @ 81677CB
setflag FLAG_HIDE_THREE_ISLAND_ANTIBIKERS
return
EventScript_1677CF:: @ 81677CF
setobjectmovementtype 1, 1
setobjectmovementtype 2, 1
return
ThreeIsland_EventScript_1677D8:: @ 81677D8
lock
setvar VAR_0x4001, 2
call EventScript_16786F
release
end
ThreeIsland_EventScript_1677E5:: @ 81677E5
lock
checkflag FLAG_GOT_FULL_RESTORE_FROM_THREE_ISLAND_DEFENDER
goto_if TRUE, EventScript_167806
compare_var_to_value VAR_MAP_SCENE_THREE_ISLAND, 4
goto_if eq, EventScript_16781A
setvar VAR_0x4001, 0
call EventScript_16786F
release
end
EventScript_167806:: @ 8167806
applymovement 1, Movement_1A75E1
waitmovement 0
msgbox gUnknown_81827F1
release
end
EventScript_16781A:: @ 816781A
applymovement 1, Movement_1A75E1
waitmovement 0
msgbox gUnknown_818275A
checkitemspace ITEM_FULL_RESTORE, 1
compare_var_to_value VAR_RESULT, 0
goto_if eq, EventScript_167865
giveitemfanfaremsg gUnknown_81827BE, ITEM_FULL_RESTORE
additem ITEM_FULL_RESTORE, 1
setflag FLAG_GOT_FULL_RESTORE_FROM_THREE_ISLAND_DEFENDER
msgbox gUnknown_81827F1
release
end
EventScript_167865:: @ 8167865
msgbox gUnknown_81827DB
release
end
EventScript_16786F:: @ 816786F
compare_var_to_value VAR_0x4001, 1
call_if eq, EventScript_167947
compare_var_to_value VAR_0x4001, 2
call_if eq, EventScript_167947
applymovement 1, Movement_167A1B
waitmovement 0
msgbox gUnknown_81820C0
compare_var_to_value VAR_0x4001, 0
call_if eq, EventScript_167952
compare_var_to_value VAR_0x4001, 1
call_if eq, EventScript_167952
compare_var_to_value VAR_0x4001, 2
call_if eq, EventScript_16795D
applymovement 5, Movement_167A19
waitmovement 0
msgbox gUnknown_8182125
compare_var_to_value VAR_0x4001, 0
call_if eq, EventScript_167931
compare_var_to_value VAR_0x4001, 1
call_if eq, EventScript_167931
compare_var_to_value VAR_0x4001, 2
call_if eq, EventScript_167973
applymovement 2, Movement_167A1B
waitmovement 0
msgbox gUnknown_81821A9
compare_var_to_value VAR_0x4001, 0
call_if eq, EventScript_167952
compare_var_to_value VAR_0x4001, 1
call_if eq, EventScript_167952
compare_var_to_value VAR_0x4001, 2
call_if eq, EventScript_16795D
applymovement 4, Movement_167A19
waitmovement 0
msgbox gUnknown_81821DC
return
EventScript_167931:: @ 8167931
applymovement 255, Movement_1A75E9
waitmovement 0
return
EventScript_16793C:: @ 816793C
applymovement 255, Movement_1A75ED
waitmovement 0
return
EventScript_167947:: @ 8167947
applymovement 255, Movement_1A75E7
waitmovement 0
return
EventScript_167952:: @ 8167952
applymovement 255, Movement_1A75EB
waitmovement 0
return
EventScript_16795D:: @ 816795D
getplayerxy VAR_0x8004, VAR_0x8005
compare_var_to_value VAR_0x8004, 9
goto_if ge, EventScript_167931
goto EventScript_167952
end
EventScript_167973:: @ 8167973
getplayerxy VAR_0x8004, VAR_0x8005
compare_var_to_value VAR_0x8004, 9
goto_if ge, EventScript_167947
goto EventScript_167931
end
ThreeIsland_EventScript_167989:: @ 8167989
lock
compare_var_to_value VAR_MAP_SCENE_THREE_ISLAND, 4
goto_if eq, EventScript_1679A1
setvar VAR_0x4001, 1
call EventScript_16786F
release
end
EventScript_1679A1:: @ 81679A1
applymovement 2, Movement_1A75E1
waitmovement 0
msgbox gUnknown_8182823
release
end
ThreeIsland_EventScript_1679B5:: @ 81679B5
lockall
textcolor 0
applymovement 1, Movement_167A1B
waitmovement 0
msgbox gUnknown_81821F1
applymovement 3, Movement_167A19
waitmovement 0
msgbox gUnknown_818221F
applymovement 1, Movement_167A1B
waitmovement 0
msgbox gUnknown_8182275
applymovement 3, Movement_167A19
waitmovement 0
msgbox gUnknown_81822FB
applymovement 1, Movement_167A1B
waitmovement 0
msgbox gUnknown_81823C7
setvar VAR_MAP_SCENE_THREE_ISLAND, 3
releaseall
end
Movement_167A19:: @ 8167A19
step_27
step_end
Movement_167A1B:: @ 8167A1B
step_28
step_end
ThreeIsland_EventScript_167A1D:: @ 8167A1D
lockall
setvar VAR_0x4001, 0
goto EventScript_167A59
end
ThreeIsland_EventScript_167A29:: @ 8167A29
lockall
setvar VAR_0x4001, 1
goto EventScript_167A59
end
ThreeIsland_EventScript_167A35:: @ 8167A35
lockall
setvar VAR_0x4001, 2
goto EventScript_167A59
end
ThreeIsland_EventScript_167A41:: @ 8167A41
lockall
setvar VAR_0x4001, 3
goto EventScript_167A59
end
ThreeIsland_EventScript_167A4D:: @ 8167A4D
lockall
setvar VAR_0x4001, 4
goto EventScript_167A59
end
EventScript_167A59:: @ 8167A59
textcolor 0
applymovement 5, Movement_1A75ED
waitmovement 0
playse SE_PIN
applymovement 5, Movement_1A75DB
waitmovement 0
applymovement 5, Movement_1A75DD
waitmovement 0
applymovement 5, Movement_167C57
waitmovement 0
playbgm MUS_SHOUNEN, 0
msgbox gUnknown_81823ED, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 0
goto_if eq, EventScript_167C35
msgbox gUnknown_818247D
setvar VAR_LAST_TALKED, 5
trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_BIKER_GOON, 0, Text_1824B7
applymovement 5, Movement_167C5C
waitmovement 0
msgbox gUnknown_81824CF
closemessage
applymovement 7, Movement_167C57
waitmovement 0
playbgm MUS_SHOUNEN, 0
msgbox gUnknown_81824EF
setvar VAR_LAST_TALKED, 7
trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_BIKER_GOON_2, 0, Text_182521
applymovement 7, Movement_167C5C
waitmovement 0
msgbox gUnknown_8182536
closemessage
applymovement 4, Movement_167C57
waitmovement 0
playbgm MUS_SHOUNEN, 0
msgbox gUnknown_8182582
setvar VAR_LAST_TALKED, 4
trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_BIKER_GOON_3, 0, Text_1825D4
applymovement 4, Movement_1A75E7
waitmovement 0
applymovement 6, Movement_1A75ED
applymovement 8, Movement_1A75ED
waitmovement 0
msgbox gUnknown_81825E2
closemessage
delay 45
compare_var_to_value VAR_0x4001, 0
call_if eq, EventScript_167BC6
compare_var_to_value VAR_0x4001, 1
call_if eq, EventScript_167BD8
compare_var_to_value VAR_0x4001, 2
call_if eq, EventScript_167BEA
compare_var_to_value VAR_0x4001, 3
call_if eq, EventScript_167C03
compare_var_to_value VAR_0x4001, 4
call_if eq, EventScript_167C1C
playbgm MUS_SHOUNEN, 0
msgbox gUnknown_8182623
setvar VAR_LAST_TALKED, 3
trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_CUE_BALL_PAXTON, 0, Text_1826B7
msgbox gUnknown_818271D
closemessage
fadescreen 1
removeobject 3
removeobject 5
removeobject 7
removeobject 4
removeobject 6
removeobject 8
removeobject 14
fadescreen 0
setvar VAR_MAP_SCENE_THREE_ISLAND, 4
releaseall
end
EventScript_167BC6:: @ 8167BC6
applymovement 4, Movement_1A75ED
applymovement 3, Movement_167C5E
waitmovement 0
return
EventScript_167BD8:: @ 8167BD8
applymovement 4, Movement_1A75ED
applymovement 3, Movement_167C62
waitmovement 0
return
EventScript_167BEA:: @ 8167BEA
applymovement 4, Movement_1A75ED
applymovement 3, Movement_167C64
applymovement 255, Movement_167C68
waitmovement 0
return
EventScript_167C03:: @ 8167C03
applymovement 4, Movement_1A75ED
applymovement 255, Movement_167C68
applymovement 3, Movement_167C6C
waitmovement 0
return
EventScript_167C1C:: @ 8167C1C
applymovement 4, Movement_1A75ED
applymovement 255, Movement_167C68
applymovement 3, Movement_167C71
waitmovement 0
return
EventScript_167C35:: @ 8167C35
msgbox gUnknown_8182453
closemessage
applymovement 255, Movement_167C55
waitmovement 0
applymovement 5, Movement_167C59
waitmovement 0
fadedefaultbgm
releaseall
end
Movement_167C55:: @ 8167C55
step_10
step_end
Movement_167C57:: @ 8167C57
step_10
step_end
Movement_167C59:: @ 8167C59
step_11
step_2f
step_end
Movement_167C5C:: @ 8167C5C
step_25
step_end
Movement_167C5E:: @ 8167C5E
step_10
step_12
step_2d
step_end
Movement_167C62:: @ 8167C62
step_10
step_end
Movement_167C64:: @ 8167C64
step_10
step_10
step_30
step_end
Movement_167C68:: @ 8167C68
step_1c
step_1c
step_2f
step_end
Movement_167C6C:: @ 8167C6C
step_10
step_10
step_13
step_30
step_end
Movement_167C71:: @ 8167C71
step_10
step_10
step_13
step_13
step_30
step_end
ThreeIsland_EventScript_167C77:: @ 8167C77
msgbox gUnknown_81828EB, 2
end
ThreeIsland_EventScript_167C80:: @ 8167C80
msgbox gUnknown_818298A, 2
end
ThreeIsland_EventScript_167C89:: @ 8167C89
lock
faceplayer
waitse
playmoncry SPECIES_DODUO, 0
msgbox gUnknown_81829F4
waitmoncry
release
end
ThreeIsland_EventScript_167C9C:: @ 8167C9C
msgbox gUnknown_8182061, 3
end
ThreeIsland_EventScript_167CA5:: @ 8167CA5
msgbox gUnknown_818208B, 2
end
|