2025-06-02 14:17:22 +08:00

70 lines
2.7 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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 LOCALID_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
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::
setflag FLAG_DEFEATED_ELITE_4_PHOEBE
call PokemonLeague_EliteFour_SetAdvanceToNextRoomMetatiles
msgbox EverGrandeCity_PhoebesRoom_Text_PostBattleSpeech, MSGBOX_DEFAULT
release
end
EverGrandeCity_PhoebesRoom_Text_IntroSpeech:
.string "啊哈哈哈!\p我是四天王中的芙蓉。\n我在送神山进行修行。\p在修行过程中我得到了能与\n幽灵宝可梦亲密交流的能力。\p没错我和宝可梦之间的\n牵绊非常地深。\p那么来试试看你有没有能力\n伤到我的宝可梦吧!$"
EverGrandeCity_PhoebesRoom_Text_Defeat:
.string "哦,天呀。\n我输了。$"
EverGrandeCity_PhoebesRoom_Text_PostBattleSpeech:
.string "你和你的宝可梦也有着\n不容置疑的牵绊啊。\p我竟然没看出来这一点\n也难怪是我输了。\p嗯我想看看到你们的牵绊\n能带你们到多远。\p前进吧继续去下一个房间。$"