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
|
object_const_def
const POKECENTER2F_TRADE_RECEPTIONIST
const POKECENTER2F_BATTLE_RECEPTIONIST
const POKECENTER2F_TIME_CAPSULE_RECEPTIONIST
const POKECENTER2F_OFFICER
Pokecenter2F_MapScripts:
def_scene_scripts
scene_script .Scene0 ; SCENE_DEFAULT
scene_script .Scene1 ; SCENE_POKECENTER2F_LEAVE_TRADE_CENTER
scene_script .Scene2 ; SCENE_POKECENTER2F_LEAVE_COLOSSEUM
scene_script .Scene3 ; SCENE_POKECENTER2F_LEAVE_TIME_CAPSULE
def_callbacks
.Scene0:
special CheckMysteryGift
ifequal $0, .Scene0Done
clearevent EVENT_MYSTERY_GIFT_DELIVERY_GUY
checkevent EVENT_TEMPORARY_UNTIL_MAP_RELOAD_2
iftrue .Scene0Done
sdefer Pokecenter2F_AppearMysteryGiftDeliveryGuy
.Scene0Done:
end
.Scene1:
sdefer Script_LeftCableTradeCenter
end
.Scene2:
sdefer Script_LeftCableColosseum
end
.Scene3:
sdefer Script_LeftTimeCapsule
end
Pokecenter2F_AppearMysteryGiftDeliveryGuy:
appear POKECENTER2F_OFFICER
setevent EVENT_TEMPORARY_UNTIL_MAP_RELOAD_2
end
Script_TradeCenterClosed:
faceplayer
opentext
writetext Text_TradeRoomClosed
waitbutton
closetext
end
Script_BattleRoomClosed:
faceplayer
opentext
writetext Text_BattleRoomClosed
waitbutton
closetext
end
LinkReceptionistScript_Trade:
checkevent EVENT_GAVE_MYSTERY_EGG_TO_ELM
iffalse Script_TradeCenterClosed
special SetBitsForLinkTradeRequest
opentext
writetext Text_TradeReceptionistIntro
yesorno
iffalse .AbortLink
writetext Text_PleaseWait
special WaitForLinkedFriend
iffalse .FriendNotReady
writetext Text_MustSaveGame
yesorno
iffalse .DidNotSave
special TryQuickSave
iffalse .DidNotSave
writetext Text_PleaseWait
special CheckLinkTimeout_Receptionist
iffalse .LinkTimedOut
readmem wOtherPlayerLinkMode
iffalse .LinkedToFirstGen
special CheckBothSelectedSameRoom
iffalse .IncompatibleRooms
writetext Text_PleaseComeIn
waitbutton
closetext
applymovementlasttalked Pokecenter2FMovementData_ReceptionistWalksUpAndLeft_LookRight
applymovement PLAYER, Pokecenter2FMovementData_PlayerTakesThreeStepsUp
warpcheck
end
.FriendNotReady:
special WaitForOtherPlayerToExit
writetext YourFriendIsNotReadyText
closetext
end
.LinkedToFirstGen:
special FailedLinkToPast
writetext Text_CantLinkToThePast
special CloseLink
closetext
end
.IncompatibleRooms:
writetext Text_IncompatibleRooms
special CloseLink
closetext
end
.LinkTimedOut:
writetext Text_LinkTimedOut
sjump .AbortLink
.DidNotSave:
writetext Text_PleaseComeAgain
.AbortLink:
special WaitForOtherPlayerToExit
closetext
end
LinkReceptionistScript_Battle:
checkevent EVENT_GAVE_MYSTERY_EGG_TO_ELM
iffalse Script_BattleRoomClosed
special SetBitsForBattleRequest
opentext
writetext Text_BattleReceptionistIntro
yesorno
iffalse .AbortLink
writetext Text_PleaseWait
special WaitForLinkedFriend
iffalse .FriendNotReady
writetext Text_MustSaveGame
yesorno
iffalse .DidNotSave
special TryQuickSave
iffalse .DidNotSave
writetext Text_PleaseWait
special CheckLinkTimeout_Receptionist
iffalse .LinkTimedOut
readmem wOtherPlayerLinkMode
iffalse .LinkedToFirstGen
special CheckBothSelectedSameRoom
iffalse .IncompatibleRooms
writetext Text_PleaseComeIn
waitbutton
closetext
applymovementlasttalked Pokecenter2FMovementData_ReceptionistWalksUpAndLeft_LookRight
applymovement PLAYER, Pokecenter2FMovementData_PlayerTakesThreeStepsUp
warpcheck
end
.FriendNotReady:
special WaitForOtherPlayerToExit
writetext YourFriendIsNotReadyText
closetext
end
.LinkedToFirstGen:
special FailedLinkToPast
writetext Text_CantLinkToThePast
special CloseLink
closetext
end
.IncompatibleRooms:
writetext Text_IncompatibleRooms
special CloseLink
closetext
end
.LinkTimedOut:
writetext Text_LinkTimedOut
sjump .AbortLink
.DidNotSave:
writetext Text_PleaseComeAgain
.AbortLink:
special WaitForOtherPlayerToExit
closetext
end
Script_TimeCapsuleClosed:
faceplayer
opentext
writetext Text_TimeCapsuleClosed
waitbutton
closetext
end
LinkReceptionistScript_TimeCapsule:
checkevent EVENT_MET_BILL
iftrue Script_TimeCapsuleClosed
checkflag ENGINE_TIME_CAPSULE
iftrue Script_TimeCapsuleClosed
special SetBitsForTimeCapsuleRequest
faceplayer
opentext
writetext Text_TimeCapsuleReceptionistIntro
yesorno
iffalse .Cancel
special CheckTimeCapsuleCompatibility
ifequal $1, .MonTooNew
ifequal $2, .MonMoveTooNew
ifequal $3, .MonHasMail
writetext Text_PleaseWait
special WaitForLinkedFriend
iffalse .FriendNotReady
writetext Text_MustSaveGame
yesorno
iffalse .DidNotSave
special TryQuickSave
iffalse .DidNotSave
writetext Text_PleaseWait
special CheckLinkTimeout_Receptionist
iffalse .LinkTimedOut
readmem wOtherPlayerLinkMode
iffalse .OK
special CheckBothSelectedSameRoom
writetext Text_IncompatibleRooms
special CloseLink
closetext
end
.OK:
special EnterTimeCapsule
writetext Text_PleaseComeIn
waitbutton
closetext
readvar VAR_FACING
ifequal LEFT, .FacingLeft
ifequal RIGHT, .FacingRight
applymovementlasttalked Pokecenter2FMovementData_ReceptionistStepsLeftLooksDown
applymovement PLAYER, Pokecenter2FMovementData_PlayerTakesTwoStepsUp
warpcheck
end
.FriendNotReady:
special WaitForOtherPlayerToExit
writetext YourFriendIsNotReadyText
closetext
end
.LinkTimedOut:
writetext Text_LinkTimedOut
sjump .Cancel
.DidNotSave:
writetext Text_PleaseComeAgain
.Cancel:
special WaitForOtherPlayerToExit
closetext
end
.MonTooNew:
writetext Text_RejectNewMon
closetext
end
.MonMoveTooNew:
writetext Text_RejectMonWithNewMove
closetext
end
.MonHasMail:
writetext Text_RejectMonWithMail
closetext
end
.FacingLeft:
applymovementlasttalked Pokecenter2FMovementData_ReceptionistStepsLeftLooksDown
applymovement PLAYER, Pokecenter2FMovementData_PlayerWalksLeftAndUp
warpcheck
end
.FacingRight:
applymovementlasttalked Pokecenter2FMovementData_ReceptionistStepsRightLooksDown
applymovement PLAYER, Pokecenter2FMovementData_PlayerWalksRightAndUp
warpcheck
end
Script_LeftCableTradeCenter:
special WaitForOtherPlayerToExit
applymovement POKECENTER2F_TRADE_RECEPTIONIST, Pokecenter2FMovementData_ReceptionistStepsRightLooksDown_3
applymovement PLAYER, Pokecenter2FMovementData_PlayerTakesThreeStepsDown
applymovement POKECENTER2F_TRADE_RECEPTIONIST, Pokecenter2FMovementData_ReceptionistStepsRightAndDown
setscene SCENE_DEFAULT
setmapscene TRADE_CENTER, SCENE_DEFAULT
end
Script_LeftCableColosseum:
special WaitForOtherPlayerToExit
applymovement POKECENTER2F_BATTLE_RECEPTIONIST, Pokecenter2FMovementData_ReceptionistStepsRightLooksDown_3
applymovement PLAYER, Pokecenter2FMovementData_PlayerTakesThreeStepsDown
applymovement POKECENTER2F_BATTLE_RECEPTIONIST, Pokecenter2FMovementData_ReceptionistStepsRightAndDown
setscene SCENE_DEFAULT
setmapscene COLOSSEUM, SCENE_DEFAULT
end
Script_LeftTimeCapsule:
special WaitForOtherPlayerToExit
applymovement POKECENTER2F_TIME_CAPSULE_RECEPTIONIST, Pokecenter2FMovementData_ReceptionistStepsLeftLooksRight
applymovement PLAYER, Pokecenter2FMovementData_PlayerTakesTwoStepsDown
applymovement POKECENTER2F_TIME_CAPSULE_RECEPTIONIST, Pokecenter2FMovementData_ReceptionistStepsRightLooksDown_2
setscene SCENE_DEFAULT
setmapscene TIME_CAPSULE, SCENE_DEFAULT
end
Pokecenter2FLinkRecordSign:
refreshscreen
special DisplayLinkRecord
closetext
end
Pokecenter2FOfficerScript:
faceplayer
opentext
checkevent EVENT_MYSTERY_GIFT_DELIVERY_GUY
iftrue .AlreadyGotGift
writetext Text_MysteryGiftDeliveryGuy_Intro
yesorno
iffalse .RefusedGift
writetext Text_MysteryGiftDeliveryGuy_HereYouGo
promptbutton
waitsfx
special GetMysteryGiftItem
iffalse .BagIsFull
itemnotify
setevent EVENT_MYSTERY_GIFT_DELIVERY_GUY
.AlreadyGotGift:
writetext Text_MysteryGiftDeliveryGuy_Outro
waitbutton
closetext
end
.BagIsFull:
writetext Text_MysteryGiftDeliveryGuy_NoRoom
waitbutton
closetext
end
.RefusedGift:
writetext Text_MysteryGiftDeliveryGuy_SaidNo
waitbutton
closetext
end
Pokecenter2FMovementData_ReceptionistWalksUpAndLeft_LookRight:
slow_step UP
Pokecenter2FMovementData_ReceptionistStepsLeftLooksDown:
slow_step LEFT
turn_head DOWN
step_end
Pokecenter2FMovementData_ReceptionistStepsRightLooksDown:
slow_step RIGHT
turn_head DOWN
step_end
Pokecenter2FMovementData_PlayerTakesThreeStepsUp:
step UP
Pokecenter2FMovementData_PlayerTakesTwoStepsUp:
step UP
step UP
step_end
Pokecenter2FMovementData_PlayerWalksLeftAndUp:
step LEFT
step UP
step_end
Pokecenter2FMovementData_PlayerWalksRightAndUp:
step RIGHT
step UP
step_end
Pokecenter2FMovementData_PlayerTakesThreeStepsDown:
step DOWN
step DOWN
step DOWN
step_end
Pokecenter2FMovementData_PlayerTakesTwoStepsDown:
step DOWN
step DOWN
step_end
Pokecenter2FMovementData_ReceptionistStepsRightAndDown:
slow_step RIGHT
slow_step DOWN
step_end
Pokecenter2FMovementData_ReceptionistStepsRightLooksDown_2:
slow_step RIGHT
turn_head DOWN
step_end
Pokecenter2FMovementData_ReceptionistStepsRightLooksDown_3:
slow_step UP
slow_step LEFT
turn_head RIGHT
step_end
Pokecenter2FMovementData_ReceptionistStepsLeftLooksRight:
slow_step LEFT
turn_head RIGHT
step_end
Text_BattleReceptionistIntro:
text "Welcome to CABLE"
line "CLUB COLOSSEUM."
para "You may battle a"
line "friend here."
para "Would you like to"
line "battle?"
done
Text_TradeReceptionistIntro:
text "Welcome to CABLE"
line "CLUB TRADE CENTER."
para "You may trade your"
line "#MON here with"
cont "a friend."
para "Would you like to"
line "trade?"
done
Text_TimeCapsuleReceptionistIntro:
text "Welcome to CABLE"
line "CLUB TIME CAPSULE."
para "You can travel to"
line "the past and trade"
cont "your #MON."
para "Would you like to"
line "trade across time?"
done
YourFriendIsNotReadyText:
text "Your friend is not"
line "ready."
prompt
Text_MustSaveGame:
text "Before opening the"
line "link, you must"
cont "save your game."
done
Text_PleaseWait:
text "Please wait."
done
Text_LinkTimedOut:
text "The link has been"
line "closed because of"
cont "inactivity."
para "Please contact"
line "your friend and"
cont "come again."
prompt
Text_PleaseComeAgain:
text "Please come again."
prompt
Text_PleaseComeInDuplicate: ; unreferenced
text "Please come in."
prompt
Text_TemporaryStagingInLinkRoom: ; unreferenced
text "We'll put you in"
line "the link room for"
cont "the time being."
done
Text_CantLinkToThePast:
text "You can't link to"
line "the past here."
prompt
Text_IncompatibleRooms:
text "Your friend chose"
line "a different room."
prompt
Text_PleaseComeIn:
text "Please come in."
done
Text_PleaseEnter: ; unreferenced
text "Please enter."
prompt
Text_RejectNewMon:
text "Sorry--@"
text_ram wStringBuffer1
text_start
line "can't be taken."
prompt
Text_RejectMonWithNewMove:
text "You can't take the"
line "@"
text_ram wStringBuffer1
text " with a"
cont "@"
text_ram wStringBuffer2
text "."
prompt
Text_RejectMonWithMail:
text "You can't take the"
line "@"
text_ram wStringBuffer1
text " that"
cont "has MAIL with you."
prompt
Text_TimeCapsuleClosed:
text "I'm sorry--the"
line "TIME CAPSULE is"
cont "being adjusted."
done
Text_TradeRoomClosed:
text "I'm sorry--the"
line "TRADE MACHINE is"
cont "being adjusted."
done
Text_BattleRoomClosed:
text "I'm sorry--the"
line "BATTLE MACHINE is"
cont "being adjusted."
done
Text_MysteryGiftDeliveryGuy_Intro:
text "Hello! You're"
line "<PLAYER>, right?"
para "I have some-"
line "thing for you."
done
Text_MysteryGiftDeliveryGuy_HereYouGo:
text "Here you go!"
done
Text_MysteryGiftDeliveryGuy_Outro:
text "We hope to serve"
line "you again."
done
Text_MysteryGiftDeliveryGuy_NoRoom:
text "Oh, you have no"
line "space for this."
para "Stop in at any"
line "#MON CENTER"
para "across the country"
line "to pick it up."
done
Text_MysteryGiftDeliveryGuy_SaidNo:
text "No? That's very"
line "strange…"
done
Pokecenter2F_MapEvents:
db 0, 0 ; filler
def_warp_events
warp_event 0, 7, POKECENTER_2F, -1
warp_event 5, 0, TRADE_CENTER, 1
warp_event 9, 0, COLOSSEUM, 1
warp_event 13, 2, TIME_CAPSULE, 1
def_coord_events
def_bg_events
bg_event 7, 3, BGEVENT_READ, Pokecenter2FLinkRecordSign
def_object_events
object_event 5, 2, SPRITE_LINK_RECEPTIONIST, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_SCRIPT, 0, LinkReceptionistScript_Trade, -1
object_event 9, 2, SPRITE_LINK_RECEPTIONIST, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_SCRIPT, 0, LinkReceptionistScript_Battle, -1
object_event 13, 3, SPRITE_LINK_RECEPTIONIST, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_SCRIPT, 0, LinkReceptionistScript_TimeCapsule, -1
object_event 1, 1, SPRITE_OFFICER, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, Pokecenter2FOfficerScript, EVENT_MYSTERY_GIFT_DELIVERY_GUY
|