mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-17 03:57:38 +01:00
89 lines
3.2 KiB
PHP
89 lines
3.2 KiB
PHP
EverGrandeCity_SidneysRoom_MapScripts:: @ 8227F01
|
|
map_script MAP_SCRIPT_ON_LOAD, EverGrandeCity_SidneysRoom_MapScript1_OnLoad
|
|
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, EverGrandeCity_SidneysRoom_MapScript2_OnWarp
|
|
map_script MAP_SCRIPT_ON_TRANSITION, EverGrandeCity_SidneysRoom_OnTransition
|
|
map_script MAP_SCRIPT_ON_FRAME_TABLE, EverGrandeCity_SidneysRoom_MapScript2_OnFrame
|
|
.byte 0
|
|
|
|
EverGrandeCity_SidneysRoom_OnTransition: @ 8227F16
|
|
setflag FLAG_MET_SCOTT_IN_EVERGRANDE
|
|
setflag FLAG_HIDE_EVER_GRANDE_POKEMON_CENTER_1F_SCOTT
|
|
end
|
|
|
|
EverGrandeCity_SidneysRoom_MapScript1_OnLoad: @ 8227F1D
|
|
call_if_set FLAG_DEFEATED_ELITE_4_SIDNEY, EverGrandeCity_SidneysRoom_EventScript_ResetAdvanceToNextRoom
|
|
compare VAR_ELITE_4_STATE, 1
|
|
call_if_eq EverGrandeCity_SidneysRoom_EventScript_CloseDoor
|
|
end
|
|
|
|
EverGrandeCity_SidneysRoom_EventScript_ResetAdvanceToNextRoom:: @ 8227F32
|
|
call PokemonLeague_EliteFour_EventScript_ResetAdvanceToNextRoom
|
|
return
|
|
|
|
EverGrandeCity_SidneysRoom_EventScript_CloseDoor:: @ 8227F38
|
|
call PokemonLeague_EliteFour_EventScript_CloseDoor
|
|
return
|
|
|
|
EverGrandeCity_SidneysRoom_MapScript2_OnWarp: @ 8227F3E
|
|
map_script_2 VAR_TEMP_1, 0, EverGrandeCity_SidneysRoom_EventScript_PlayerTurnNorth
|
|
.2byte 0
|
|
|
|
EverGrandeCity_SidneysRoom_EventScript_PlayerTurnNorth:: @ 8227F48
|
|
turnobject EVENT_OBJ_ID_PLAYER, DIR_NORTH
|
|
end
|
|
|
|
EverGrandeCity_SidneysRoom_MapScript2_OnFrame: @ 8227F4D
|
|
map_script_2 VAR_ELITE_4_STATE, 0, EverGrandeCity_SidneysRoom_EventScript_WalkInCloseDoor
|
|
.2byte 0
|
|
|
|
EverGrandeCity_SidneysRoom_EventScript_WalkInCloseDoor:: @ 8227F57
|
|
lockall
|
|
call PokemonLeague_EliteFour_EventScript_WalkInCloseDoor
|
|
setvar VAR_ELITE_4_STATE, 1
|
|
releaseall
|
|
end
|
|
|
|
EverGrandeCity_SidneysRoom_EventScript_Sidney:: @ 8227F64
|
|
lock
|
|
faceplayer
|
|
goto_if_set FLAG_DEFEATED_ELITE_4_SIDNEY, EverGrandeCity_SidneysRoom_EventScript_PostBattleSpeech
|
|
playbgm MUS_SITENNOU, 0
|
|
msgbox EverGrandeCity_SidneysRoom_Text_PreBattleSpeech, MSGBOX_DEFAULT
|
|
trainerbattle_no_intro TRAINER_SIDNEY, EverGrandeCity_SidneysRoom_Text_Defeat
|
|
goto EverGrandeCity_SidneysRoom_EventScript_Defeated
|
|
end
|
|
|
|
EverGrandeCity_SidneysRoom_EventScript_PostBattleSpeech:: @ 8227F8B
|
|
msgbox EverGrandeCity_SidneysRoom_Text_PostBattleSpeech, MSGBOX_DEFAULT
|
|
release
|
|
end
|
|
|
|
EverGrandeCity_SidneysRoom_EventScript_Defeated:: @ 8227F95
|
|
setflag FLAG_DEFEATED_ELITE_4_SIDNEY
|
|
call PokemonLeague_EliteFour_SetAdvanceToNextRoomMetatiles
|
|
msgbox EverGrandeCity_SidneysRoom_Text_PostBattleSpeech, MSGBOX_DEFAULT
|
|
release
|
|
end
|
|
|
|
EverGrandeCity_SidneysRoom_Text_PreBattleSpeech: @ 8227FA7
|
|
.string "Welcome, challenger!\n"
|
|
.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"
|
|
.string "a battle that can only be staged\l"
|
|
.string "here in the POKéMON LEAGUE!$"
|
|
|
|
EverGrandeCity_SidneysRoom_Text_Defeat: @ 82280A2
|
|
.string "Well, how do you like that? I lost!\n"
|
|
.string "Eh, it was fun, so it doesn't matter.$"
|
|
|
|
EverGrandeCity_SidneysRoom_Text_PostBattleSpeech: @ 82280EC
|
|
.string "Well, listen to what this loser has\n"
|
|
.string "to say.\p"
|
|
.string "You've got what it takes to go far.\n"
|
|
.string "Now, go on to the next room and enjoy\l"
|
|
.string "your next battle!$"
|
|
|