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 ", 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