pokeemerald/data/maps/GraniteCave_StevensRoom/scripts.inc

127 lines
3.7 KiB
PHP
Raw Normal View History

.set LOCALID_STEVEN, 1
2021-07-20 21:18:31 +02:00
GraniteCave_StevensRoom_MapScripts::
2017-11-10 02:21:31 +01:00
.byte 0
2021-07-20 21:18:31 +02:00
GraniteCave_StevensRoom_EventScript_Steven::
2017-11-10 02:21:31 +01:00
lock
faceplayer
2019-11-07 02:38:53 +01:00
msgbox GraniteCave_StevensRoom_Text_ImStevenLetterForMe, MSGBOX_DEFAULT
2019-08-15 05:38:42 +02:00
setvar VAR_0x8004, ITEM_LETTER
call Common_EventScript_PlayerHandedOverTheItem
2019-01-02 22:12:43 +01:00
setflag FLAG_DELIVERED_STEVEN_LETTER
2019-11-07 02:38:53 +01:00
msgbox GraniteCave_StevensRoom_Text_ThankYouTakeThis, MSGBOX_DEFAULT
giveitem ITEM_TM47
2019-11-07 02:38:53 +01:00
compare VAR_RESULT, FALSE
call_if_eq GraniteCave_StevensRoom_EventScript_BagFull
msgbox GraniteCave_StevensRoom_Text_CouldBecomeChampionLetsRegister, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
delay 30
2020-08-21 00:02:00 +02:00
playfanfare MUS_REGISTER_MATCH_CALL
2019-11-07 02:38:53 +01:00
msgbox GraniteCave_StevensRoom_Text_RegisteredSteven, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
waitfanfare
closemessage
delay 30
2019-01-02 22:12:43 +01:00
setflag FLAG_REGISTERED_STEVEN_POKENAV
2019-11-07 02:38:53 +01:00
msgbox GraniteCave_StevensRoom_Text_IveGotToHurryAlong, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
2019-10-07 06:14:10 +02:00
compare VAR_FACING, DIR_NORTH
2019-11-07 02:38:53 +01:00
call_if_eq GraniteCave_StevensRoom_EventScript_StevenExitNorth
2019-10-07 06:14:10 +02:00
compare VAR_FACING, DIR_SOUTH
2019-11-07 02:38:53 +01:00
call_if_eq GraniteCave_StevensRoom_EventScript_StevenExitSouth
2019-10-07 06:14:10 +02:00
compare VAR_FACING, DIR_WEST
2019-11-07 02:38:53 +01:00
call_if_eq GraniteCave_StevensRoom_EventScript_StevenExitWestEast
2019-10-07 06:14:10 +02:00
compare VAR_FACING, DIR_EAST
2019-11-07 02:38:53 +01:00
call_if_eq GraniteCave_StevensRoom_EventScript_StevenExitWestEast
2020-08-21 00:02:00 +02:00
playse SE_EXIT
removeobject LOCALID_STEVEN
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
GraniteCave_StevensRoom_EventScript_StevenExitNorth::
applymovement LOCALID_STEVEN, GraniteCave_StevensRoom_Movement_StevenExit
2017-11-10 02:21:31 +01:00
waitmovement 0
return
2021-07-20 21:18:31 +02:00
GraniteCave_StevensRoom_EventScript_StevenExitWestEast::
applymovement OBJ_EVENT_ID_PLAYER, GraniteCave_StevensRoom_Movement_PlayerTurnTowardExit
applymovement LOCALID_STEVEN, GraniteCave_StevensRoom_Movement_StevenExit
2017-11-10 02:21:31 +01:00
waitmovement 0
return
2021-07-20 21:18:31 +02:00
GraniteCave_StevensRoom_EventScript_StevenExitSouth::
applymovement OBJ_EVENT_ID_PLAYER, GraniteCave_StevensRoom_Movement_PlayerTurnTowardExit
applymovement LOCALID_STEVEN, GraniteCave_StevensRoom_Movement_StevenExitSouth
2017-11-10 02:21:31 +01:00
waitmovement 0
return
2021-07-20 21:18:31 +02:00
GraniteCave_StevensRoom_EventScript_BagFull::
2019-11-07 02:38:53 +01:00
msgbox GraniteCave_StevensRoom_Text_OhBagIsFull, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
GraniteCave_StevensRoom_Movement_StevenExit:
walk_up
walk_up
walk_up
walk_up
walk_up
delay_8
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
GraniteCave_StevensRoom_Movement_PlayerTurnTowardExit:
delay_16
delay_16
delay_16
walk_in_place_faster_up
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
GraniteCave_StevensRoom_Movement_StevenExitSouth:
walk_left
walk_up
walk_up
walk_up
walk_right
walk_up
walk_up
delay_8
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
GraniteCave_StevensRoom_Text_ImStevenLetterForMe:
2017-11-10 02:21:31 +01:00
.string "My name is STEVEN.\p"
2018-12-07 16:41:08 +01:00
.string "I'm interested in rare stones,\n"
2017-11-10 02:21:31 +01:00
.string "so I travel here and there.\p"
.string "Oh?\n"
.string "A LETTER for me?$"
2021-07-20 21:18:31 +02:00
GraniteCave_StevensRoom_Text_ThankYouTakeThis:
2017-11-10 02:21:31 +01:00
.string "STEVEN: Okay, thank you.\p"
.string "You went through all this trouble to\n"
.string "deliver that. I need to thank you.\p"
.string "Let me see…\n"
2018-12-07 16:41:08 +01:00
.string "I'll give you this TM.\p"
2017-11-10 02:21:31 +01:00
.string "It contains my favorite move,\n"
.string "STEEL WING.$"
2021-07-20 21:18:31 +02:00
GraniteCave_StevensRoom_Text_CouldBecomeChampionLetsRegister:
2017-11-10 02:21:31 +01:00
.string "STEVEN: Your POKéMON appear quite\n"
.string "capable.\p"
.string "If you keep training, you could even\n"
.string "become the CHAMPION of the POKéMON\l"
2018-12-07 16:41:08 +01:00
.string "LEAGUE one day. That's what I think.\p"
.string "I know, since we've gotten to know each\n"
.string "other, let's register one another in\l"
2017-11-10 02:21:31 +01:00
.string "our POKéNAVS.\p"
.string "… … … … … …$"
2021-07-20 21:18:31 +02:00
GraniteCave_StevensRoom_Text_RegisteredSteven:
2017-11-10 02:21:31 +01:00
.string "Registered STEVEN\n"
.string "in the POKéNAV.$"
2021-07-20 21:18:31 +02:00
GraniteCave_StevensRoom_Text_IveGotToHurryAlong:
2018-12-07 16:41:08 +01:00
.string "Now, I've got to hurry along.$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
GraniteCave_StevensRoom_Text_OhBagIsFull:
2017-11-10 02:21:31 +01:00
.string "Oh, your BAG is full…\n"
2018-12-07 16:41:08 +01:00
.string "That's too bad, then.$"
2017-11-10 02:21:31 +01:00