2021-07-20 21:18:31 +02:00
|
|
|
EverGrandeCity_SidneysRoom_MapScripts::
|
2019-10-13 21:40:15 +02:00
|
|
|
map_script MAP_SCRIPT_ON_LOAD, EverGrandeCity_SidneysRoom_OnLoad
|
|
|
|
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, EverGrandeCity_SidneysRoom_OnWarp
|
2019-04-22 22:31:51 +02:00
|
|
|
map_script MAP_SCRIPT_ON_TRANSITION, EverGrandeCity_SidneysRoom_OnTransition
|
2019-10-13 21:40:15 +02:00
|
|
|
map_script MAP_SCRIPT_ON_FRAME_TABLE, EverGrandeCity_SidneysRoom_OnFrame
|
2017-11-10 02:21:31 +01:00
|
|
|
.byte 0
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
EverGrandeCity_SidneysRoom_OnTransition:
|
2019-01-02 22:12:43 +01:00
|
|
|
setflag FLAG_MET_SCOTT_IN_EVERGRANDE
|
2018-10-18 04:07:23 +02:00
|
|
|
setflag FLAG_HIDE_EVER_GRANDE_POKEMON_CENTER_1F_SCOTT
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
EverGrandeCity_SidneysRoom_OnLoad:
|
2019-10-08 08:25:31 +02:00
|
|
|
call_if_set FLAG_DEFEATED_ELITE_4_SIDNEY, EverGrandeCity_SidneysRoom_EventScript_ResetAdvanceToNextRoom
|
2021-11-19 05:06:30 +01:00
|
|
|
call_if_eq VAR_ELITE_4_STATE, 1, EverGrandeCity_SidneysRoom_EventScript_CloseDoor
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
EverGrandeCity_SidneysRoom_EventScript_ResetAdvanceToNextRoom::
|
2019-10-08 08:25:31 +02:00
|
|
|
call PokemonLeague_EliteFour_EventScript_ResetAdvanceToNextRoom
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
EverGrandeCity_SidneysRoom_EventScript_CloseDoor::
|
2019-10-08 08:25:31 +02:00
|
|
|
call PokemonLeague_EliteFour_EventScript_CloseDoor
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
EverGrandeCity_SidneysRoom_OnWarp:
|
2019-10-08 08:25:31 +02:00
|
|
|
map_script_2 VAR_TEMP_1, 0, EverGrandeCity_SidneysRoom_EventScript_PlayerTurnNorth
|
2017-11-10 02:21:31 +01:00
|
|
|
.2byte 0
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
EverGrandeCity_SidneysRoom_EventScript_PlayerTurnNorth::
|
2019-11-21 05:12:51 +01:00
|
|
|
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_SidneysRoom_OnFrame:
|
2019-10-08 08:25:31 +02:00
|
|
|
map_script_2 VAR_ELITE_4_STATE, 0, EverGrandeCity_SidneysRoom_EventScript_WalkInCloseDoor
|
2017-11-10 02:21:31 +01:00
|
|
|
.2byte 0
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
EverGrandeCity_SidneysRoom_EventScript_WalkInCloseDoor::
|
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, 1
|
2017-11-10 02:21:31 +01:00
|
|
|
releaseall
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
EverGrandeCity_SidneysRoom_EventScript_Sidney::
|
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_SIDNEY, EverGrandeCity_SidneysRoom_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_SidneysRoom_Text_IntroSpeech, MSGBOX_DEFAULT
|
2019-10-08 08:25:31 +02:00
|
|
|
trainerbattle_no_intro TRAINER_SIDNEY, EverGrandeCity_SidneysRoom_Text_Defeat
|
|
|
|
goto EverGrandeCity_SidneysRoom_EventScript_Defeated
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
EverGrandeCity_SidneysRoom_EventScript_PostBattleSpeech::
|
2019-10-08 08:25:31 +02:00
|
|
|
msgbox EverGrandeCity_SidneysRoom_Text_PostBattleSpeech, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
EverGrandeCity_SidneysRoom_EventScript_Defeated::
|
2019-04-16 16:40:32 +02:00
|
|
|
setflag FLAG_DEFEATED_ELITE_4_SIDNEY
|
2019-10-08 08:25:31 +02:00
|
|
|
call PokemonLeague_EliteFour_SetAdvanceToNextRoomMetatiles
|
|
|
|
msgbox EverGrandeCity_SidneysRoom_Text_PostBattleSpeech, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
EverGrandeCity_SidneysRoom_Text_IntroSpeech:
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "Welcome, challenger!\n"
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "I'm SIDNEY of the ELITE FOUR.\p"
|
|
|
|
.string "I like that look you're giving me.\n"
|
|
|
|
.string "I guess you'll give me a good match.\l"
|
|
|
|
.string "That's good! Looking real good!\p"
|
|
|
|
.string "All right! You and me, let's enjoy\n"
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "a battle that can only be staged\l"
|
|
|
|
.string "here in the POKéMON LEAGUE!$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
EverGrandeCity_SidneysRoom_Text_Defeat:
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "Well, how do you like that? I lost!\n"
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "Eh, it was fun, so it doesn't matter.$"
|
2017-11-10 02:21:31 +01:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
EverGrandeCity_SidneysRoom_Text_PostBattleSpeech:
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "Well, listen to what this loser has\n"
|
|
|
|
.string "to say.\p"
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "You've got what it takes to go far.\n"
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "Now, go on to the next room and enjoy\l"
|
|
|
|
.string "your next battle!$"
|
|
|
|
|