2017-11-10 02:21:31 +01:00
|
|
|
EverGrandeCity_DrakesRoom_MapScripts:: @ 822869C
|
2019-10-13 21:40:15 +02:00
|
|
|
map_script MAP_SCRIPT_ON_FRAME_TABLE, EverGrandeCity_DrakesRoom_OnFrame
|
|
|
|
map_script MAP_SCRIPT_ON_LOAD, EverGrandeCity_DrakesRoom_OnLoad
|
|
|
|
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, EverGrandeCity_SidneysRoom_OnWarp
|
2017-11-10 02:21:31 +01:00
|
|
|
.byte 0
|
|
|
|
|
2019-10-08 08:25:31 +02:00
|
|
|
@ Unused, Drake uses Sidneys identical OnWarp for some reason
|
2019-10-13 21:40:15 +02:00
|
|
|
EverGrandeCity_DrakesRoom_OnWarp: @ 82286AC
|
2019-10-08 08:25:31 +02:00
|
|
|
map_script_2 VAR_TEMP_1, 0, EverGrandeCity_DrakesRoom_EventScript_PlayerTurnNorth
|
2017-11-10 08:36:41 +01:00
|
|
|
.2byte 0
|
|
|
|
|
2019-10-08 08:25:31 +02:00
|
|
|
EverGrandeCity_DrakesRoom_EventScript_PlayerTurnNorth:: @ 82286B6
|
2019-11-21 05:12:51 +01:00
|
|
|
turnobject OBJ_EVENT_ID_PLAYER, DIR_NORTH
|
2017-11-10 08:36:41 +01:00
|
|
|
end
|
2017-11-10 02:21:31 +01:00
|
|
|
|
2019-10-13 21:40:15 +02:00
|
|
|
EverGrandeCity_DrakesRoom_OnFrame: @ 82286BB
|
2019-10-08 08:25:31 +02:00
|
|
|
map_script_2 VAR_ELITE_4_STATE, 3, EverGrandeCity_DrakesRoom_EventScript_WalkInCloseDoor
|
2017-11-10 02:21:31 +01:00
|
|
|
.2byte 0
|
|
|
|
|
2019-10-08 08:25:31 +02:00
|
|
|
EverGrandeCity_DrakesRoom_EventScript_WalkInCloseDoor:: @ 82286C5
|
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, 4
|
2017-11-10 02:21:31 +01:00
|
|
|
releaseall
|
|
|
|
end
|
|
|
|
|
2019-10-13 21:40:15 +02:00
|
|
|
EverGrandeCity_DrakesRoom_OnLoad: @ 82286D2
|
2019-10-08 08:25:31 +02:00
|
|
|
call_if_set FLAG_DEFEATED_ELITE_4_DRAKE, EverGrandeCity_DrakesRoom_EventScript_ResetAdvanceToNextRoom
|
2019-02-22 10:01:38 +01:00
|
|
|
compare VAR_ELITE_4_STATE, 4
|
2019-10-08 08:25:31 +02:00
|
|
|
call_if_eq EverGrandeCity_DrakesRoom_EventScript_CloseDoor
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2019-10-08 08:25:31 +02:00
|
|
|
EverGrandeCity_DrakesRoom_EventScript_ResetAdvanceToNextRoom:: @ 82286E7
|
|
|
|
call PokemonLeague_EliteFour_EventScript_ResetAdvanceToNextRoom
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2019-10-08 08:25:31 +02:00
|
|
|
EverGrandeCity_DrakesRoom_EventScript_CloseDoor:: @ 82286ED
|
|
|
|
call PokemonLeague_EliteFour_EventScript_CloseDoor
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2019-10-08 08:25:31 +02:00
|
|
|
EverGrandeCity_DrakesRoom_EventScript_Drake:: @ 82286F3
|
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_DRAKE, EverGrandeCity_DrakesRoom_EventScript_PostBattleSpeech
|
2017-12-22 08:46:19 +01:00
|
|
|
playbgm MUS_SITENNOU, 0
|
2019-10-08 08:25:31 +02:00
|
|
|
msgbox EverGrandeCity_DrakesRoom_Text_PreBattleSpeech, MSGBOX_DEFAULT
|
|
|
|
trainerbattle_no_intro TRAINER_DRAKE, EverGrandeCity_DrakesRoom_Text_Defeat
|
|
|
|
goto EverGrandeCity_DrakesRoom_EventScript_Defeated
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2019-10-08 08:25:31 +02:00
|
|
|
EverGrandeCity_DrakesRoom_EventScript_PostBattleSpeech:: @ 822871A
|
|
|
|
msgbox EverGrandeCity_DrakesRoom_Text_PostBattleSpeech, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2019-10-08 08:25:31 +02:00
|
|
|
EverGrandeCity_DrakesRoom_EventScript_Defeated:: @ 8228724
|
2017-11-10 02:21:31 +01:00
|
|
|
setvar VAR_0x8004, 0
|
2019-11-17 23:34:11 +01:00
|
|
|
special Script_TryGainNewFanFromCounter
|
2019-01-02 22:12:43 +01:00
|
|
|
setflag FLAG_DEFEATED_ELITE_4_DRAKE
|
2019-10-08 08:25:31 +02:00
|
|
|
call PokemonLeague_EliteFour_SetAdvanceToNextRoomMetatiles
|
|
|
|
msgbox EverGrandeCity_DrakesRoom_Text_PostBattleSpeech, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2019-10-08 08:25:31 +02:00
|
|
|
EverGrandeCity_DrakesRoom_Text_PreBattleSpeech: @ 822873E
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "I am the last of the POKéMON LEAGUE\n"
|
|
|
|
.string "ELITE FOUR, DRAKE the DRAGON master!\p"
|
|
|
|
.string "In their natural state, POKéMON are\n"
|
|
|
|
.string "wild living things. They are free.\p"
|
|
|
|
.string "At times, they hinder us.\n"
|
|
|
|
.string "At times, they help us.\p"
|
|
|
|
.string "For us to battle with POKéMON as\n"
|
|
|
|
.string "partners, do you know what it takes?\p"
|
|
|
|
.string "Do you know what is needed?\p"
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "If you don't, then you will never\n"
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "prevail over me!$"
|
|
|
|
|
2019-10-08 08:25:31 +02:00
|
|
|
EverGrandeCity_DrakesRoom_Text_Defeat: @ 8228895
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "Superb, it should be said.$"
|
|
|
|
|
2019-10-08 08:25:31 +02:00
|
|
|
EverGrandeCity_DrakesRoom_Text_PostBattleSpeech: @ 82288B0
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "You deserve every credit for coming\n"
|
|
|
|
.string "this far as a TRAINER of POKéMON.\p"
|
|
|
|
.string "You do seem to know what is needed.\p"
|
|
|
|
.string "Yes, what a TRAINER needs is a\n"
|
|
|
|
.string "virtuous heart.\p"
|
|
|
|
.string "POKéMON touch the good hearts of\n"
|
|
|
|
.string "TRAINERS and learn good from wrong.\p"
|
|
|
|
.string "They touch the good hearts of\n"
|
|
|
|
.string "TRAINERS and grow strong.\p"
|
|
|
|
.string "Go! Go onwards!\n"
|
|
|
|
.string "The CHAMPION is waiting!$"
|
|
|
|
|