pokeemerald/data/maps/EverGrandeCity_ChampionsRoom/scripts.inc

345 lines
11 KiB
PHP
Raw Permalink Normal View History

.set LOCALID_WALLACE, 1
.set LOCALID_RIVAL, 2
.set LOCALID_BIRCH, 3
2021-07-20 21:18:31 +02:00
EverGrandeCity_ChampionsRoom_MapScripts::
map_script MAP_SCRIPT_ON_TRANSITION, EverGrandeCity_ChampionsRoom_OnTransition
2019-10-13 21:40:15 +02:00
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, EverGrandeCity_ChampionsRoom_OnWarp
map_script MAP_SCRIPT_ON_FRAME_TABLE, EverGrandeCity_ChampionsRoom_OnFrame
2017-11-10 02:21:31 +01:00
.byte 0
2021-07-20 21:18:31 +02:00
EverGrandeCity_ChampionsRoom_OnTransition:
call Common_EventScript_SetupRivalGfxId
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
EverGrandeCity_ChampionsRoom_OnWarp:
map_script_2 VAR_TEMP_1, 0, EverGrandeCity_ChampionsRoom_EventScript_PlayerTurnNorth
2017-11-10 02:21:31 +01:00
.2byte 0
2021-07-20 21:18:31 +02:00
EverGrandeCity_ChampionsRoom_EventScript_PlayerTurnNorth::
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_ChampionsRoom_OnFrame:
map_script_2 VAR_TEMP_1, 0, EverGrandeCity_ChampionsRoom_EventScript_EnterRoom
2017-11-10 02:21:31 +01:00
.2byte 0
2021-07-20 21:18:31 +02:00
EverGrandeCity_ChampionsRoom_EventScript_EnterRoom::
2017-11-10 02:21:31 +01:00
lockall
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkUp4
2017-11-10 02:21:31 +01:00
waitmovement 0
delay 40
applymovement OBJ_EVENT_ID_PLAYER, EverGrandeCity_ChampionsRoom_Movement_PlayerApproachWallace
2017-11-10 02:21:31 +01:00
waitmovement 0
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 1
goto EverGrandeCity_ChampionsRoom_EventScript_Wallace
releaseall
end
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
EverGrandeCity_ChampionsRoom_Movement_PlayerApproachWallace:
walk_up
walk_up
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
EverGrandeCity_ChampionsRoom_EventScript_Wallace::
2021-05-21 22:08:00 +02:00
playbgm MUS_ENCOUNTER_CHAMPION, FALSE
2020-01-08 21:12:10 +01:00
msgbox EverGrandeCity_ChampionsRoom_Text_IntroSpeech, MSGBOX_DEFAULT
trainerbattle_no_intro TRAINER_WALLACE, EverGrandeCity_ChampionsRoom_Text_Defeat
goto EverGrandeCity_ChampionsRoom_EventScript_Defeated
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
EverGrandeCity_ChampionsRoom_EventScript_Defeated::
2017-11-10 02:21:31 +01:00
playse SE_DOOR
2021-11-16 23:12:16 +01:00
setmetatile 6, 1, METATILE_EliteFour_OpenDoorChampion_Frame, FALSE
setmetatile 6, 2, METATILE_EliteFour_OpenDoorChampion_Opening, FALSE
2017-11-10 02:21:31 +01:00
special DrawWholeMapView
msgbox EverGrandeCity_ChampionsRoom_Text_PostBattleSpeech, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
playse SE_DOOR
checkplayergender
call_if_eq VAR_RESULT, MALE, EverGrandeCity_ChampionsRoom_EventScript_PlayMayMusic
call_if_eq VAR_RESULT, FEMALE, EverGrandeCity_ChampionsRoom_EventScript_PlayBrendanMusic
addobject LOCALID_RIVAL
call EverGrandeCity_ChampionsRoom_EventScript_RivalApproachPlayer
2017-11-10 02:21:31 +01:00
checkplayergender
goto_if_eq VAR_RESULT, MALE, EverGrandeCity_ChampionsRoom_EventScript_MayAdvice
goto_if_eq VAR_RESULT, FEMALE, EverGrandeCity_ChampionsRoom_EventScript_BrendanAdvice
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
EverGrandeCity_ChampionsRoom_EventScript_PlayMayMusic::
2021-05-21 22:08:00 +02:00
playbgm MUS_ENCOUNTER_MAY, FALSE
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
EverGrandeCity_ChampionsRoom_EventScript_PlayBrendanMusic::
2021-05-21 22:08:00 +02:00
playbgm MUS_ENCOUNTER_BRENDAN, FALSE
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
EverGrandeCity_ChampionsRoom_EventScript_MayAdvice::
msgbox EverGrandeCity_ChampionsRoom_Text_MayAdvice, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
delay 40
playse SE_PIN
applymovement LOCALID_RIVAL, Common_Movement_ExclamationMark
2017-11-10 02:21:31 +01:00
waitmovement 0
applymovement LOCALID_RIVAL, Common_Movement_Delay48
2017-11-10 02:21:31 +01:00
waitmovement 0
call EverGrandeCity_ChampionsRoom_EventScript_RivalLookBackAndForth
msgbox EverGrandeCity_ChampionsRoom_Text_MayItsAlreadyOver, MSGBOX_DEFAULT
goto EverGrandeCity_ChampionsRoom_EventScript_BirchArrivesExitForHoF
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
EverGrandeCity_ChampionsRoom_EventScript_BrendanAdvice::
msgbox EverGrandeCity_ChampionsRoom_Text_BrendanAdvice, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
delay 40
playse SE_PIN
applymovement LOCALID_RIVAL, Common_Movement_ExclamationMark
2017-11-10 02:21:31 +01:00
waitmovement 0
applymovement LOCALID_RIVAL, Common_Movement_Delay48
2017-11-10 02:21:31 +01:00
waitmovement 0
call EverGrandeCity_ChampionsRoom_EventScript_RivalLookBackAndForth
msgbox EverGrandeCity_ChampionsRoom_Text_BrendanYouveWon, MSGBOX_DEFAULT
goto EverGrandeCity_ChampionsRoom_EventScript_BirchArrivesExitForHoF
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
EverGrandeCity_ChampionsRoom_EventScript_BirchArrivesExitForHoF::
2017-11-10 02:21:31 +01:00
closemessage
addobject LOCALID_BIRCH
applymovement LOCALID_BIRCH, EverGrandeCity_ChampionsRoom_Movement_BirchArrives
2017-11-10 02:21:31 +01:00
waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFasterRight
2017-11-10 02:21:31 +01:00
waitmovement 0
msgbox EverGrandeCity_ChampionsRoom_Text_BirchArriveRatePokedex, MSGBOX_DEFAULT
2019-10-07 07:13:34 +02:00
call ProfBirch_EventScript_RatePokedex
msgbox EverGrandeCity_ChampionsRoom_Text_BirchCongratulations, MSGBOX_DEFAULT
applymovement LOCALID_WALLACE, Common_Movement_WalkInPlaceFasterUp
2017-11-10 02:21:31 +01:00
waitmovement 0
delay 20
applymovement LOCALID_WALLACE, Common_Movement_WalkInPlaceFasterDown
2017-11-10 02:21:31 +01:00
waitmovement 0
msgbox EverGrandeCity_ChampionsRoom_Text_WallaceComeWithMe, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
delay 30
applymovement LOCALID_WALLACE, EverGrandeCity_ChampionsRoom_Movement_WallaceExitStart
applymovement OBJ_EVENT_ID_PLAYER, EverGrandeCity_ChampionsRoom_Movement_PlayerExitStart
applymovement LOCALID_BIRCH, Common_Movement_WalkInPlaceFasterUp
applymovement LOCALID_RIVAL, EverGrandeCity_ChampionsRoom_Movement_RivalFollows
2017-11-10 02:21:31 +01:00
waitmovement 0
delay 20
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFasterDown
2017-11-10 02:21:31 +01:00
waitmovement 0
msgbox EverGrandeCity_ChampionsRoom_Text_WallaceWaitOutside, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
checkplayergender
call_if_eq VAR_RESULT, MALE, EverGrandeCity_ChampionsRoom_EventScript_MayCongratulations
call_if_eq VAR_RESULT, FEMALE, EverGrandeCity_ChampionsRoom_EventScript_BrendanCongratulations
2017-11-10 02:21:31 +01:00
closemessage
applymovement LOCALID_WALLACE, EverGrandeCity_ChampionsRoom_Movement_WallaceExit
applymovement OBJ_EVENT_ID_PLAYER, EverGrandeCity_ChampionsRoom_Movement_PlayerExit
2017-11-10 02:21:31 +01:00
waitmovement 0
2018-10-18 21:28:59 +02:00
setflag FLAG_HIDE_PETALBURG_GYM_GREETER
warp MAP_EVER_GRANDE_CITY_HALL_OF_FAME, 7, 16
2017-11-10 02:21:31 +01:00
waitstate
releaseall
end
2021-07-20 21:18:31 +02:00
EverGrandeCity_ChampionsRoom_EventScript_MayCongratulations::
msgbox EverGrandeCity_ChampionsRoom_Text_MayCongratulations, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
EverGrandeCity_ChampionsRoom_EventScript_BrendanCongratulations::
msgbox EverGrandeCity_ChampionsRoom_Text_BrendanCongratulations, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
EverGrandeCity_ChampionsRoom_EventScript_RivalApproachPlayer::
applymovement LOCALID_RIVAL, EverGrandeCity_ChampionsRoom_Movement_RivalApproachPlayer
2017-11-10 02:21:31 +01:00
waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFasterLeft
2017-11-10 02:21:31 +01:00
waitmovement 0
return
2021-07-20 21:18:31 +02:00
EverGrandeCity_ChampionsRoom_EventScript_RivalLookBackAndForth::
applymovement LOCALID_RIVAL, EverGrandeCity_ChampionsRoom_Movement_RivalLookBackAndForth
2017-11-10 02:21:31 +01:00
waitmovement 0
return
2021-07-20 21:18:31 +02:00
EverGrandeCity_ChampionsRoom_Movement_PlayerExitStart:
walk_up
walk_up
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
EverGrandeCity_ChampionsRoom_Movement_PlayerExit:
walk_up
delay_16
walk_up
delay_8
set_invisible
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
EverGrandeCity_ChampionsRoom_Movement_RivalApproachPlayer:
walk_up
walk_up
walk_up
walk_up
walk_up
walk_left
walk_up
walk_in_place_faster_right
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
EverGrandeCity_ChampionsRoom_Movement_RivalLookBackAndForth:
walk_in_place_faster_up
delay_16
walk_in_place_faster_right
delay_16
walk_in_place_faster_up
delay_8
walk_in_place_faster_right
delay_16
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
EverGrandeCity_ChampionsRoom_Movement_RivalFollows:
walk_right
walk_up
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
EverGrandeCity_ChampionsRoom_Movement_WallaceExitStart:
walk_up
walk_up
walk_in_place_faster_down
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
EverGrandeCity_ChampionsRoom_Movement_WallaceExit:
walk_up
delay_8
set_invisible
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
EverGrandeCity_ChampionsRoom_Movement_BirchArrives:
walk_up
walk_up
walk_up
walk_up
walk_up
walk_right
walk_up
walk_in_place_faster_left
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
EverGrandeCity_ChampionsRoom_Text_IntroSpeech:
2017-11-10 02:21:31 +01:00
.string "WALLACE: Welcome, {PLAYER}{KUN}.\p"
.string "That incident in SOOTOPOLIS CITY…\n"
.string "That was superb work, putting an end\l"
.string "to that crisis all by yourself.\p"
.string "Oops!\p"
2018-12-07 16:41:08 +01:00
.string "It wouldn't be fair to say that you\n"
2017-11-10 02:21:31 +01:00
.string "alone ended the crisis.\p"
.string "You overcame that difficult situation\n"
.string "by working as one with your POKéMON.\p"
.string "We TRAINERS raise POKéMON by giving\n"
.string "them items and by teaching them new\l"
.string "techniques for battle.\p"
.string "But we ourselves also learn many\n"
.string "things from POKéMON.\p"
.string "And this is where your achievements\n"
.string "are put to the test against what\l"
.string "others like you have achieved.\p"
.string "Now!\p"
.string "Who can most elegantly dance with\n"
.string "their POKéMON in HOENN?\p"
.string "Show me right here and now!$"
2021-07-20 21:18:31 +02:00
EverGrandeCity_ChampionsRoom_Text_Defeat:
2017-11-10 02:21:31 +01:00
.string "I, the CHAMPION, fall in defeat…\p"
.string "That was wonderful work.\n"
.string "You were elegant, infuriatingly so.\l"
.string "And yet it was utterly glorious!\p"
.string "Kudos to you, {PLAYER}{KUN}!\p"
.string "You are a truly noble POKéMON\n"
.string "TRAINER!$"
2021-07-20 21:18:31 +02:00
EverGrandeCity_ChampionsRoom_Text_PostBattleSpeech:
2017-11-10 02:21:31 +01:00
.string "WALLACE: The POKéMON you sent into\n"
.string "battle…\p"
.string "At times they danced like a spring\n"
.string "breeze, and at times they struck\l"
.string "like lightning.\p"
.string "It was with light, yet surefooted,\n"
.string "elegance that you led your POKéMON.\p"
.string "Even I felt bedazzled by your\n"
.string "masterful performance!\p"
.string "You now stand at the glorious peak\n"
.string "of the POKéMON LEAGUE.\p"
.string "I now proclaim you to be the new\n"
.string "HOENN region…$"
2021-07-20 21:18:31 +02:00
EverGrandeCity_ChampionsRoom_Text_MayAdvice:
2017-11-10 02:21:31 +01:00
.string "MAY: {PLAYER}{KUN}!\p"
2018-12-07 16:41:08 +01:00
.string "Here's some advice before you challenge\n"
2017-11-10 02:21:31 +01:00
.string "the CHAMPION…$"
2021-07-20 21:18:31 +02:00
EverGrandeCity_ChampionsRoom_Text_MayItsAlreadyOver:
2017-11-10 02:21:31 +01:00
.string "MAY: Huh?\n"
.string "What, what, what?\p"
.string "{PLAYER}{KUN}…\n"
.string "Could it be that…\l"
2018-12-07 16:41:08 +01:00
.string "It's already over?$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
EverGrandeCity_ChampionsRoom_Text_BrendanAdvice:
2017-11-10 02:21:31 +01:00
.string "BRENDAN: {PLAYER}!\p"
.string "How would you like some advice before\n"
.string "you challenge the CHAMPION?…$"
2021-07-20 21:18:31 +02:00
EverGrandeCity_ChampionsRoom_Text_BrendanYouveWon:
2017-11-10 02:21:31 +01:00
.string "BRENDAN: {PLAYER}…\p"
.string "Are you trying to tell me…\n"
2018-12-07 16:41:08 +01:00
.string "You've beaten the CHAMPION?$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
EverGrandeCity_ChampionsRoom_Text_BirchArriveRatePokedex:
2017-11-10 02:21:31 +01:00
.string "PROF. BIRCH: See?\n"
.string "What did I tell you, {RIVAL}?\p"
2018-12-07 16:41:08 +01:00
.string "Didn't I tell you that you don't need\n"
2017-11-10 02:21:31 +01:00
.string "to worry about {PLAYER}{KUN}?\p"
.string "… … … … … … … …\n"
2018-12-07 16:41:08 +01:00
.string "{PLAYER}{KUN}, you've finally done it.\p"
2017-11-10 02:21:31 +01:00
.string "When I heard that you defeated your\n"
.string "own father at the PETALBURG GYM,\l"
.string "I thought perhaps you had a chance…\p"
2018-12-07 16:41:08 +01:00
.string "But to think you've actually become\n"
2017-11-10 02:21:31 +01:00
.string "the CHAMPION!\p"
.string "Ah, yes!\p"
.string "What became of your POKéDEX?\n"
.string "Here, let me see.$"
2021-07-20 21:18:31 +02:00
EverGrandeCity_ChampionsRoom_Text_BirchCongratulations:
2017-11-10 02:21:31 +01:00
.string "PROF. BIRCH: Anyways,\n"
.string "congratulations!\p"
.string "Now, go proudly into the final room!$"
2021-07-20 21:18:31 +02:00
EverGrandeCity_ChampionsRoom_Text_WallaceComeWithMe:
2017-11-10 02:21:31 +01:00
.string "WALLACE: {PLAYER}{KUN}…\p"
.string "No, let me rephrase that properly.\p"
.string "The new CHAMPION!\p"
.string "Come with me.$"
2021-07-20 21:18:31 +02:00
EverGrandeCity_ChampionsRoom_Text_WallaceWaitOutside:
2018-12-07 16:41:08 +01:00
.string "WALLACE: I'm sorry, but…\p"
2017-11-10 02:21:31 +01:00
.string "From here on, only those TRAINERS who\n"
.string "have become CHAMPIONS may enter.\p"
2018-12-07 16:41:08 +01:00
.string "You'll have to wait outside with\n"
2017-11-10 02:21:31 +01:00
.string "PROF. BIRCH.$"
2021-07-20 21:18:31 +02:00
EverGrandeCity_ChampionsRoom_Text_MayCongratulations:
2017-11-10 02:21:31 +01:00
.string "MAY: Groan…\p"
.string "… … … … … … … …\n"
.string "… … … … … … … …\p"
2018-12-07 16:41:08 +01:00
.string "I'm just joking! That's okay!\n"
.string "That's the rule!\p"
2017-11-10 02:21:31 +01:00
.string "{PLAYER}{KUN}!\n"
.string "Honestly, congratulations!$"
2021-07-20 21:18:31 +02:00
EverGrandeCity_ChampionsRoom_Text_BrendanCongratulations:
2017-11-10 02:21:31 +01:00
.string "BRENDAN: Whaaaat?! … … … … …\n"
.string "… … … … … … … …\p"
2018-12-07 16:41:08 +01:00
.string "It can't be helped if that's the rule.\p"
2017-11-10 02:21:31 +01:00
.string "{PLAYER}, way to go!\n"
.string "Congratulations!$"