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
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
|
SlateportCity_MapScripts:: @ 814BA36
map_script MAP_SCRIPT_ON_TRANSITION, SlateportCity_MapScript1_14BA3C
.byte 0
SlateportCity_MapScript1_14BA3C:: @ 814BA3C
.ifdef SAPPHIRE
setvar VAR_OBJ_GFX_ID_0, OBJ_EVENT_GFX_AQUA_MEMBER_F
setvar VAR_OBJ_GFX_ID_1, OBJ_EVENT_GFX_AQUA_MEMBER_M
.else
setvar VAR_OBJ_GFX_ID_0, OBJ_EVENT_GFX_MAGMA_MEMBER_F
setvar VAR_OBJ_GFX_ID_1, OBJ_EVENT_GFX_MAGMA_MEMBER_M
.endif
setvar VAR_SLATEPORT_MUSEUM_1F_STATE, 0
call SlateportCity_EventScript_14BA5C
compare VAR_SLATEPORT_STATE, 1
call_if_eq SlateportCity_EventScript_14BA68
end
SlateportCity_EventScript_14BA5C:: @ 814BA5C
setflag FLAG_VISITED_SLATEPORT_CITY
setvar VAR_LINK_CONTEST_ROOM_STATE, 0
setflag FLAG_HIDE_CONTEST_REPORTER_SLATEPORT
return
SlateportCity_EventScript_14BA68:: @ 814BA68
setobjectxyperm 11, 28, 13
setobjectxyperm 7, 25, 13
setobjectxyperm 3, 25, 14
setobjectxyperm 6, 27, 16
setobjectxyperm 8, 28, 16
setobjectxyperm 1, 29, 16
setobjectxyperm 2, 31, 14
setobjectmovementtype 11, 8
setobjectmovementtype 7, 18
setobjectmovementtype 3, 16
setobjectmovementtype 6, 7
setobjectmovementtype 8, 7
setobjectmovementtype 1, 7
setobjectmovementtype 2, 9
return
SlateportCity_EventScript_14BAB6:: @ 814BAB6
lock
faceplayer
message SlateportCity_Text_164642
waitmessage
pokemart SlateportCity_Items1
msgbox Text_PleaseComeAgain, MSGBOX_DEFAULT
release
end
.align 2
SlateportCity_Items1:: @ 814BAD0
.2byte ITEM_PROTEIN
.2byte ITEM_IRON
.2byte ITEM_CARBOS
.2byte ITEM_ZINC
.2byte ITEM_CALCIUM
.2byte ITEM_HP_UP
.2byte ITEM_NONE
release
end
SlateportCity_EventScript_14BAE0:: @ 814BAE0
lock
faceplayer
bufferleadmonspeciesname 0
msgbox SlateportCity_Text_164682, MSGBOX_DEFAULT
specialvar VAR_RESULT, LeadMonHasEffortRibbon
compare VAR_RESULT, 1
call_if_eq SlateportCity_EventScript_14BB35
specialvar VAR_RESULT, ScrSpecial_AreLeadMonEVsMaxedOut
compare VAR_RESULT, 0
call_if_eq SlateportCity_EventScript_14BB2B
msgbox SlateportCity_Text_164691, MSGBOX_DEFAULT
playfanfare MUS_OBTAIN_ITEM
message SlateportCity_Text_1646DD
waitfanfare
waitmessage
msgbox SlateportCity_Text_1646FC, MSGBOX_DEFAULT
special GivLeadMonEffortRibbon
release
end
SlateportCity_EventScript_14BB2B:: @ 814BB2B
msgbox SlateportCity_Text_16471C, MSGBOX_DEFAULT
release
end
SlateportCity_EventScript_14BB35:: @ 814BB35
msgbox SlateportCity_Text_164775, MSGBOX_DEFAULT
release
end
SlateportCity_EventScript_14BB3F:: @ 814BB3F
lock
faceplayer
compare VAR_SLATEPORT_STATE, 1
call_if_eq SlateportCity_EventScript_14BB56
msgbox SlateportCity_Text_164814, MSGBOX_DEFAULT
release
end
SlateportCity_EventScript_14BB56:: @ 814BB56
msgbox SlateportCity_Text_165376, MSGBOX_DEFAULT
release
end
SlateportCity_EventScript_14BB60:: @ 814BB60
lock
faceplayer
compare VAR_SLATEPORT_STATE, 1
call_if_eq SlateportCity_EventScript_14BB77
msgbox SlateportCity_Text_1648A0, MSGBOX_DEFAULT
release
end
SlateportCity_EventScript_14BB77:: @ 814BB77
msgbox SlateportCity_Text_165222, MSGBOX_DEFAULT
release
end
SlateportCity_EventScript_14BB81:: @ 814BB81
lock
faceplayer
compare VAR_SLATEPORT_STATE, 1
call_if_eq SlateportCity_EventScript_14BBA1
goto_if_set FLAG_RECEIVED_SECRET_POWER, SlateportCity_EventScript_14BBAB
msgbox SlateportCity_Text_164937, MSGBOX_DEFAULT
release
end
SlateportCity_EventScript_14BBA1:: @ 814BBA1
msgbox SlateportCity_Text_1652A0, MSGBOX_DEFAULT
release
end
SlateportCity_EventScript_14BBAB:: @ 814BBAB
msgbox SlateportCity_Text_164995, MSGBOX_DEFAULT
release
end
SlateportCity_EventScript_14BBB5:: @ 814BBB5
lock
faceplayer
compare VAR_SLATEPORT_STATE, 1
call_if_eq SlateportCity_EventScript_14BBCC
msgbox SlateportCity_Text_164A30, MSGBOX_DEFAULT
release
end
SlateportCity_EventScript_14BBCC:: @ 814BBCC
msgbox SlateportCity_Text_16530A, MSGBOX_DEFAULT
release
end
SlateportCity_EventScript_14BBD6:: @ 814BBD6
compare VAR_SLATEPORT_STATE, 1
goto_if_eq SlateportCity_EventScript_14BBEA
msgbox SlateportCity_Text_164AA9, MSGBOX_NPC
end
SlateportCity_EventScript_14BBEA:: @ 814BBEA
msgbox SlateportCity_Text_1653D1, MSGBOX_SIGN
end
SlateportCity_EventScript_14BBF3:: @ 814BBF3
lock
faceplayer
compare VAR_SLATEPORT_STATE, 1
call_if_eq SlateportCity_EventScript_14BC0A
msgbox SlateportCity_Text_164B34, MSGBOX_DEFAULT
release
end
SlateportCity_EventScript_14BC0A:: @ 814BC0A
msgbox SlateportCity_Text_1653F4, MSGBOX_DEFAULT
release
end
SlateportCity_EventScript_14BC14:: @ 814BC14
lock
faceplayer
goto_if_set FLAG_DOCK_REJECTED_DEVON_GOODS, SlateportCity_EventScript_14BC29
msgbox SlateportCity_Text_164BBF, MSGBOX_DEFAULT
release
end
SlateportCity_EventScript_14BC29:: @ 814BC29
msgbox SlateportCity_Text_164BEA, MSGBOX_DEFAULT
release
end
SlateportCity_EventScript_14BC33:: @ 814BC33
msgbox SlateportCity_Text_165856, MSGBOX_SIGN
end
SlateportCity_EventScript_14BC3C:: @ 814BC3C
lockall
goto_if_set FLAG_SYS_GAME_CLEAR, SlateportCity_EventScript_14BC63
goto_if_set FLAG_BADGE07_GET, SlateportCity_EventScript_14BC59
msgbox SlateportCity_Text_1658A0, MSGBOX_DEFAULT
releaseall
end
SlateportCity_EventScript_14BC59:: @ 814BC59
msgbox SlateportCity_Text_1658E8, MSGBOX_DEFAULT
releaseall
end
SlateportCity_EventScript_14BC63:: @ 814BC63
msgbox SlateportCity_Text_165952, MSGBOX_DEFAULT
releaseall
end
SlateportCity_EventScript_14BC6D:: @ 814BC6D
msgbox SlateportCity_Text_1659B3, MSGBOX_SIGN
end
SlateportCity_EventScript_14BC76:: @ 814BC76
msgbox SlateportCity_Text_1659E3, MSGBOX_SIGN
end
SlateportCity_EventScript_14BC7F:: @ 814BC7F
msgbox SlateportCity_Text_165A17, MSGBOX_SIGN
end
SlateportCity_EventScript_14BC88:: @ 814BC88
msgbox SlateportCity_Text_165A57, MSGBOX_SIGN
end
SlateportCity_EventScript_14BC91:: @ 814BC91
lockall
goto_if_set FLAG_SYS_GAME_CLEAR, SlateportCity_EventScript_14BCA5
msgbox SlateportCity_Text_165A8B, MSGBOX_DEFAULT
releaseall
end
SlateportCity_EventScript_14BCA5:: @ 814BCA5
msgbox SlateportCity_Text_165B02, MSGBOX_DEFAULT
releaseall
end
SlateportCity_EventScript_14BCAF:: @ 814BCAF
msgbox SlateportCity_Text_165B48, MSGBOX_SIGN
end
SlateportCity_EventScript_14BCB8:: @ 814BCB8
lock
faceplayer
compare VAR_SLATEPORT_STATE, 1
call_if_eq SlateportCity_EventScript_14BCCF
msgbox SlateportCity_Text_164F9E, MSGBOX_DEFAULT
release
end
SlateportCity_EventScript_14BCCF:: @ 814BCCF
msgbox SlateportCity_Text_164F9E, MSGBOX_DEFAULT
release
end
SlateportCity_EventScript_14BCD9:: @ 814BCD9
msgbox SlateportCity_Text_164FFC, MSGBOX_NPC
end
SlateportCity_EventScript_14BCE2:: @ 814BCE2
msgbox SlateportCity_Text_164E85, MSGBOX_NPC
end
SlateportCity_EventScript_14BCEB:: @ 814BCEB
msgbox SlateportCity_Text_164EDB, MSGBOX_NPC
end
SlateportCity_EventScript_14BCF4:: @ 814BCF4
msgbox SlateportCity_Text_164F62, MSGBOX_NPC
end
SlateportCity_EventScript_14BCFD:: @ 814BCFD
msgbox SlateportCity_Text_16507C, MSGBOX_NPC
end
SlateportCity_EventScript_14BD06:: @ 814BD06
lock
faceplayer
msgbox SlateportCity_Text_1650F1, MSGBOX_YESNO
compare VAR_RESULT, YES
call_if_eq SlateportCity_EventScript_14BD28
compare VAR_RESULT, NO
call_if_eq SlateportCity_EventScript_14BD31
release
end
SlateportCity_EventScript_14BD28:: @ 814BD28
msgbox SlateportCity_Text_16511E, MSGBOX_DEFAULT
return
SlateportCity_EventScript_14BD31:: @ 814BD31
msgbox SlateportCity_Text_1651A1, MSGBOX_DEFAULT
return
SlateportCity_EventScript_14BD3A:: @ 814BD3A
lock
faceplayer
msgbox SlateportCity_Text_164C64, MSGBOX_DEFAULT
closemessage
applymovement 5, Common_Movement_FaceOriginalDirection
waitmovement 0
release
end
SlateportCity_EventScript_14BD51:: @ 814BD51
lock
faceplayer
msgbox SlateportCity_Text_164C9F, MSGBOX_DEFAULT
closemessage
applymovement 19, Common_Movement_FaceOriginalDirection
waitmovement 0
release
end
SlateportCity_EventScript_14BD68:: @ 814BD68
lock
faceplayer
msgbox SlateportCity_Text_164CE8, MSGBOX_DEFAULT
closemessage
applymovement 20, Common_Movement_FaceOriginalDirection
waitmovement 0
release
end
SlateportCity_EventScript_14BD7F:: @ 814BD7F
lock
faceplayer
msgbox SlateportCity_Text_164D2B, MSGBOX_DEFAULT
closemessage
applymovement 27, Common_Movement_FaceOriginalDirection
waitmovement 0
release
end
SlateportCity_EventScript_14BD96:: @ 814BD96
lock
faceplayer
msgbox SlateportCity_Text_164D92, MSGBOX_DEFAULT
closemessage
applymovement 28, Common_Movement_FaceOriginalDirection
waitmovement 0
release
end
SlateportCity_EventScript_14BDAD:: @ 814BDAD
lock
faceplayer
msgbox SlateportCity_Text_164DD5, MSGBOX_DEFAULT
closemessage
applymovement 29, Common_Movement_FaceOriginalDirection
waitmovement 0
release
end
SlateportCity_EventScript_14BDC4:: @ 814BDC4
lock
faceplayer
msgbox SlateportCity_Text_164DF4, MSGBOX_DEFAULT
closemessage
applymovement 30, Common_Movement_FaceOriginalDirection
waitmovement 0
release
end
SlateportCity_EventScript_14BDDB:: @ 814BDDB
lock
faceplayer
msgbox SlateportCity_Text_164E46, MSGBOX_DEFAULT
closemessage
applymovement 31, Common_Movement_FaceOriginalDirection
waitmovement 0
release
end
SlateportCity_EventScript_14BDF2:: @ 814BDF2
lock
faceplayer
message Text_HowMayIServeYou
waitmessage
pokemartdecoration SlateportCity_Decorations1
msgbox Text_PleaseComeAgain, MSGBOX_DEFAULT
release
end
.align 2
SlateportCity_Decorations1:: @ 814BE0C
.2byte DECOR_AZURILL_DOLL
.2byte DECOR_MARILL_DOLL
.2byte DECOR_SKITTY_DOLL
.2byte DECOR_NONE
release
end
SlateportCity_EventScript_14BE16:: @ 814BE16
msgbox SlateportCity_Text_1A116E, MSGBOX_DEFAULT
release
end
SlateportCity_EventScript_14BE20:: @ 814BE20
lock
faceplayer
goto_if_unset FLAG_RECEIVED_SECRET_POWER, SlateportCity_EventScript_14BE16
message Text_HowMayIServeYou
waitmessage
pokemartdecoration SlateportCity_Decorations2
msgbox Text_PleaseComeAgain, MSGBOX_DEFAULT
release
end
.align 2
SlateportCity_Decorations2:: @ 814BE40
.2byte DECOR_RED_BRICK
.2byte DECOR_BLUE_BRICK
.2byte DECOR_YELLOW_BRICK
.2byte DECOR_RED_BALLOON
.2byte DECOR_BLUE_BALLOON
.2byte DECOR_YELLOW_BALLOON
.2byte DECOR_C_LOW_NOTE_MAT
.2byte DECOR_D_NOTE_MAT
.2byte DECOR_E_NOTE_MAT
.2byte DECOR_F_NOTE_MAT
.2byte DECOR_G_NOTE_MAT
.2byte DECOR_A_NOTE_MAT
.2byte DECOR_B_NOTE_MAT
.2byte DECOR_C_HIGH_NOTE_MAT
.2byte DECOR_NONE
release
end
@ 814BE60
lock
faceplayer
goto_if_unset FLAG_RECEIVED_SECRET_POWER, SlateportCity_EventScript_14BE16
message Text_HowMayIServeYou
waitmessage
pokemartdecoration SlateportCity_Decorations3
msgbox Text_PleaseComeAgain, MSGBOX_DEFAULT
release
end
.align 2
SlateportCity_Decorations3:: @ 814BE80
.2byte DECOR_MUD_BALL
.2byte DECOR_SLIDE
.2byte DECOR_FENCE_LENGTH
.2byte DECOR_FENCE_WIDTH
.2byte DECOR_TIRE
.2byte DECOR_BREAKABLE_DOOR
.2byte DECOR_SOLID_BOARD
.2byte DECOR_STAND
.2byte DECOR_TV
.2byte DECOR_ROUND_TV
.2byte DECOR_CUTE_TV
.2byte DECOR_NONE
release
end
SlateportCity_EventScript_14BE9A:: @ 814BE9A
lock
faceplayer
message Text_HowMayIServeYou
waitmessage
pokemart SlateportCity_Items2
msgbox Text_PleaseComeAgain, MSGBOX_DEFAULT
release
end
.align 2
SlateportCity_Items2:: @ 814BEB4
.2byte ITEM_TM10_HIDDEN_POWER
.2byte ITEM_TM43_SECRET_POWER
.2byte ITEM_NONE
release
end
SlateportCity_EventScript_14BEBC:: @ 814BEBC
lockall
msgbox SlateportCity_Text_165498, MSGBOX_DEFAULT
msgbox SlateportCity_Text_1654E0, MSGBOX_DEFAULT
closemessage
applymovement 10, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
delay 10
applymovement 9, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
delay 25
applymovement 11, SlateportCity_Movement_14C000
applymovement OBJ_EVENT_ID_PLAYER, SlateportCity_Movement_14C00E
applymovement 10, SlateportCity_Movement_14BFDD
applymovement 9, SlateportCity_Movement_14BFEA
waitmovement 0
removeobject 10
removeobject 9
msgbox SlateportCity_Text_16558D, MSGBOX_DEFAULT
applymovement 11, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
msgbox SlateportCity_Text_1655E7, MSGBOX_DEFAULT
playbgm MUS_EVIL_TEAM, FALSE
msgbox SlateportCity_Text_1656BC, MSGBOX_DEFAULT
applymovement 6, Common_Movement_WalkInPlaceFastestLeft
applymovement 1, Common_Movement_WalkInPlaceFastestLeft
applymovement 7, SlateportCity_Movement_14BFCD
applymovement 3, Common_Movement_QuestionMark
applymovement 2, SlateportCity_Movement_14BFD5
waitmovement 0
applymovement 11, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
msgbox SlateportCity_Text_16578F, MSGBOX_DEFAULT
playse SE_PIN
applymovement 11, Common_Movement_ExclamationMark
waitmovement 0
applymovement 11, Common_Movement_Delay48
waitmovement 0
msgbox SlateportCity_Text_1657FA, MSGBOX_DEFAULT
applymovement 11, Common_Movement_FacePlayer
waitmovement 0
msgbox SlateportCity_Text_16583A, MSGBOX_DEFAULT
closemessage
applymovement 11, SlateportCity_Movement_14BFFB
applymovement OBJ_EVENT_ID_PLAYER, SlateportCity_Movement_14C008
waitmovement 0
removeobject 11
clearflag FLAG_HIDE_STERN_SLATEPORT_HARBOR
clearflag FLAG_HIDE_SUBMARINE_SHADOW_SLATEPORT_HARBOR
clearflag FLAG_HIDE_GRUNT_1_SLATEPORT_HARBOR
clearflag FLAG_HIDE_GRUNT_2_SLATEPORT_HARBOR
setvar VAR_SLATEPORT_STATE, 2
warp MAP_SLATEPORT_CITY_HARBOR, 255, 11, 14
waitstate
releaseall
end
SlateportCity_Movement_14BFCD:: @ 814BFCD
delay_16
delay_16
emote_question_mark
walk_in_place_fastest_right
delay_16
delay_16
walk_in_place_fastest_left
step_end
SlateportCity_Movement_14BFD5:: @ 814BFD5
emote_question_mark
walk_in_place_fastest_up
delay_16
walk_in_place_fastest_down
delay_16
delay_16
walk_in_place_fastest_left
step_end
SlateportCity_Movement_14BFDD:: @ 814BFDD
delay_16
walk_left
walk_left
walk_down
walk_left
walk_left
walk_left
walk_left
walk_left
walk_left
walk_left
walk_left
step_end
SlateportCity_Movement_14BFEA:: @ 814BFEA
walk_down
walk_left
walk_left
walk_left
walk_down
walk_left
walk_left
walk_left
walk_left
walk_left
walk_left
walk_left
walk_left
step_end
@ 814BFF8
walk_down
walk_in_place_fastest_up
step_end
SlateportCity_Movement_14BFFB:: @ 814BFFB
walk_right
walk_up
walk_up
set_invisible
step_end
SlateportCity_Movement_14C000:: @ 814C000
delay_16
delay_16
delay_16
delay_16
delay_16
walk_down
walk_left
step_end
SlateportCity_Movement_14C008:: @ 814C008
walk_in_place_fastest_right
delay_16
delay_16
walk_right
walk_up
step_end
SlateportCity_Movement_14C00E:: @ 814C00E
delay_16
delay_16
delay_16
delay_16
delay_16
delay_16
delay_16
walk_in_place_fastest_down
step_end
SlateportCity_EventScript_14C017:: @ 814C017
msgbox SlateportCity_Text_165425, MSGBOX_SIGN
end
SlateportCity_EventScript_14C020:: @ 814C020
msgbox SlateportCity_Text_165458, MSGBOX_SIGN
end
SlateportCity_EventScript_14C029:: @ 814C029
msgbox SlateportCity_Text_1647A7, MSGBOX_NPC
end
|