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
439
440
441
442
443
444
445
446
447
448
449
450
|
SevenIsland_TrainerTower_1F_MapScript1_1C4F54:: @ 81C4F54
SevenIsland_TrainerTower_2F_MapScript1_1C4F54:: @ 81C4F54
SevenIsland_TrainerTower_3F_MapScript1_1C4F54:: @ 81C4F54
SevenIsland_TrainerTower_4F_MapScript1_1C4F54:: @ 81C4F54
SevenIsland_TrainerTower_5F_MapScript1_1C4F54:: @ 81C4F54
SevenIsland_TrainerTower_6F_MapScript1_1C4F54:: @ 81C4F54
SevenIsland_TrainerTower_7F_MapScript1_1C4F54:: @ 81C4F54
SevenIsland_TrainerTower_8F_MapScript1_1C4F54:: @ 81C4F54
SevenIsland_TrainerTower_Elevator_MapScript1_1C4F54:: @ 81C4F54
SevenIsland_TrainerTower_Roof_MapScript1_1C4F54:: @ 81C4F54
setvar VAR_TEMP_2, 0
setvar VAR_0x8004, 10
special sub_815D9E8
end
SevenIsland_TrainerTower_1F_MapScript2_1C4F62:: @ 81C4F62
SevenIsland_TrainerTower_2F_MapScript2_1C4F62:: @ 81C4F62
SevenIsland_TrainerTower_3F_MapScript2_1C4F62:: @ 81C4F62
SevenIsland_TrainerTower_4F_MapScript2_1C4F62:: @ 81C4F62
SevenIsland_TrainerTower_5F_MapScript2_1C4F62:: @ 81C4F62
SevenIsland_TrainerTower_6F_MapScript2_1C4F62:: @ 81C4F62
SevenIsland_TrainerTower_7F_MapScript2_1C4F62:: @ 81C4F62
SevenIsland_TrainerTower_8F_MapScript2_1C4F62:: @ 81C4F62
setvar VAR_0x8004, 0
special sub_815D9E8
switch VAR_RESULT
case 0, EventScript_1C4FA7
case 1, EventScript_1C4FC5
case 2, EventScript_1C5019
setflag FLAG_TEMP_2
setflag FLAG_TEMP_3
setflag FLAG_TEMP_4
setflag FLAG_TEMP_5
setvar VAR_TEMP_E, 1
setvar VAR_TEMP_F, 1
end
EventScript_1C4FA7:: @ 81C4FA7
setflag FLAG_TEMP_2
setflag FLAG_TEMP_4
setflag FLAG_TEMP_5
setvar VAR_TEMP_F, 1
setobjectxyperm 3, 15, 13
setobjectmovementtype 3, 9
goto EventScript_1C5042
EventScript_1C4FC5:: @ 81C4FC5
setflag FLAG_TEMP_3
setflag FLAG_TEMP_4
setvar VAR_TEMP_E, 1
setvar VAR_0x8004, 5
special sub_815D9E8
compare VAR_RESULT, 1
goto_if_eq EventScript_1C4FFE
setobjectxyperm 2, 10, 12
setobjectmovementtype 2, 9
setobjectxyperm 5, 10, 13
setobjectmovementtype 5, 9
goto EventScript_1C5042
EventScript_1C4FFE:: @ 81C4FFE
setobjectxyperm 2, 10, 12
setobjectmovementtype 2, 8
setobjectxyperm 5, 11, 12
setobjectmovementtype 5, 8
goto EventScript_1C5042
EventScript_1C5019:: @ 81C5019
setflag FLAG_TEMP_5
setvar VAR_TEMP_F, 1
setobjectxyperm 2, 10, 10
setobjectmovementtype 2, 8
setobjectxyperm 3, 14, 13
setobjectmovementtype 3, 9
setobjectxyperm 4, 10, 16
setobjectmovementtype 4, 7
EventScript_1C5042:
setflag FLAG_TEMP_6
end
SevenIsland_TrainerTower_1F_MapScript3_1C5046:: @ 81C5046
SevenIsland_TrainerTower_2F_MapScript3_1C5046:: @ 81C5046
SevenIsland_TrainerTower_3F_MapScript3_1C5046:: @ 81C5046
SevenIsland_TrainerTower_4F_MapScript3_1C5046:: @ 81C5046
SevenIsland_TrainerTower_5F_MapScript3_1C5046:: @ 81C5046
SevenIsland_TrainerTower_6F_MapScript3_1C5046:: @ 81C5046
SevenIsland_TrainerTower_7F_MapScript3_1C5046:: @ 81C5046
SevenIsland_TrainerTower_8F_MapScript3_1C5046:: @ 81C5046
SevenIsland_TrainerTower_Elevator_MapScript2_1C5046:: @ 81C5046
SevenIsland_TrainerTower_Roof_MapScript2_1C5046:: @ 81C5046
map_script_2 VAR_TEMP_2, 0, EventScript_1C5050
.2byte 0
EventScript_1C5050:: @ 81C5050
setvar VAR_TEMP_2, 1
setvar VAR_0x8004, 5
special sub_815D9E8
compare VAR_RESULT, 0
goto_if_eq EventScript_1C5072
setvar VAR_TEMP_E, 1
setvar VAR_TEMP_F, 1
EventScript_1C5072:
setvar VAR_0x8004, 18
special sub_815D9E8
compare VAR_RESULT, 1
goto_if_eq EventScript_1C5086
end
EventScript_1C5086:: @ 81C5086
warp MAP_SEVEN_ISLAND_TRAINER_TOWER_LOBBY, 255, 9, 7
waitstate
EventScript_1C508F::
setvar VAR_0x8004, 3
setvar VAR_0x8005, 0
special sub_815D9E8
switch VAR_RESULT
case 0, EventScript_1C50C2
case 1, EventScript_1C510D
case 2, EventScript_1C515C
EventScript_1C50C2:
setvar VAR_0x8004, 19
special sub_815D9E8
applymovement 3, Movement_ExclamationMark
waitmovement 0
applymovement 3, Movement_Delay48
waitmovement 0
setvar VAR_TEMP_E, 1
applymovement 3, Movement_1C5541
waitmovement 0
setvar VAR_0x8004, 1
setvar VAR_0x8005, 2
setvar VAR_0x8006, 0
special sub_815D9E8
msgbox gStringVar4
closemessage
goto EventScript_1C5219
EventScript_1C510D:: @ 81C510D
setvar VAR_0x8004, 1
setvar VAR_0x8005, 2
copyvar VAR_0x8006, VAR_TEMP_3
special sub_815D9E8
msgbox gStringVar4
setvar VAR_0x8004, 1
setvar VAR_0x8005, 2
addvar VAR_TEMP_3, 1
compare VAR_TEMP_3, 1
goto_if_eq EventScript_1C5146
setvar VAR_TEMP_3, 0
EventScript_1C5146:
copyvar VAR_0x8006, VAR_TEMP_3
special sub_815D9E8
msgbox gStringVar4
closemessage
goto EventScript_1C5219
EventScript_1C515C:: @ 81C515C
switch VAR_TEMP_1
case 0, EventScript_1C5182
case 1, EventScript_1C51AD
case 2, EventScript_1C51D8
EventScript_1C5182:
setvar VAR_0x8004, 19
special sub_815D9E8
applymovement 4, Movement_ExclamationMark
waitmovement 0
applymovement 4, Movement_Delay48
waitmovement 0
applymovement 4, Movement_1C5546
waitmovement 0
goto EventScript_1C51FE
EventScript_1C51AD:: @ 81C51AD
setvar VAR_0x8004, 19
special sub_815D9E8
applymovement 2, Movement_ExclamationMark
waitmovement 0
applymovement 2, Movement_Delay48
waitmovement 0
applymovement 2, Movement_1C5549
waitmovement 0
goto EventScript_1C51FE
EventScript_1C51D8:: @ 81C51D8
setvar VAR_0x8004, 19
special sub_815D9E8
applymovement 3, Movement_ExclamationMark
waitmovement 0
applymovement 3, Movement_Delay48
waitmovement 0
applymovement 3, Movement_1C5542
waitmovement 0
EventScript_1C51FE:
setvar VAR_0x8004, 1
setvar VAR_0x8005, 2
copyvar VAR_0x8006, VAR_TEMP_1
special sub_815D9E8
msgbox gStringVar4
closemessage
EventScript_1C5219:
setvar VAR_0x8004, 2
setvar VAR_0x8005, 0
special sub_815D9E8
waitstate
switch VAR_RESULT
case 1, EventScript_1C524D
case 2, EventScript_1C52E0
case 3, EventScript_1C52E0
EventScript_1C524D:
setvar VAR_0x8004, 3
setvar VAR_0x8005, 0
special sub_815D9E8
switch VAR_RESULT
case 0, EventScript_1C52D7
case 1, EventScript_1C52BA
case 2, EventScript_1C5280
EventScript_1C5280:
switch VAR_TEMP_1
case 0, EventScript_1C52A6
case 1, EventScript_1C52B0
case 2, EventScript_1C52D0
EventScript_1C52A6:
addvar VAR_TEMP_1, 1
goto EventScript_1C515C
EventScript_1C52B0:: @ 81C52B0
addvar VAR_TEMP_1, 1
goto EventScript_1C515C
EventScript_1C52BA:: @ 81C52BA
applymovement 5, Movement_1C554C
waitmovement 0
applymovement 2, Movement_1C5550
goto EventScript_1C52D7
EventScript_1C52D0:: @ 81C52D0
applymovement 3, Movement_1C554D
EventScript_1C52D7:
setvar VAR_0x8004, 4
special sub_815D9E8
end
EventScript_1C52E0:: @ 81C52E0
special HealPlayerParty
setvar VAR_0x8004, 11
special sub_815D9E8
warp MAP_SEVEN_ISLAND_TRAINER_TOWER_LOBBY, 255, 9, 7
waitstate
EventScript_1C52F4:: @ 81C52F4
setvar VAR_0x8004, 3
setvar VAR_0x8005, 0
special sub_815D9E8
switch VAR_RESULT
case 0, EventScript_1C5327
case 1, EventScript_1C5327
case 2, EventScript_1C5331
EventScript_1C5327:
setvar VAR_0x8006, 0
goto EventScript_1C5391
EventScript_1C5331:: @ 81C5331
setvar VAR_0x8006, 1
goto EventScript_1C5391
EventScript_1C533B:: @ 81C533B
setvar VAR_0x8004, 3
setvar VAR_0x8005, 0
special sub_815D9E8
switch VAR_RESULT
case 0, EventScript_1C536E
case 1, EventScript_1C536E
case 2, EventScript_1C5378
EventScript_1C536E:
setvar VAR_0x8006, 0
goto EventScript_1C5391
EventScript_1C5378:: @ 81C5378
setvar VAR_0x8006, 2
goto EventScript_1C5391
EventScript_1C5382:: @ 81C5382
setvar VAR_0x8006, 0
goto EventScript_1C5391
EventScript_1C538C:: @ 81C538C
setvar VAR_0x8006, 1
EventScript_1C5391:
setvar VAR_0x8004, 1
setvar VAR_0x8005, 5
special sub_815D9E8
lock
faceplayer
msgbox gStringVar4
release
return
EventScript_1C53AA:: @ 81C53AA
lock
faceplayer
setvar VAR_0x8004, 7
special sub_815D9E8
switch VAR_RESULT
case 0, EventScript_1C53DA
case 1, EventScript_1C53E2
case 2, EventScript_1C5492
EventScript_1C53DA:
msgbox Text_17CA5A
EventScript_1C53E2:
setvar VAR_0x8004, 8
special sub_815D9E8
switch VAR_RESULT
case 0, EventScript_1C5410
case 1, EventScript_1C543A
case 2, EventScript_1C544F
EventScript_1C5410:
msgbox Text_17CB09
textcolor 3
playfanfare MUS_FANFA1
message Text_ObtainedTheX
waitfanfare
waitmessage
getstdstring 2, 24
msgbox Text_PutItemAway
call EventScript_1A6675
goto EventScript_1C544F
EventScript_1C543A:: @ 81C543A
msgbox Text_17CB09
msgbox Text_BagIsFull
goto EventScript_1C544F
EventScript_1C544F:: @ 81C544F
setvar VAR_0x8004, 9
special sub_815D9E8
switch VAR_RESULT
case 0, EventScript_1C547D
case 1, EventScript_1C548A
case 2, EventScript_1C5492
EventScript_1C547D:
msgbox Text_17CB1A
goto EventScript_1C5492
EventScript_1C548A:: @ 81C548A
msgbox Text_17CBC0
EventScript_1C5492:
msgbox Text_17CBF5
release
return
EventScript_1C549C:: @ 81C549C
lockall
setvar VAR_0x8004, 13
special sub_815D9E8
msgbox Text_17CC56
releaseall
end
SevenIsland_TrainerTower_2F_EventScript_1C54AF:: @ 81C54AF
SevenIsland_TrainerTower_4F_EventScript_1C54AF:: @ 81C54AF
SevenIsland_TrainerTower_6F_EventScript_1C54AF:: @ 81C54AF
SevenIsland_TrainerTower_8F_EventScript_1C54AF:: @ 81C54AF
SevenIsland_TrainerTower_5F_EventScript_1C54AF:: @ 81C54AF
SevenIsland_TrainerTower_7F_EventScript_1C54AF:: @ 81C54AF
SevenIsland_TrainerTower_3F_EventScript_1C54AF:: @ 81C54AF
SevenIsland_TrainerTower_1F_EventScript_1C54AF:: @ 81C54AF
goto EventScript_1C508F
SevenIsland_TrainerTower_2F_EventScript_1C54B4:: @ 81C54B4
SevenIsland_TrainerTower_4F_EventScript_1C54B4:: @ 81C54B4
SevenIsland_TrainerTower_6F_EventScript_1C54B4:: @ 81C54B4
SevenIsland_TrainerTower_8F_EventScript_1C54B4:: @ 81C54B4
SevenIsland_TrainerTower_5F_EventScript_1C54B4:: @ 81C54B4
SevenIsland_TrainerTower_7F_EventScript_1C54B4:: @ 81C54B4
SevenIsland_TrainerTower_3F_EventScript_1C54B4:: @ 81C54B4
SevenIsland_TrainerTower_1F_EventScript_1C54B4:: @ 81C54B4
setvar VAR_TEMP_3, 0
setvar VAR_0x8004, 16
special sub_815D9E8
compare VAR_RESULT, 0
goto_if_ne EventScript_1C5528
setvar VAR_0x8004, 19
special sub_815D9E8
applymovement 2, Movement_ExclamationMark
waitmovement 0
applymovement 2, Movement_Delay48
goto EventScript_1C551B
SevenIsland_TrainerTower_2F_EventScript_1C54EA:: @ 81C54EA
SevenIsland_TrainerTower_4F_EventScript_1C54EA:: @ 81C54EA
SevenIsland_TrainerTower_6F_EventScript_1C54EA:: @ 81C54EA
SevenIsland_TrainerTower_8F_EventScript_1C54EA:: @ 81C54EA
SevenIsland_TrainerTower_5F_EventScript_1C54EA:: @ 81C54EA
SevenIsland_TrainerTower_7F_EventScript_1C54EA:: @ 81C54EA
SevenIsland_TrainerTower_3F_EventScript_1C54EA:: @ 81C54EA
SevenIsland_TrainerTower_1F_EventScript_1C54EA:: @ 81C54EA
setvar VAR_TEMP_3, 1
setvar VAR_0x8004, 16
special sub_815D9E8
compare VAR_RESULT, 0
goto_if_ne EventScript_1C5528
setvar VAR_0x8004, 19
special sub_815D9E8
applymovement 5, Movement_ExclamationMark
waitmovement 0
applymovement 5, Movement_Delay48
EventScript_1C551B:
waitmovement 0
setvar VAR_TEMP_F, 1
goto EventScript_1C508F
EventScript_1C5528:: @ 81C5528
lockall
playse SE_PINPON
msgbox Text_17CC73
closemessage
applymovement OBJ_EVENT_ID_PLAYER, Movement_1C5544
waitmovement 0
releaseall
end
Movement_1C5541:
walk_left
Movement_1C5542:: @ 81C5542
walk_left
walk_left
Movement_1C5544:
walk_left
step_end
Movement_1C5546:: @ 81C5546
walk_up
walk_up
step_end
Movement_1C5549:: @ 81C5549
walk_down
walk_down
step_end
Movement_1C554C:: @ 81C554C
walk_right
Movement_1C554D:
walk_up
face_down
step_end
Movement_1C5550:: @ 81C5550
face_down
step_end
|