2020-06-21 07:56:57 +02:00
|
|
|
.set LOCALID_STEVEN, 1
|
|
|
|
.set LOCALID_BELDUM_BALL, 2
|
|
|
|
|
2017-11-10 02:21:31 +01:00
|
|
|
MossdeepCity_StevensHouse_MapScripts:: @ 8222784
|
2019-11-09 17:28:28 +01:00
|
|
|
map_script MAP_SCRIPT_ON_LOAD, MossdeepCity_StevensHouse_OnLoad
|
2019-04-22 22:31:51 +02:00
|
|
|
map_script MAP_SCRIPT_ON_TRANSITION, MossdeepCity_StevensHouse_OnTransition
|
2019-11-09 17:28:28 +01:00
|
|
|
map_script MAP_SCRIPT_ON_FRAME_TABLE, MossdeepCity_StevensHouse_OnFrame
|
2017-11-10 02:21:31 +01:00
|
|
|
.byte 0
|
|
|
|
|
2019-11-09 17:28:28 +01:00
|
|
|
MossdeepCity_StevensHouse_OnLoad: @ 8222794
|
|
|
|
call_if_unset FLAG_SYS_GAME_CLEAR, MossdeepCity_StevensHouse_EventScript_HideStevensNote
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2019-11-09 17:28:28 +01:00
|
|
|
MossdeepCity_StevensHouse_EventScript_HideStevensNote:: @ 822279E
|
2019-06-12 21:07:32 +02:00
|
|
|
setmetatile 6, 4, METATILE_GenericBuilding_TableEdge, 1
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2019-04-22 22:31:51 +02:00
|
|
|
MossdeepCity_StevensHouse_OnTransition: @ 82227A8
|
2019-02-22 10:18:43 +01:00
|
|
|
compare VAR_STEVENS_HOUSE_STATE, 2
|
2019-11-09 17:28:28 +01:00
|
|
|
call_if_eq MossdeepCity_StevensHouse_EventScript_SetStevenPos
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2019-11-09 17:28:28 +01:00
|
|
|
MossdeepCity_StevensHouse_EventScript_SetStevenPos:: @ 82227B4
|
2020-06-21 07:56:57 +02:00
|
|
|
setobjectxyperm LOCALID_STEVEN, 6, 5
|
|
|
|
setobjectmovementtype LOCALID_STEVEN, MOVEMENT_TYPE_FACE_UP
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2019-11-09 17:28:28 +01:00
|
|
|
MossdeepCity_StevensHouse_OnFrame: @ 82227C0
|
|
|
|
map_script_2 VAR_STEVENS_HOUSE_STATE, 1, MossdeepCity_StevensHouse_EventScript_StevenGivesDive
|
2017-11-10 02:21:31 +01:00
|
|
|
.2byte 0
|
|
|
|
|
2019-11-09 17:28:28 +01:00
|
|
|
MossdeepCity_StevensHouse_EventScript_StevenGivesDive:: @ 82227CA
|
2017-11-10 02:21:31 +01:00
|
|
|
lockall
|
2020-06-21 07:56:57 +02:00
|
|
|
applymovement LOCALID_STEVEN, Common_Movement_WalkInPlaceFastestLeft
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmovement 0
|
|
|
|
playse SE_PIN
|
2020-06-21 07:56:57 +02:00
|
|
|
applymovement LOCALID_STEVEN, Common_Movement_ExclamationMark
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmovement 0
|
2020-06-21 07:56:57 +02:00
|
|
|
applymovement LOCALID_STEVEN, Common_Movement_Delay48
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmovement 0
|
2020-06-21 07:56:57 +02:00
|
|
|
applymovement LOCALID_STEVEN, MossdeepCity_StevensHouse_Movement_StevenApproachPlayer
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmovement 0
|
2019-11-09 17:28:28 +01:00
|
|
|
msgbox MossdeepCity_StevensHouse_Text_YouveEarnedHMDive, MSGBOX_DEFAULT
|
2020-01-11 18:02:58 +01:00
|
|
|
giveitem ITEM_HM08
|
2019-01-02 22:12:43 +01:00
|
|
|
setflag FLAG_RECEIVED_HM08
|
|
|
|
setflag FLAG_OMIT_DIVE_FROM_STEVEN_LETTER
|
2019-11-09 17:28:28 +01:00
|
|
|
msgbox MossdeepCity_StevensHouse_Text_ExplainDive, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
closemessage
|
|
|
|
delay 20
|
2020-06-21 07:56:57 +02:00
|
|
|
applymovement LOCALID_STEVEN, MossdeepCity_StevensHouse_Movement_StevenReturn
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmovement 0
|
2018-10-18 21:28:59 +02:00
|
|
|
setflag FLAG_HIDE_MOSSDEEP_CITY_SCOTT
|
|
|
|
setflag FLAG_HIDE_SEAFLOOR_CAVERN_ENTRANCE_AQUA_GRUNT
|
2019-02-22 10:18:43 +01:00
|
|
|
setvar VAR_STEVENS_HOUSE_STATE, 2
|
2017-11-10 02:21:31 +01:00
|
|
|
releaseall
|
|
|
|
end
|
|
|
|
|
2019-11-09 17:28:28 +01:00
|
|
|
MossdeepCity_StevensHouse_Movement_StevenApproachPlayer: @ 8222833
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_left
|
|
|
|
walk_left
|
|
|
|
walk_left
|
|
|
|
walk_left
|
|
|
|
walk_left
|
|
|
|
walk_left
|
|
|
|
walk_in_place_fastest_down
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
2019-11-09 17:28:28 +01:00
|
|
|
MossdeepCity_StevensHouse_Movement_StevenReturn: @ 822283B
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_up
|
|
|
|
walk_right
|
|
|
|
walk_right
|
|
|
|
walk_right
|
|
|
|
walk_in_place_fastest_up
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
2019-11-09 17:28:28 +01:00
|
|
|
MossdeepCity_StevensHouse_EventScript_BeldumPokeball:: @ 8222841
|
2017-11-10 02:21:31 +01:00
|
|
|
lockall
|
2019-11-09 17:28:28 +01:00
|
|
|
msgbox MossdeepCity_StevensHouse_Text_TakeBallContainingBeldum, MSGBOX_YESNO
|
2019-11-02 17:34:53 +01:00
|
|
|
compare VAR_RESULT, NO
|
2019-11-09 17:28:28 +01:00
|
|
|
goto_if_eq MossdeepCity_StevensHouse_EventScript_LeaveBeldum
|
|
|
|
goto MossdeepCity_StevensHouse_EventScript_GiveBeldum
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2019-11-09 17:28:28 +01:00
|
|
|
MossdeepCity_StevensHouse_EventScript_LeaveBeldum:: @ 822285B
|
|
|
|
msgbox MossdeepCity_StevensHouse_Text_LeftPokeBallWhereItWas, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
releaseall
|
|
|
|
end
|
|
|
|
|
2019-11-09 17:28:28 +01:00
|
|
|
MossdeepCity_StevensHouse_EventScript_GiveBeldum:: @ 8222865
|
2019-05-13 16:48:41 +02:00
|
|
|
setvar VAR_TEMP_1, SPECIES_BELDUM
|
2019-09-16 05:47:07 +02:00
|
|
|
givemon SPECIES_BELDUM, 5, ITEM_NONE
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 0
|
2019-11-09 17:28:28 +01:00
|
|
|
goto_if_eq MossdeepCity_StevensHouse_EventScript_SendBeldumParty
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 1
|
2019-11-09 17:28:28 +01:00
|
|
|
goto_if_eq MossdeepCity_StevensHouse_EventScript_SendBeldumPC
|
2019-08-15 05:38:42 +02:00
|
|
|
goto Common_EventScript_NoMoreRoomForPokemon
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2019-11-09 17:28:28 +01:00
|
|
|
MossdeepCity_StevensHouse_EventScript_SendBeldumParty:: @ 8222895
|
|
|
|
call MossdeepCity_StevensHouse_EventScript_ReceivedBeldumFanfare
|
2019-03-22 03:10:56 +01:00
|
|
|
msgbox gText_NicknameThisPokemon, MSGBOX_YESNO
|
2019-11-02 17:34:53 +01:00
|
|
|
compare VAR_RESULT, NO
|
2019-11-09 17:28:28 +01:00
|
|
|
goto_if_eq MossdeepCity_StevensHouse_EventScript_ReceivedBeldum
|
2019-08-15 05:38:42 +02:00
|
|
|
call Common_EventScript_GetGiftMonPartySlot
|
|
|
|
call Common_EventScript_NameReceivedPartyMon
|
2019-11-09 17:28:28 +01:00
|
|
|
goto MossdeepCity_StevensHouse_EventScript_ReceivedBeldum
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2019-11-09 17:28:28 +01:00
|
|
|
MossdeepCity_StevensHouse_EventScript_SendBeldumPC:: @ 82228BD
|
|
|
|
call MossdeepCity_StevensHouse_EventScript_ReceivedBeldumFanfare
|
2019-03-22 03:10:56 +01:00
|
|
|
msgbox gText_NicknameThisPokemon, MSGBOX_YESNO
|
2019-11-02 17:34:53 +01:00
|
|
|
compare VAR_RESULT, NO
|
2019-11-09 17:28:28 +01:00
|
|
|
goto_if_eq MossdeepCity_StevensHouse_EventScript_BeldumTransferredToPC
|
2019-08-15 05:38:42 +02:00
|
|
|
call Common_EventScript_NameReceivedBoxMon
|
2019-11-09 17:28:28 +01:00
|
|
|
goto MossdeepCity_StevensHouse_EventScript_BeldumTransferredToPC
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2019-11-09 17:28:28 +01:00
|
|
|
MossdeepCity_StevensHouse_EventScript_BeldumTransferredToPC:: @ 82228E0
|
2019-10-23 00:07:08 +02:00
|
|
|
call Common_EventScript_TransferredToPC
|
2019-11-09 17:28:28 +01:00
|
|
|
goto MossdeepCity_StevensHouse_EventScript_ReceivedBeldum
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2019-11-09 17:28:28 +01:00
|
|
|
MossdeepCity_StevensHouse_EventScript_ReceivedBeldumFanfare:: @ 82228EB
|
2017-11-10 02:21:31 +01:00
|
|
|
bufferspeciesname 1, SPECIES_BELDUM
|
2020-06-21 07:56:57 +02:00
|
|
|
removeobject LOCALID_BELDUM_BALL
|
2020-08-21 00:02:00 +02:00
|
|
|
playfanfare MUS_OBTAIN_ITEM
|
2019-11-09 17:28:28 +01:00
|
|
|
message MossdeepCity_StevensHouse_Text_ObtainedBeldum
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmessage
|
|
|
|
waitfanfare
|
|
|
|
bufferspeciesname 0, SPECIES_BELDUM
|
|
|
|
return
|
|
|
|
|
2019-11-09 17:28:28 +01:00
|
|
|
MossdeepCity_StevensHouse_EventScript_ReceivedBeldum:: @ 8222901
|
2018-10-18 21:28:59 +02:00
|
|
|
setflag FLAG_HIDE_MOSSDEEP_CITY_STEVENS_HOUSE_BELDUM_POKEBALL
|
2019-01-02 22:12:43 +01:00
|
|
|
setflag FLAG_RECEIVED_BELDUM
|
2017-11-10 02:21:31 +01:00
|
|
|
releaseall
|
|
|
|
end
|
|
|
|
|
2019-11-09 17:28:28 +01:00
|
|
|
MossdeepCity_StevensHouse_EventScript_RockDisplay:: @ 8222909
|
|
|
|
msgbox MossdeepCity_StevensHouse_Text_CollectionOfRareRocks, MSGBOX_SIGN
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2019-11-09 17:28:28 +01:00
|
|
|
MossdeepCity_StevensHouse_EventScript_Steven:: @ 8222912
|
|
|
|
msgbox MossdeepCity_StevensHouse_Text_UnderwateCavernBetweenMossdeepSootopolis, MSGBOX_NPC
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2019-11-09 17:28:28 +01:00
|
|
|
MossdeepCity_StevensHouse_EventScript_Letter:: @ 822291B
|
2017-11-10 02:21:31 +01:00
|
|
|
lockall
|
2019-11-09 17:28:28 +01:00
|
|
|
msgbox MossdeepCity_StevensHouse_Text_LetterFromSteven, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
releaseall
|
|
|
|
end
|
|
|
|
|
2019-11-09 17:28:28 +01:00
|
|
|
@ Unused, leftover from RS
|
|
|
|
MossdeepCity_StevensHouse_EventScript_DiveItemBall:: @ 8222926
|
2020-01-11 18:02:58 +01:00
|
|
|
finditem ITEM_HM08
|
2019-01-02 22:12:43 +01:00
|
|
|
setflag FLAG_RECEIVED_HM08
|
2017-11-10 08:36:41 +01:00
|
|
|
end
|
2017-11-10 02:21:31 +01:00
|
|
|
|
2019-11-09 17:28:28 +01:00
|
|
|
MossdeepCity_StevensHouse_Text_YouveEarnedHMDive: @ 8222936
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "STEVEN: {PLAYER}{KUN}…\p"
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "As you can see, there's not much here,\n"
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "but this is my home.\p"
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "Thank you for all that you've done.\p"
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "This is my token of appreciation.\n"
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "It's the HIDDEN MACHINE DIVE.\p"
|
|
|
|
.string "No need to be shy--you've earned\n"
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "this HM.$"
|
|
|
|
|
2019-11-09 17:28:28 +01:00
|
|
|
MossdeepCity_StevensHouse_Text_ExplainDive: @ 8222A0E
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "STEVEN: While you're using SURF, you\n"
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "should notice dark patches of water.\p"
|
|
|
|
.string "Use DIVE if you come to deep water\n"
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "like it. You'll drop to the seafloor.\p"
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "When you want to come back up, use\n"
|
|
|
|
.string "DIVE again.\p"
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "In some places, it won't be possible\n"
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "for you to surface, though.$"
|
|
|
|
|
2019-11-09 17:28:28 +01:00
|
|
|
MossdeepCity_StevensHouse_Text_UnderwateCavernBetweenMossdeepSootopolis: @ 8222B11
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "STEVEN: Apparently, there's an\n"
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "underwater cavern between\l"
|
|
|
|
.string "MOSSDEEP and SOOTOPOLIS.\p"
|
|
|
|
.string "You know, the one that CAPT. STERN\n"
|
|
|
|
.string "found in his submarine.$"
|
|
|
|
|
2019-11-09 17:28:28 +01:00
|
|
|
MossdeepCity_StevensHouse_Text_TakeBallContainingBeldum: @ 8222B9E
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "{PLAYER} checked the POKé BALL.\p"
|
|
|
|
.string "It contained the POKéMON\n"
|
|
|
|
.string "BELDUM.\p"
|
|
|
|
.string "Take the POKé BALL?$"
|
|
|
|
|
2019-11-09 17:28:28 +01:00
|
|
|
MossdeepCity_StevensHouse_Text_ObtainedBeldum: @ 8222BED
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "{PLAYER} obtained a BELDUM.$"
|
|
|
|
|
2019-12-04 19:10:39 +01:00
|
|
|
@ Unused
|
|
|
|
MossdeepCity_StevensHouse_Text_NoSpaceForAnotherMon: @ 8222C03
|
2017-11-10 08:36:41 +01:00
|
|
|
.string "There is no space for another POKéMON.$"
|
2017-11-10 02:21:31 +01:00
|
|
|
|
2019-11-09 17:28:28 +01:00
|
|
|
MossdeepCity_StevensHouse_Text_LeftPokeBallWhereItWas: @ 8222C2A
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "{PLAYER} left the POKé BALL where\n"
|
|
|
|
.string "it was.$"
|
|
|
|
|
2019-11-09 17:28:28 +01:00
|
|
|
MossdeepCity_StevensHouse_Text_LetterFromSteven: @ 8222C4E
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "It's a letter.\p"
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "… … … … … …\p"
|
|
|
|
.string "To {PLAYER}{KUN}…\p"
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "I've decided to do a little soul-\n"
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "searching and train on the road.\p"
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "I don't plan to return home for some\n"
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "time.\p"
|
|
|
|
.string "I have a favor to ask of you.\p"
|
|
|
|
.string "I want you to take the POKé BALL on\n"
|
|
|
|
.string "the desk.\p"
|
|
|
|
.string "Inside it is a BELDUM, my favorite\n"
|
|
|
|
.string "POKéMON.\p"
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "I'm counting on you.\p"
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "May our paths cross someday.\p"
|
|
|
|
.string "STEVEN STONE$"
|
|
|
|
|
2019-11-09 17:28:28 +01:00
|
|
|
MossdeepCity_StevensHouse_Text_CollectionOfRareRocks: @ 8222D97
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "It's a collection of rare rocks and\n"
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "stones assembled by STEVEN.$"
|
|
|
|
|