pokeemerald/data/maps/MossdeepCity_StevensHouse/scripts.inc

220 lines
7.3 KiB
PHP
Raw Normal View History

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
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
setmetatile 6, 4, METATILE_GenericBuilding_TableEdge, 1
2017-11-10 02:21:31 +01:00
return
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
2017-11-10 02:21:31 +01:00
setobjectxyperm 1, 6, 5
setobjectmovementtype 1, 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
2019-10-06 19:55:30 +02:00
applymovement 1, Common_Movement_WalkInPlaceFastestLeft
2017-11-10 02:21:31 +01:00
waitmovement 0
playse SE_PIN
applymovement 1, Common_Movement_ExclamationMark
2017-11-10 02:21:31 +01:00
waitmovement 0
applymovement 1, Common_Movement_Delay48
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-09 17:28:28 +01:00
applymovement 1, 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
2017-11-10 02:21:31 +01:00
giveitem_std 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
2019-11-09 17:28:28 +01:00
applymovement 1, 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
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
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
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
2019-11-09 17:28:28 +01:00
MossdeepCity_StevensHouse_EventScript_SendBeldumParty:: @ 8222895
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
2019-11-09 17:28:28 +01:00
MossdeepCity_StevensHouse_EventScript_SendBeldumPC:: @ 82228BD
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
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
removeobject 2
2017-12-22 08:46:19 +01:00
playfanfare MUS_FANFA4
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
giveitem_std ITEM_HM08, 1, 1
2019-01-02 22:12:43 +01:00
setflag FLAG_RECEIVED_HM08
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.$"
MossdeepCity_StevensHouse_Text_222C03: @ 8222C03
.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.$"