2017-11-10 02:21:31 +01:00
|
|
|
EverGrandeCity_GlaciasRoom_MapScripts:: @ 8228412
|
2019-10-13 21:40:15 +02:00
|
|
|
map_script MAP_SCRIPT_ON_FRAME_TABLE, EverGrandeCity_GlaciasRoom_OnFrame
|
|
|
|
map_script MAP_SCRIPT_ON_LOAD, EverGrandeCity_GlaciasRoom_OnLoad
|
|
|
|
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, EverGrandeCity_GlaciasRoom_OnWarp
|
2017-11-10 02:21:31 +01:00
|
|
|
.byte 0
|
|
|
|
|
2019-10-13 21:40:15 +02:00
|
|
|
EverGrandeCity_GlaciasRoom_OnWarp: @ 8228422
|
2019-10-08 08:25:31 +02:00
|
|
|
map_script_2 VAR_TEMP_1, 0, EverGrandeCity_GlaciasRoom_EventScript_PlayerTurnNorth
|
2017-11-10 02:21:31 +01:00
|
|
|
.2byte 0
|
|
|
|
|
2019-10-08 08:25:31 +02:00
|
|
|
EverGrandeCity_GlaciasRoom_EventScript_PlayerTurnNorth:: @ 822842C
|
2019-11-21 05:12:51 +01:00
|
|
|
turnobject OBJ_EVENT_ID_PLAYER, DIR_NORTH
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2019-10-13 21:40:15 +02:00
|
|
|
EverGrandeCity_GlaciasRoom_OnFrame: @ 8228431
|
2019-10-08 08:25:31 +02:00
|
|
|
map_script_2 VAR_ELITE_4_STATE, 2, EverGrandeCity_GlaciasRoom_EventScript_WalkInCloseDoor
|
2017-11-10 02:21:31 +01:00
|
|
|
.2byte 0
|
|
|
|
|
2019-10-08 08:25:31 +02:00
|
|
|
EverGrandeCity_GlaciasRoom_EventScript_WalkInCloseDoor:: @ 822843B
|
2017-11-10 02:21:31 +01:00
|
|
|
lockall
|
2019-10-08 08:25:31 +02:00
|
|
|
call PokemonLeague_EliteFour_EventScript_WalkInCloseDoor
|
2019-02-22 10:01:38 +01:00
|
|
|
setvar VAR_ELITE_4_STATE, 3
|
2017-11-10 02:21:31 +01:00
|
|
|
releaseall
|
|
|
|
end
|
|
|
|
|
2019-10-13 21:40:15 +02:00
|
|
|
EverGrandeCity_GlaciasRoom_OnLoad: @ 8228448
|
2019-10-08 08:25:31 +02:00
|
|
|
call_if_set FLAG_DEFEATED_ELITE_4_GLACIA, EverGrandeCity_GlaciasRoom_EventScript_ResetAdvanceToNextRoom
|
2019-02-22 10:01:38 +01:00
|
|
|
compare VAR_ELITE_4_STATE, 3
|
2019-10-08 08:25:31 +02:00
|
|
|
call_if_eq EverGrandeCity_GlaciasRoom_EventScript_CloseDoor
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2019-10-08 08:25:31 +02:00
|
|
|
EverGrandeCity_GlaciasRoom_EventScript_ResetAdvanceToNextRoom:: @ 822845D
|
|
|
|
call PokemonLeague_EliteFour_EventScript_ResetAdvanceToNextRoom
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2019-10-08 08:25:31 +02:00
|
|
|
EverGrandeCity_GlaciasRoom_EventScript_CloseDoor:: @ 8228463
|
|
|
|
call PokemonLeague_EliteFour_EventScript_CloseDoor
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2019-10-08 08:25:31 +02:00
|
|
|
EverGrandeCity_GlaciasRoom_EventScript_Glacia:: @ 8228469
|
2017-11-10 02:21:31 +01:00
|
|
|
lock
|
|
|
|
faceplayer
|
2019-10-08 08:25:31 +02:00
|
|
|
goto_if_set FLAG_DEFEATED_ELITE_4_GLACIA, EverGrandeCity_GlaciasRoom_EventScript_PostBattleSpeech
|
2020-08-21 00:02:00 +02:00
|
|
|
playbgm MUS_ENCOUNTER_ELITE_FOUR, 0
|
2020-01-08 21:12:10 +01:00
|
|
|
msgbox EverGrandeCity_GlaciasRoom_Text_IntroSpeech, MSGBOX_DEFAULT
|
2019-10-08 08:25:31 +02:00
|
|
|
trainerbattle_no_intro TRAINER_GLACIA, EverGrandeCity_GlaciasRoom_Text_Defeat
|
|
|
|
goto EverGrandeCity_GlaciasRoom_EventScript_Defeated
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2019-10-08 08:25:31 +02:00
|
|
|
EverGrandeCity_GlaciasRoom_EventScript_PostBattleSpeech:: @ 8228490
|
|
|
|
msgbox EverGrandeCity_GlaciasRoom_Text_PostBattleSpeech, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2019-10-08 08:25:31 +02:00
|
|
|
EverGrandeCity_GlaciasRoom_EventScript_Defeated:: @ 822849A
|
2019-01-02 22:12:43 +01:00
|
|
|
setflag FLAG_DEFEATED_ELITE_4_GLACIA
|
2019-10-08 08:25:31 +02:00
|
|
|
call PokemonLeague_EliteFour_SetAdvanceToNextRoomMetatiles
|
|
|
|
msgbox EverGrandeCity_GlaciasRoom_Text_PostBattleSpeech, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2020-01-08 21:12:10 +01:00
|
|
|
EverGrandeCity_GlaciasRoom_Text_IntroSpeech: @ 82284AC
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "Welcome, my name is GLACIA\n"
|
|
|
|
.string "of the ELITE FOUR.\p"
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "I've traveled from afar to HOENN\n"
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "so that I may hone my ice skills.\p"
|
|
|
|
.string "But all I have seen are challenges by\n"
|
|
|
|
.string "weak TRAINERS and their POKéMON.\p"
|
|
|
|
.string "What about you?\p"
|
|
|
|
.string "It would please me to no end if I could\n"
|
|
|
|
.string "go all out against you!$"
|
|
|
|
|
2019-10-08 08:25:31 +02:00
|
|
|
EverGrandeCity_GlaciasRoom_Text_Defeat: @ 82285B4
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "You and your POKéMON…\n"
|
|
|
|
.string "How hot your spirits burn!\p"
|
|
|
|
.string "The all-consuming heat overwhelms.\p"
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "It's no surprise that my icy skills\n"
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "failed to harm you.$"
|
|
|
|
|
2019-10-08 08:25:31 +02:00
|
|
|
EverGrandeCity_GlaciasRoom_Text_PostBattleSpeech: @ 8228640
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "Advance to the next room.\p"
|
|
|
|
.string "And there, confirm the truly fearsome\n"
|
|
|
|
.string "side of the POKéMON LEAGUE.$"
|
|
|
|
|