2022-05-19 19:14:13 +02:00
|
|
|
EverGrandeCity_PhoebesRoom_MapScripts::
|
|
|
|
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
|
|
|
|
.byte 0
|
|
|
|
|
|
|
|
EverGrandeCity_PhoebesRoom_OnWarp:
|
|
|
|
map_script_2 VAR_TEMP_1, 0, EverGrandeCity_PhoebesRoom_EventScript_PlayerTurnNorth
|
|
|
|
.2byte 0
|
|
|
|
|
|
|
|
EverGrandeCity_PhoebesRoom_EventScript_PlayerTurnNorth::
|
|
|
|
turnobject OBJ_EVENT_ID_PLAYER, DIR_NORTH
|
|
|
|
end
|
|
|
|
|
|
|
|
EverGrandeCity_PhoebesRoom_OnFrame:
|
|
|
|
map_script_2 VAR_ELITE_4_STATE, 1, EverGrandeCity_PhoebesRoom_EventScript_WalkInCloseDoor
|
|
|
|
.2byte 0
|
|
|
|
|
|
|
|
EverGrandeCity_PhoebesRoom_EventScript_WalkInCloseDoor::
|
|
|
|
lockall
|
|
|
|
call PokemonLeague_EliteFour_EventScript_WalkInCloseDoor
|
|
|
|
setvar VAR_ELITE_4_STATE, 2
|
|
|
|
releaseall
|
|
|
|
end
|
|
|
|
|
|
|
|
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
|
|
|
|
end
|
|
|
|
|
|
|
|
EverGrandeCity_PhoebesRoom_EventScript_ResetAdvanceToNextRoom::
|
|
|
|
call PokemonLeague_EliteFour_EventScript_ResetAdvanceToNextRoom
|
|
|
|
return
|
|
|
|
|
|
|
|
EverGrandeCity_PhoebesRoom_EventScript_CloseDoor::
|
|
|
|
call PokemonLeague_EliteFour_EventScript_CloseDoor
|
|
|
|
return
|
|
|
|
|
|
|
|
EverGrandeCity_PhoebesRoom_EventScript_Phoebe::
|
|
|
|
lock
|
|
|
|
faceplayer
|
|
|
|
goto_if_set FLAG_DEFEATED_ELITE_4_PHOEBE, EverGrandeCity_PhoebesRoom_EventScript_PostBattleSpeech
|
|
|
|
playbgm MUS_ENCOUNTER_ELITE_FOUR, FALSE
|
|
|
|
msgbox EverGrandeCity_PhoebesRoom_Text_IntroSpeech, MSGBOX_DEFAULT
|
|
|
|
setvar VAR_FORCE_BATTLE_ANIMS, 1
|
|
|
|
trainerbattle_no_intro TRAINER_PHOEBE, EverGrandeCity_PhoebesRoom_Text_Defeat
|
|
|
|
goto EverGrandeCity_PhoebesRoom_EventScript_Defeated
|
|
|
|
end
|
|
|
|
|
|
|
|
EverGrandeCity_PhoebesRoom_EventScript_PostBattleSpeech::
|
|
|
|
msgbox EverGrandeCity_PhoebesRoom_Text_PostBattleSpeech, MSGBOX_DEFAULT
|
|
|
|
release
|
|
|
|
end
|
|
|
|
|
|
|
|
EverGrandeCity_PhoebesRoom_EventScript_Defeated::
|
|
|
|
setvar VAR_FORCE_BATTLE_ANIMS, 0
|
|
|
|
setflag FLAG_DEFEATED_ELITE_4_PHOEBE
|
|
|
|
call PokemonLeague_EliteFour_SetAdvanceToNextRoomMetatiles
|
|
|
|
msgbox EverGrandeCity_PhoebesRoom_Text_PostBattleSpeech, MSGBOX_DEFAULT
|
|
|
|
release
|
|
|
|
end
|
|
|
|
|
|
|
|
EverGrandeCity_PhoebesRoom_Text_IntroSpeech:
|
|
|
|
.string "Ahahaha!\p"
|
2022-08-21 22:56:26 +02:00
|
|
|
.string "I'm Phoebe of the Elite Four.\n"
|
|
|
|
.string "I did my training on Mt. Pyre.\p"
|
2022-05-19 19:14:13 +02:00
|
|
|
.string "While I trained, I gained the ability\n"
|
2022-08-21 22:56:26 +02:00
|
|
|
.string "to commune with Ghost-type Pokémon.\p"
|
|
|
|
.string "Yes, the bond I developed with Pokémon\n"
|
2022-05-19 19:14:13 +02:00
|
|
|
.string "is extremely tight.\p"
|
|
|
|
.string "So, come on, just try and see if you can\n"
|
2022-08-21 22:56:26 +02:00
|
|
|
.string "even inflict damage on my Pokémon!$"
|
2022-05-19 19:14:13 +02:00
|
|
|
|
|
|
|
EverGrandeCity_PhoebesRoom_Text_Defeat:
|
|
|
|
.string "Oh, darn.\n"
|
|
|
|
.string "I've gone and lost.$"
|
|
|
|
|
|
|
|
EverGrandeCity_PhoebesRoom_Text_PostBattleSpeech:
|
|
|
|
.string "There's a definite bond between you\n"
|
2022-08-21 22:56:26 +02:00
|
|
|
.string "and your Pokémon, too.\p"
|
2022-05-19 19:14:13 +02:00
|
|
|
.string "I didn't recognize it, so it's only\n"
|
|
|
|
.string "natural that I lost.\p"
|
|
|
|
.string "Yup, I'd like to see how far your bond\n"
|
|
|
|
.string "will carry you.\p"
|
|
|
|
.string "Go ahead, move on to the next room.$"
|
|
|
|
|