pokeemerald/data/maps/GraniteCave_StevensRoom/scripts.inc

125 lines
3.7 KiB
PHP
Raw Normal View History

2017-11-10 02:21:31 +01:00
GraniteCave_StevensRoom_MapScripts:: @ 822DC7A
.byte 0
2019-11-07 02:38:53 +01:00
GraniteCave_StevensRoom_EventScript_Steven:: @ 822DC7B
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
2017-12-22 08:46:19 +01:00
playfanfare MUS_ME_TORE_EYE
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
2017-11-10 02:21:31 +01:00
playse SE_KAIDAN
removeobject 1
release
end
2019-11-07 02:38:53 +01:00
GraniteCave_StevensRoom_EventScript_StevenExitNorth:: @ 822DD0D
applymovement 1, GraniteCave_StevensRoom_Movement_StevenExit
2017-11-10 02:21:31 +01:00
waitmovement 0
return
2019-11-07 02:38:53 +01:00
GraniteCave_StevensRoom_EventScript_StevenExitWestEast:: @ 822DD18
applymovement OBJ_EVENT_ID_PLAYER, GraniteCave_StevensRoom_Movement_PlayerTurnTowardExit
2019-11-07 02:38:53 +01:00
applymovement 1, GraniteCave_StevensRoom_Movement_StevenExit
2017-11-10 02:21:31 +01:00
waitmovement 0
return
2019-11-07 02:38:53 +01:00
GraniteCave_StevensRoom_EventScript_StevenExitSouth:: @ 822DD2A
applymovement OBJ_EVENT_ID_PLAYER, GraniteCave_StevensRoom_Movement_PlayerTurnTowardExit
2019-11-07 02:38:53 +01:00
applymovement 1, GraniteCave_StevensRoom_Movement_StevenExitSouth
2017-11-10 02:21:31 +01:00
waitmovement 0
return
2019-11-07 02:38:53 +01:00
GraniteCave_StevensRoom_EventScript_BagFull:: @ 822DD3C
msgbox GraniteCave_StevensRoom_Text_OhBagIsFull, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
return
2019-11-07 02:38:53 +01:00
GraniteCave_StevensRoom_Movement_StevenExit: @ 822DD45
walk_up
walk_up
walk_up
walk_up
walk_up
delay_8
2017-11-10 02:21:31 +01:00
step_end
2019-11-07 02:38:53 +01:00
GraniteCave_StevensRoom_Movement_PlayerTurnTowardExit: @ 822DD4C
delay_16
delay_16
delay_16
walk_in_place_fastest_up
2017-11-10 02:21:31 +01:00
step_end
2019-11-07 02:38:53 +01:00
GraniteCave_StevensRoom_Movement_StevenExitSouth: @ 822DD51
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
2019-11-07 02:38:53 +01:00
GraniteCave_StevensRoom_Text_ImStevenLetterForMe: @ 822DD5A
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?$"
2019-11-07 02:38:53 +01:00
GraniteCave_StevensRoom_Text_ThankYouTakeThis: @ 822DDBD
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.$"
2019-11-07 02:38:53 +01:00
GraniteCave_StevensRoom_Text_CouldBecomeChampionLetsRegister: @ 822DE6B
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 "… … … … … …$"
2019-11-07 02:38:53 +01:00
GraniteCave_StevensRoom_Text_RegisteredSteven: @ 822DF6A
2017-11-10 02:21:31 +01:00
.string "Registered STEVEN\n"
.string "in the POKéNAV.$"
2019-11-07 02:38:53 +01:00
GraniteCave_StevensRoom_Text_IveGotToHurryAlong: @ 822DF8C
2018-12-07 16:41:08 +01:00
.string "Now, I've got to hurry along.$"
2017-11-10 02:21:31 +01:00
2019-11-07 02:38:53 +01:00
GraniteCave_StevensRoom_Text_OhBagIsFull: @ 822DFAA
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