pokeemerald/data/maps/EverGrandeCity_PhoebesRoom/scripts.inc

85 lines
2.9 KiB
PHP
Raw Normal View History

2021-07-20 21:18:31 +02:00
EverGrandeCity_PhoebesRoom_MapScripts::
2019-10-13 21:40:15 +02:00
map_script MAP_SCRIPT_ON_LOAD, EverGrandeCity_PhoebesRoom_OnLoad
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, EverGrandeCity_PhoebesRoom_OnWarp
map_script MAP_SCRIPT_ON_FRAME_TABLE, EverGrandeCity_PhoebesRoom_OnFrame
2017-11-10 02:21:31 +01:00
.byte 0
2021-07-20 21:18:31 +02:00
EverGrandeCity_PhoebesRoom_OnWarp:
map_script_2 VAR_TEMP_1, 0, EverGrandeCity_PhoebesRoom_EventScript_PlayerTurnNorth
2017-11-10 02:21:31 +01:00
.2byte 0
2021-07-20 21:18:31 +02:00
EverGrandeCity_PhoebesRoom_EventScript_PlayerTurnNorth::
turnobject OBJ_EVENT_ID_PLAYER, DIR_NORTH
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
EverGrandeCity_PhoebesRoom_OnFrame:
map_script_2 VAR_ELITE_4_STATE, 1, EverGrandeCity_PhoebesRoom_EventScript_WalkInCloseDoor
2017-11-10 02:21:31 +01:00
.2byte 0
2021-07-20 21:18:31 +02:00
EverGrandeCity_PhoebesRoom_EventScript_WalkInCloseDoor::
2017-11-10 02:21:31 +01:00
lockall
call PokemonLeague_EliteFour_EventScript_WalkInCloseDoor
setvar VAR_ELITE_4_STATE, 2
2017-11-10 02:21:31 +01:00
releaseall
end
2021-07-20 21:18:31 +02:00
EverGrandeCity_PhoebesRoom_OnLoad:
call_if_set FLAG_DEFEATED_ELITE_4_PHOEBE, EverGrandeCity_PhoebesRoom_EventScript_ResetAdvanceToNextRoom
call_if_eq VAR_ELITE_4_STATE, 2, EverGrandeCity_PhoebesRoom_EventScript_CloseDoor
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
EverGrandeCity_PhoebesRoom_EventScript_ResetAdvanceToNextRoom::
call PokemonLeague_EliteFour_EventScript_ResetAdvanceToNextRoom
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
EverGrandeCity_PhoebesRoom_EventScript_CloseDoor::
call PokemonLeague_EliteFour_EventScript_CloseDoor
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
EverGrandeCity_PhoebesRoom_EventScript_Phoebe::
2017-11-10 02:21:31 +01:00
lock
faceplayer
goto_if_set FLAG_DEFEATED_ELITE_4_PHOEBE, EverGrandeCity_PhoebesRoom_EventScript_PostBattleSpeech
2021-05-21 22:08:00 +02:00
playbgm MUS_ENCOUNTER_ELITE_FOUR, FALSE
2020-01-08 21:12:10 +01:00
msgbox EverGrandeCity_PhoebesRoom_Text_IntroSpeech, MSGBOX_DEFAULT
trainerbattle_no_intro TRAINER_PHOEBE, EverGrandeCity_PhoebesRoom_Text_Defeat
goto EverGrandeCity_PhoebesRoom_EventScript_Defeated
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
EverGrandeCity_PhoebesRoom_EventScript_PostBattleSpeech::
msgbox EverGrandeCity_PhoebesRoom_Text_PostBattleSpeech, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
EverGrandeCity_PhoebesRoom_EventScript_Defeated::
2019-01-02 22:12:43 +01:00
setflag FLAG_DEFEATED_ELITE_4_PHOEBE
call PokemonLeague_EliteFour_SetAdvanceToNextRoomMetatiles
msgbox EverGrandeCity_PhoebesRoom_Text_PostBattleSpeech, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
EverGrandeCity_PhoebesRoom_Text_IntroSpeech:
2017-11-10 02:21:31 +01:00
.string "Ahahaha!\p"
2018-12-07 16:41:08 +01:00
.string "I'm PHOEBE of the ELITE FOUR.\n"
2017-11-10 02:21:31 +01:00
.string "I did my training on MT. PYRE.\p"
.string "While I trained, I gained the ability\n"
.string "to commune with GHOST-type POKéMON.\p"
.string "Yes, the bond I developed with POKéMON\n"
.string "is extremely tight.\p"
.string "So, come on, just try and see if you can\n"
.string "even inflict damage on my POKéMON!$"
2021-07-20 21:18:31 +02:00
EverGrandeCity_PhoebesRoom_Text_Defeat:
2017-11-10 02:21:31 +01:00
.string "Oh, darn.\n"
2018-12-07 16:41:08 +01:00
.string "I've gone and lost.$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
EverGrandeCity_PhoebesRoom_Text_PostBattleSpeech:
2018-12-07 16:41:08 +01:00
.string "There's a definite bond between you\n"
2017-11-10 02:21:31 +01:00
.string "and your POKéMON, too.\p"
2018-12-07 16:41:08 +01:00
.string "I didn't recognize it, so it's only\n"
2017-11-10 02:21:31 +01:00
.string "natural that I lost.\p"
2018-12-07 16:41:08 +01:00
.string "Yup, I'd like to see how far your bond\n"
2017-11-10 02:21:31 +01:00
.string "will carry you.\p"
.string "Go ahead, move on to the next room.$"