2022-05-19 19:14:13 +02:00
|
|
|
.set LOCALID_STEVEN, 1
|
|
|
|
|
|
|
|
GraniteCave_StevensRoom_MapScripts::
|
|
|
|
.byte 0
|
|
|
|
|
|
|
|
GraniteCave_StevensRoom_EventScript_Steven::
|
|
|
|
lock
|
|
|
|
faceplayer
|
|
|
|
msgbox GraniteCave_StevensRoom_Text_ImStevenLetterForMe, MSGBOX_DEFAULT
|
|
|
|
setvar VAR_0x8004, ITEM_LETTER
|
|
|
|
call Common_EventScript_PlayerHandedOverTheItem
|
|
|
|
setflag FLAG_DELIVERED_STEVEN_LETTER
|
|
|
|
msgbox GraniteCave_StevensRoom_Text_ThankYouTakeThis, MSGBOX_DEFAULT
|
|
|
|
giveitem ITEM_TM47
|
|
|
|
call_if_eq VAR_RESULT, FALSE, GraniteCave_StevensRoom_EventScript_BagFull
|
|
|
|
msgbox GraniteCave_StevensRoom_Text_CouldBecomeChampionLetsRegister, MSGBOX_DEFAULT
|
|
|
|
closemessage
|
|
|
|
delay 30
|
|
|
|
playfanfare MUS_REGISTER_MATCH_CALL
|
|
|
|
msgbox GraniteCave_StevensRoom_Text_RegisteredSteven, MSGBOX_DEFAULT
|
|
|
|
waitfanfare
|
|
|
|
closemessage
|
|
|
|
delay 30
|
|
|
|
setflag FLAG_REGISTERED_STEVEN_POKENAV
|
|
|
|
msgbox GraniteCave_StevensRoom_Text_IveGotToHurryAlong, MSGBOX_DEFAULT
|
|
|
|
closemessage
|
|
|
|
call_if_eq VAR_FACING, DIR_NORTH, GraniteCave_StevensRoom_EventScript_StevenExitNorth
|
|
|
|
call_if_eq VAR_FACING, DIR_SOUTH, GraniteCave_StevensRoom_EventScript_StevenExitSouth
|
|
|
|
call_if_eq VAR_FACING, DIR_WEST, GraniteCave_StevensRoom_EventScript_StevenExitWestEast
|
|
|
|
call_if_eq VAR_FACING, DIR_EAST, GraniteCave_StevensRoom_EventScript_StevenExitWestEast
|
|
|
|
playse SE_EXIT
|
|
|
|
removeobject LOCALID_STEVEN
|
|
|
|
release
|
|
|
|
end
|
|
|
|
|
|
|
|
GraniteCave_StevensRoom_EventScript_StevenExitNorth::
|
|
|
|
applymovement LOCALID_STEVEN, GraniteCave_StevensRoom_Movement_StevenExit
|
|
|
|
waitmovement 0
|
|
|
|
return
|
|
|
|
|
|
|
|
GraniteCave_StevensRoom_EventScript_StevenExitWestEast::
|
|
|
|
applymovement OBJ_EVENT_ID_PLAYER, GraniteCave_StevensRoom_Movement_PlayerTurnTowardExit
|
|
|
|
applymovement LOCALID_STEVEN, GraniteCave_StevensRoom_Movement_StevenExit
|
|
|
|
waitmovement 0
|
|
|
|
return
|
|
|
|
|
|
|
|
GraniteCave_StevensRoom_EventScript_StevenExitSouth::
|
|
|
|
applymovement OBJ_EVENT_ID_PLAYER, GraniteCave_StevensRoom_Movement_PlayerTurnTowardExit
|
|
|
|
applymovement LOCALID_STEVEN, GraniteCave_StevensRoom_Movement_StevenExitSouth
|
|
|
|
waitmovement 0
|
|
|
|
return
|
|
|
|
|
|
|
|
GraniteCave_StevensRoom_EventScript_BagFull::
|
|
|
|
msgbox GraniteCave_StevensRoom_Text_OhBagIsFull, MSGBOX_DEFAULT
|
|
|
|
return
|
|
|
|
|
|
|
|
GraniteCave_StevensRoom_Movement_StevenExit:
|
|
|
|
walk_up
|
|
|
|
walk_up
|
|
|
|
walk_up
|
|
|
|
walk_up
|
|
|
|
walk_up
|
|
|
|
delay_8
|
|
|
|
step_end
|
|
|
|
|
|
|
|
GraniteCave_StevensRoom_Movement_PlayerTurnTowardExit:
|
|
|
|
delay_16
|
|
|
|
delay_16
|
|
|
|
delay_16
|
|
|
|
walk_in_place_faster_up
|
|
|
|
step_end
|
|
|
|
|
|
|
|
GraniteCave_StevensRoom_Movement_StevenExitSouth:
|
|
|
|
walk_left
|
|
|
|
walk_up
|
|
|
|
walk_up
|
|
|
|
walk_up
|
|
|
|
walk_right
|
|
|
|
walk_up
|
|
|
|
walk_up
|
|
|
|
delay_8
|
|
|
|
step_end
|
|
|
|
|
|
|
|
GraniteCave_StevensRoom_Text_ImStevenLetterForMe:
|
2022-08-21 22:56:26 +02:00
|
|
|
.string "My name is Steven.\p"
|
2022-05-19 19:14:13 +02:00
|
|
|
.string "I'm interested in rare stones,\n"
|
|
|
|
.string "so I travel here and there.\p"
|
|
|
|
.string "Oh?\n"
|
2022-08-21 22:56:26 +02:00
|
|
|
.string "A Letter for me?$"
|
2022-05-19 19:14:13 +02:00
|
|
|
|
|
|
|
GraniteCave_StevensRoom_Text_ThankYouTakeThis:
|
2022-08-21 22:56:26 +02:00
|
|
|
.string "Steven: Okay, thank you.\p"
|
2022-05-19 19:14:13 +02:00
|
|
|
.string "You went through all this trouble to\n"
|
|
|
|
.string "deliver that. I need to thank you.\p"
|
|
|
|
.string "Let me see…\n"
|
|
|
|
.string "I'll give you this TM.\p"
|
|
|
|
.string "It contains my favorite move,\n"
|
2022-08-21 22:56:26 +02:00
|
|
|
.string "Steel Wing.$"
|
2022-05-19 19:14:13 +02:00
|
|
|
|
|
|
|
GraniteCave_StevensRoom_Text_CouldBecomeChampionLetsRegister:
|
2022-08-21 22:56:26 +02:00
|
|
|
.string "Steven: Your Pokémon appear quite\n"
|
2022-05-19 19:14:13 +02:00
|
|
|
.string "capable.\p"
|
|
|
|
.string "If you keep training, you could even\n"
|
2022-08-21 22:56:26 +02:00
|
|
|
.string "become the Champion of the Pokémon\l"
|
|
|
|
.string "League one day. That's what I think.\p"
|
2022-05-19 19:14:13 +02:00
|
|
|
.string "I know, since we've gotten to know each\n"
|
|
|
|
.string "other, let's register one another in\l"
|
2022-08-21 22:56:26 +02:00
|
|
|
.string "our Pokénavs.\p"
|
2022-05-19 19:14:13 +02:00
|
|
|
.string "… … … … … …$"
|
|
|
|
|
|
|
|
GraniteCave_StevensRoom_Text_RegisteredSteven:
|
2022-08-21 22:56:26 +02:00
|
|
|
.string "Registered Steven\n"
|
|
|
|
.string "in the Pokénav.$"
|
2022-05-19 19:14:13 +02:00
|
|
|
|
|
|
|
GraniteCave_StevensRoom_Text_IveGotToHurryAlong:
|
|
|
|
.string "Now, I've got to hurry along.$"
|
|
|
|
|
|
|
|
GraniteCave_StevensRoom_Text_OhBagIsFull:
|
2022-08-21 22:56:26 +02:00
|
|
|
.string "Oh, your Bag is full…\n"
|
2022-05-19 19:14:13 +02:00
|
|
|
.string "That's too bad, then.$"
|
|
|
|
|