mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-30 14:20:42 +01:00
127 lines
3.7 KiB
PHP
127 lines
3.7 KiB
PHP
.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
|
|
compare VAR_RESULT, FALSE
|
|
call_if_eq 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
|
|
compare VAR_FACING, DIR_NORTH
|
|
call_if_eq GraniteCave_StevensRoom_EventScript_StevenExitNorth
|
|
compare VAR_FACING, DIR_SOUTH
|
|
call_if_eq GraniteCave_StevensRoom_EventScript_StevenExitSouth
|
|
compare VAR_FACING, DIR_WEST
|
|
call_if_eq GraniteCave_StevensRoom_EventScript_StevenExitWestEast
|
|
compare VAR_FACING, DIR_EAST
|
|
call_if_eq 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_fastest_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:
|
|
.string "My name is STEVEN.\p"
|
|
.string "I'm interested in rare stones,\n"
|
|
.string "so I travel here and there.\p"
|
|
.string "Oh?\n"
|
|
.string "A LETTER for me?$"
|
|
|
|
GraniteCave_StevensRoom_Text_ThankYouTakeThis:
|
|
.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"
|
|
.string "I'll give you this TM.\p"
|
|
.string "It contains my favorite move,\n"
|
|
.string "STEEL WING.$"
|
|
|
|
GraniteCave_StevensRoom_Text_CouldBecomeChampionLetsRegister:
|
|
.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"
|
|
.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"
|
|
.string "our POKéNAVS.\p"
|
|
.string "… … … … … …$"
|
|
|
|
GraniteCave_StevensRoom_Text_RegisteredSteven:
|
|
.string "Registered STEVEN\n"
|
|
.string "in the POKéNAV.$"
|
|
|
|
GraniteCave_StevensRoom_Text_IveGotToHurryAlong:
|
|
.string "Now, I've got to hurry along.$"
|
|
|
|
GraniteCave_StevensRoom_Text_OhBagIsFull:
|
|
.string "Oh, your BAG is full…\n"
|
|
.string "That's too bad, then.$"
|
|
|