pokeemerald/data/maps/MossdeepCity_StevensHouse/scripts.inc

224 lines
7.1 KiB
PHP
Raw Normal View History

.set LOCALID_STEVEN, 1
.set LOCALID_BELDUM_BALL, 2
2021-07-20 21:18:31 +02:00
MossdeepCity_StevensHouse_MapScripts::
2019-11-09 17:28:28 +01:00
map_script MAP_SCRIPT_ON_LOAD, MossdeepCity_StevensHouse_OnLoad
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
2021-07-20 21:18:31 +02:00
MossdeepCity_StevensHouse_OnLoad:
2019-11-09 17:28:28 +01:00
call_if_unset FLAG_SYS_GAME_CLEAR, MossdeepCity_StevensHouse_EventScript_HideStevensNote
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
MossdeepCity_StevensHouse_EventScript_HideStevensNote::
setmetatile 6, 4, METATILE_GenericBuilding_TableEdge, 1
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
MossdeepCity_StevensHouse_OnTransition:
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
2021-07-20 21:18:31 +02:00
MossdeepCity_StevensHouse_EventScript_SetStevenPos::
setobjectxyperm LOCALID_STEVEN, 6, 5
setobjectmovementtype LOCALID_STEVEN, MOVEMENT_TYPE_FACE_UP
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
MossdeepCity_StevensHouse_OnFrame:
2019-11-09 17:28:28 +01:00
map_script_2 VAR_STEVENS_HOUSE_STATE, 1, MossdeepCity_StevensHouse_EventScript_StevenGivesDive
2017-11-10 02:21:31 +01:00
.2byte 0
2021-07-20 21:18:31 +02:00
MossdeepCity_StevensHouse_EventScript_StevenGivesDive::
2017-11-10 02:21:31 +01:00
lockall
applymovement LOCALID_STEVEN, Common_Movement_WalkInPlaceFastestLeft
2017-11-10 02:21:31 +01:00
waitmovement 0
playse SE_PIN
applymovement LOCALID_STEVEN, Common_Movement_ExclamationMark
2017-11-10 02:21:31 +01:00
waitmovement 0
applymovement LOCALID_STEVEN, Common_Movement_Delay48
2017-11-10 02:21:31 +01:00
waitmovement 0
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
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
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
2021-07-20 21:18:31 +02:00
MossdeepCity_StevensHouse_Movement_StevenApproachPlayer:
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
2021-07-20 21:18:31 +02:00
MossdeepCity_StevensHouse_Movement_StevenReturn:
walk_up
walk_right
walk_right
walk_right
walk_in_place_fastest_up
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
MossdeepCity_StevensHouse_EventScript_BeldumPokeball::
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
2021-07-20 21:18:31 +02:00
MossdeepCity_StevensHouse_EventScript_LeaveBeldum::
2019-11-09 17:28:28 +01:00
msgbox MossdeepCity_StevensHouse_Text_LeftPokeBallWhereItWas, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
releaseall
end
2021-07-20 21:18:31 +02:00
MossdeepCity_StevensHouse_EventScript_GiveBeldum::
setvar VAR_TEMP_1, SPECIES_BELDUM
2019-09-16 05:47:07 +02:00
givemon SPECIES_BELDUM, 5, ITEM_NONE
compare VAR_RESULT, 0
2019-11-09 17:28:28 +01:00
goto_if_eq MossdeepCity_StevensHouse_EventScript_SendBeldumParty
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
2021-07-20 21:18:31 +02:00
MossdeepCity_StevensHouse_EventScript_SendBeldumParty::
2019-11-09 17:28:28 +01:00
call MossdeepCity_StevensHouse_EventScript_ReceivedBeldumFanfare
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
2021-07-20 21:18:31 +02:00
MossdeepCity_StevensHouse_EventScript_SendBeldumPC::
2019-11-09 17:28:28 +01:00
call MossdeepCity_StevensHouse_EventScript_ReceivedBeldumFanfare
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
2021-07-20 21:18:31 +02:00
MossdeepCity_StevensHouse_EventScript_BeldumTransferredToPC::
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
2021-07-20 21:18:31 +02:00
MossdeepCity_StevensHouse_EventScript_ReceivedBeldumFanfare::
2017-11-10 02:21:31 +01:00
bufferspeciesname 1, SPECIES_BELDUM
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
2021-07-20 21:18:31 +02:00
MossdeepCity_StevensHouse_EventScript_ReceivedBeldum::
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
2021-07-20 21:18:31 +02:00
MossdeepCity_StevensHouse_EventScript_RockDisplay::
2019-11-09 17:28:28 +01:00
msgbox MossdeepCity_StevensHouse_Text_CollectionOfRareRocks, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
MossdeepCity_StevensHouse_EventScript_Steven::
2019-11-09 17:28:28 +01:00
msgbox MossdeepCity_StevensHouse_Text_UnderwateCavernBetweenMossdeepSootopolis, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
MossdeepCity_StevensHouse_EventScript_Letter::
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
2021-07-20 21:18:31 +02:00
MossdeepCity_StevensHouse_EventScript_DiveItemBall::
finditem ITEM_HM08
2019-01-02 22:12:43 +01:00
setflag FLAG_RECEIVED_HM08
end
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
MossdeepCity_StevensHouse_Text_YouveEarnedHMDive:
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.$"
2021-07-20 21:18:31 +02:00
MossdeepCity_StevensHouse_Text_ExplainDive:
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.$"
2021-07-20 21:18:31 +02:00
MossdeepCity_StevensHouse_Text_UnderwateCavernBetweenMossdeepSootopolis:
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.$"
2021-07-20 21:18:31 +02:00
MossdeepCity_StevensHouse_Text_TakeBallContainingBeldum:
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?$"
2021-07-20 21:18:31 +02:00
MossdeepCity_StevensHouse_Text_ObtainedBeldum:
2017-11-10 02:21:31 +01:00
.string "{PLAYER} obtained a BELDUM.$"
2019-12-04 19:10:39 +01:00
@ Unused
2021-07-20 21:18:31 +02:00
MossdeepCity_StevensHouse_Text_NoSpaceForAnotherMon:
.string "There is no space for another POKéMON.$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
MossdeepCity_StevensHouse_Text_LeftPokeBallWhereItWas:
2017-11-10 02:21:31 +01:00
.string "{PLAYER} left the POKé BALL where\n"
.string "it was.$"
2021-07-20 21:18:31 +02:00
MossdeepCity_StevensHouse_Text_LetterFromSteven:
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$"
2021-07-20 21:18:31 +02:00
MossdeepCity_StevensHouse_Text_CollectionOfRareRocks:
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.$"