1
0
mirror of https://github.com/Ninjdai1/pokeemerald.git synced 2025-01-24 20:30:18 +01:00

1181 lines
42 KiB
PHP
Raw Normal View History

.set LOCALID_ANNOUNCER, 1
.set LOCALID_AUDIENCE_TWIN, 2
.set LOCALID_AUDIENCE_WALKING, 6
.set LOCALID_REFEREE, 9
.set LOCALID_PLAYER, 13
.set LOCALID_OPPONENT, 15
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_MapScripts::
map_script MAP_SCRIPT_ON_TRANSITION, BattleFrontier_BattleDomeBattleRoom_OnTransition
map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattleDomeBattleRoom_OnFrame
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattleDomeBattleRoom_OnWarp
map_script MAP_SCRIPT_ON_RESUME, BattleFrontier_BattleDomeBattleRoom_OnResume
2017-11-09 19:21:31 -06:00
.byte 0
.set NO_DRAW, 0
.set DRAW_TRAINER, 1
.set DRAW_TUCKER, 2
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_OnTransition:
2019-11-28 22:46:39 -05:00
dome_setopponentgfx
2019-11-24 16:58:40 -05:00
frontier_get FRONTIER_DATA_BATTLE_NUM
2018-05-19 18:02:43 +02:00
copyvar VAR_TEMP_F, VAR_RESULT
call_if_eq VAR_RESULT, DOME_ROUND1, BattleFrontier_BattleDomeBattleRoom_EventScript_SetWalkingAudienceMemberPos
2019-11-26 17:20:08 -05:00
call BattleFrontier_BattleDomeBattleRoom_EventScript_SetPlayerGfx
2017-11-09 19:21:31 -06:00
end
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_SetPlayerGfx::
2017-11-09 19:21:31 -06:00
checkplayergender
goto_if_eq VAR_RESULT, MALE, BattleFrontier_BattleDomeBattleRoom_EventScript_SetPlayerGfxMale
goto_if_eq VAR_RESULT, FEMALE, BattleFrontier_BattleDomeBattleRoom_EventScript_SetPlayerGfxFemale
2017-11-09 19:21:31 -06:00
return
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_SetPlayerGfxMale::
setvar VAR_OBJ_GFX_ID_1, OBJ_EVENT_GFX_RIVAL_BRENDAN_NORMAL
2017-11-09 19:21:31 -06:00
return
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_SetPlayerGfxFemale::
setvar VAR_OBJ_GFX_ID_1, OBJ_EVENT_GFX_RIVAL_MAY_NORMAL
2017-11-09 19:21:31 -06:00
return
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_OnFrame:
map_script_2 VAR_TEMP_0, 0, BattleFrontier_BattleDomeBattleRoom_EventScript_EnterRoom
2017-11-09 19:21:31 -06:00
.2byte 0
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_EnterRoom::
2017-11-09 19:21:31 -06:00
lockall
call BattleFrontier_BattleDomeBattleRoom_EventScript_GetRoundNum
call_if_eq VAR_RESULT, DOME_ROUND1, BattleFrontier_BattleDomeBattleRoom_EventScript_TryDoAudienceMemberWalkToSeat
applymovement LOCALID_ANNOUNCER, Common_Movement_WalkInPlaceDown
2017-11-09 19:21:31 -06:00
waitmovement 0
call BattleFrontier_BattleDomeBattleRoom_EventScript_AnnouncePlayer
msgbox BattleFrontier_BattleDomeBattleRoom_Text_PlayerHasEnteredDome, MSGBOX_DEFAULT
2017-11-09 19:21:31 -06:00
closemessage
showobjectat LOCALID_PLAYER, MAP_BATTLE_FRONTIER_BATTLE_DOME_BATTLE_ROOM
goto_if_ne VAR_TEMP_F, DOME_FINAL, BattleFrontier_BattleDomeBattleRoom_EventScript_PlayerEnter
goto_if_ne VAR_TEMP_E, FRONTIER_BRAIN_NOT_READY, BattleFrontier_BattleDomeBattleRoom_EventScript_PlayerEnterForTucker
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_PlayerEnter::
applymovement LOCALID_PLAYER, BattleFrontier_BattleDomeBattleRoom_Movement_PlayerEnter
goto BattleFrontier_BattleDomeBattleRoom_EventScript_AudienceReactToPlayer
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_PlayerEnterForTucker::
applymovement LOCALID_PLAYER, BattleFrontier_BattleDomeBattleRoom_Movement_PlayerEnterForTucker
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_AudienceReactToPlayer::
2020-08-20 18:02:00 -04:00
playse SE_M_ENCORE2
call BattleFrontier_BattleDomeBattleRoom_EventScript_AudienceLookAround
2017-11-09 19:21:31 -06:00
waitmovement 0
goto_if_ne VAR_TEMP_F, DOME_FINAL, BattleFrontier_BattleDomeBattleRoom_EventScript_BattleOpponent
goto_if_ne VAR_TEMP_E, FRONTIER_BRAIN_NOT_READY, BattleFrontier_BattleDomeBattleRoom_EventScript_AnnounceTucker
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_BattleOpponent::
2019-11-28 22:46:39 -05:00
dome_getopponentname
msgbox BattleFrontier_BattleDomeBattleRoom_Text_PlayerVersusTrainer, MSGBOX_DEFAULT
2017-11-09 19:21:31 -06:00
closemessage
applymovement LOCALID_PLAYER, BattleFrontier_BattleDomeBattleRoom_Movement_PlayerStepForward
applymovement LOCALID_OPPONENT, BattleFrontier_BattleDomeBattleRoom_Movement_OpponentStepForward
2017-11-09 19:21:31 -06:00
waitmovement 0
2019-11-28 22:46:39 -05:00
tower_getopponentintro 0
msgbox gStringVar4, MSGBOX_DEFAULT
2017-11-09 19:21:31 -06:00
closemessage
2019-11-28 22:46:39 -05:00
dome_initopponentparty
call BattleFrontier_BattleDomeBattleRoom_EventScript_DoDomeBattle
setvar VAR_TEMP_2, NO_DRAW
2017-11-09 19:21:31 -06:00
switch VAR_RESULT
case B_OUTCOME_WON, BattleFrontier_BattleDomeBattleRoom_EventScript_DefeatedOpponent
case B_OUTCOME_LOST, BattleFrontier_BattleDomeBattleRoom_EventScript_LostToOpponent
case B_OUTCOME_FORFEITED, BattleFrontier_BattleDomeBattleRoom_EventScript_LostToOpponent
setvar VAR_TEMP_2, DRAW_TRAINER
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_Draw::
msgbox BattleFrontier_BattleDomeBattleRoom_Text_RefereeDecisionPleaseWait, MSGBOX_DEFAULT
2017-11-09 19:21:31 -06:00
closemessage
2020-08-20 18:02:00 -04:00
playse SE_M_ENCORE2
call BattleFrontier_BattleDomeBattleRoom_EventScript_AudienceLookAround
2017-11-09 19:21:31 -06:00
delay 60
applymovement LOCALID_REFEREE, BattleFrontier_BattleDomeBattleRoom_Movement_RefereeEnter
2017-11-09 19:21:31 -06:00
waitmovement 0
applymovement LOCALID_ANNOUNCER, BattleFrontier_BattleDomeBattleRoom_Movement_AnnouncerFaceLeft
2017-11-09 19:21:31 -06:00
waitmovement 0
delay 180
applymovement LOCALID_REFEREE, BattleFrontier_BattleDomeBattleRoom_Movement_RefereeExit
2017-11-09 19:21:31 -06:00
waitmovement 0
goto_if_eq VAR_TEMP_2, DRAW_TUCKER, BattleFrontier_BattleDomeBattleRoom_EventScript_LostToOpponent @ Tucker always wins on a draw
2019-11-28 22:46:39 -05:00
dome_compareseeds
2017-11-09 19:21:31 -06:00
switch VAR_RESULT
case 1, BattleFrontier_BattleDomeBattleRoom_EventScript_DefeatedOpponent
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_LostToOpponent::
applymovement LOCALID_ANNOUNCER, Common_Movement_WalkInPlaceDown
2017-11-09 19:21:31 -06:00
waitmovement 0
2019-11-28 22:46:39 -05:00
dome_getopponentname
call_if_eq VAR_TEMP_2, NO_DRAW, BattleFrontier_BattleDomeBattleRoom_EventScript_OpponentWon
call_if_eq VAR_TEMP_2, DRAW_TRAINER, BattleFrontier_BattleDomeBattleRoom_EventScript_OpponentWonDraw
call_if_eq VAR_TEMP_2, DRAW_TUCKER, BattleFrontier_BattleDomeBattleRoom_EventScript_TuckerWonDraw
2020-08-20 18:02:00 -04:00
playse SE_M_ENCORE2
call BattleFrontier_BattleDomeBattleRoom_EventScript_AudienceLookAround
2017-11-09 19:21:31 -06:00
delay 60
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_LostTourney::
dome_resolvewinners DOME_PLAYER_LOST_MATCH
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_WarpToLobbyLost::
2019-11-24 16:58:40 -05:00
frontier_set FRONTIER_DATA_CHALLENGE_STATUS, CHALLENGE_STATUS_LOST
goto BattleFrontier_BattleDomeBattleRoom_EventScript_WarpToLobby
2017-11-09 19:21:31 -06:00
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_OpponentWon::
frontier_gettrainername STR_VAR_2
message BattleFrontier_BattleDomeBattleRoom_Text_TrainerIsWinner
2017-11-09 19:21:31 -06:00
waitmessage
return
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_OpponentWonDraw::
frontier_gettrainername STR_VAR_1
message BattleFrontier_BattleDomeBattleRoom_Text_RefereesDecidedWinnerTrainer
2017-11-09 19:21:31 -06:00
waitmessage
return
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_TuckerWonDraw::
message BattleFrontier_BattleDomeBattleRoom_Text_RefereesDecidedWinnerTucker
2017-11-09 19:21:31 -06:00
waitmessage
return
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_DefeatedOpponent::
applymovement LOCALID_ANNOUNCER, Common_Movement_WalkInPlaceDown
2017-11-09 19:21:31 -06:00
waitmovement 0
call_if_eq VAR_TEMP_2, NO_DRAW, BattleFrontier_BattleDomeBattleRoom_EventScript_PlayerWon
call_if_eq VAR_TEMP_2, DRAW_TRAINER, BattleFrontier_BattleDomeBattleRoom_EventScript_PlayerWonDraw
2020-08-20 18:02:00 -04:00
playse SE_M_ENCORE2
call BattleFrontier_BattleDomeBattleRoom_EventScript_AudienceLookAround
2017-11-09 19:21:31 -06:00
delay 60
2019-11-28 22:46:39 -05:00
dome_getroundtext
dome_resolvewinners DOME_PLAYER_WON_MATCH
2019-11-24 16:58:40 -05:00
frontier_get FRONTIER_DATA_BATTLE_NUM
2017-11-09 19:21:31 -06:00
addvar VAR_RESULT, 1
2019-11-24 16:58:40 -05:00
frontier_set FRONTIER_DATA_BATTLE_NUM, VAR_RESULT
2017-11-09 19:21:31 -06:00
switch VAR_RESULT
case DOME_ROUNDS_COUNT, BattleFrontier_BattleDomeBattleRoom_EventScript_WonTourney
2017-11-09 19:21:31 -06:00
setvar VAR_0x8006, 1
warp MAP_BATTLE_FRONTIER_BATTLE_DOME_PRE_BATTLE_ROOM, 5, 3
2017-11-09 19:21:31 -06:00
waitstate
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_WonTourney::
applymovement LOCALID_PLAYER, BattleFrontier_BattleDomeBattleRoom_Movement_PlayerApproachAudience
2017-11-09 19:21:31 -06:00
waitmovement 0
2019-11-24 16:58:40 -05:00
frontier_get FRONTIER_DATA_LVL_MODE
2017-11-09 19:21:31 -06:00
switch VAR_RESULT
case FRONTIER_LVL_OPEN, BattleFrontier_BattleDomeBattleRoom_EventScript_WonLvOpenTourney
msgbox BattleFrontier_BattleDomeBattleRoom_Text_PlayerIsLv50Champ, MSGBOX_DEFAULT
goto BattleFrontier_BattleDomeBattleRoom_EventScript_CelebrateWin
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_WonLvOpenTourney::
msgbox BattleFrontier_BattleDomeBattleRoom_Text_PlayerIsLvOpenChamp, MSGBOX_DEFAULT
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_CelebrateWin::
2020-06-17 03:39:03 -04:00
special DoDomeConfetti
2020-08-20 18:02:00 -04:00
playse SE_M_ENCORE2
call BattleFrontier_BattleDomeBattleRoom_EventScript_AudienceLookAround
2017-11-09 19:21:31 -06:00
delay 60
2019-11-24 16:58:40 -05:00
frontier_set FRONTIER_DATA_CHALLENGE_STATUS, CHALLENGE_STATUS_WON
goto BattleFrontier_BattleDomeBattleRoom_EventScript_WarpToLobby
2017-11-09 19:21:31 -06:00
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_PlayerWon::
msgbox BattleFrontier_BattleDomeBattleRoom_Text_PlayerIsWinner, MSGBOX_DEFAULT
2017-11-09 19:21:31 -06:00
return
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_PlayerWonDraw::
msgbox BattleFrontier_BattleDomeBattleRoom_Text_RefereesDecidedWinnerPlayer, MSGBOX_DEFAULT
2017-11-09 19:21:31 -06:00
return
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_AnnouncePlayer::
dome_get DOME_DATA_ATTEMPTED_CHALLENGE
goto_if_eq VAR_RESULT, FALSE, BattleFrontier_BattleDomeBattleRoom_EventScript_AnnouncePlayerFirstAttempt
dome_get DOME_DATA_HAS_WON_CHALLENGE
goto_if_eq VAR_RESULT, FALSE, BattleFrontier_BattleDomeBattleRoom_EventScript_AnnouncePlayerNeverWon
2019-11-28 22:46:39 -05:00
dome_get DOME_DATA_WIN_STREAK_ACTIVE
goto_if_eq VAR_RESULT, FALSE, BattleFrontier_BattleDomeBattleRoom_EventScript_AnnouncePlayerBrokenStreak
goto BattleFrontier_BattleDomeBattleRoom_EventScript_AnnouncePlayerChampion
2017-11-09 19:21:31 -06:00
return
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_AnnouncePlayerFirstAttempt::
call BattleFrontier_BattleDomeBattleRoom_EventScript_GetRoundNum
2017-11-09 19:21:31 -06:00
switch VAR_RESULT
case DOME_ROUND1, BattleFrontier_BattleDomeBattleRoom_EventScript_AnnouncePlayerFirstAttemptRound1
case DOME_ROUND2, BattleFrontier_BattleDomeBattleRoom_EventScript_AnnouncePlayerFirstAttemptRound2
case DOME_SEMIFINAL, BattleFrontier_BattleDomeBattleRoom_EventScript_AnnouncePlayerFirstAttemptSemifinal
case DOME_FINAL, BattleFrontier_BattleDomeBattleRoom_EventScript_AnnouncePlayerFirstAttemptFinal
2017-11-09 19:21:31 -06:00
return
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_AnnouncePlayerFirstAttemptRound1::
message BattleFrontier_BattleDomeBattleRoom_Text_BrightNewHope
2017-11-09 19:21:31 -06:00
waitmessage
return
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_AnnouncePlayerFirstAttemptRound2::
message BattleFrontier_BattleDomeBattleRoom_Text_RisingStar
2017-11-09 19:21:31 -06:00
waitmessage
return
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_AnnouncePlayerFirstAttemptSemifinal::
message BattleFrontier_BattleDomeBattleRoom_Text_WillTheyRaceToChampionship
2017-11-09 19:21:31 -06:00
waitmessage
return
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_AnnouncePlayerFirstAttemptFinal::
message BattleFrontier_BattleDomeBattleRoom_Text_CanAchieveChampionFirstTry
2017-11-09 19:21:31 -06:00
waitmessage
return
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_AnnouncePlayerNeverWon::
call BattleFrontier_BattleDomeBattleRoom_EventScript_GetRoundNum
2017-11-09 19:21:31 -06:00
switch VAR_RESULT
case DOME_ROUND1, BattleFrontier_BattleDomeBattleRoom_EventScript_AnnouncePlayerNeverWonRound1
case DOME_ROUND2, BattleFrontier_BattleDomeBattleRoom_EventScript_AnnouncePlayerNeverWonRound2
case DOME_SEMIFINAL, BattleFrontier_BattleDomeBattleRoom_EventScript_AnnouncePlayerNeverWonSemifinal
case DOME_FINAL, BattleFrontier_BattleDomeBattleRoom_EventScript_AnnouncePlayerNeverWonFinal
2017-11-09 19:21:31 -06:00
return
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_AnnouncePlayerNeverWonRound1::
message BattleFrontier_BattleDomeBattleRoom_Text_CanLossBeAvenged
2017-11-09 19:21:31 -06:00
waitmessage
return
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_AnnouncePlayerNeverWonRound2::
message BattleFrontier_BattleDomeBattleRoom_Text_OnFireForChampionship
2017-11-09 19:21:31 -06:00
waitmessage
return
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_AnnouncePlayerNeverWonSemifinal::
message BattleFrontier_BattleDomeBattleRoom_Text_WinHereAdvancesToFinal
2017-11-09 19:21:31 -06:00
waitmessage
return
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_AnnouncePlayerNeverWonFinal::
message BattleFrontier_BattleDomeBattleRoom_Text_WillLongHeldDreamComeTrue
2017-11-09 19:21:31 -06:00
waitmessage
return
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_AnnouncePlayerChampion::
goto_if_ne VAR_TEMP_F, DOME_FINAL, BattleFrontier_BattleDomeBattleRoom_EventScript_AnnouncePlayerChampionNoTucker
2018-05-19 18:02:43 +02:00
switch VAR_TEMP_E
case FRONTIER_BRAIN_SILVER, BattleFrontier_BattleDomeBattleRoom_EventScript_AnnouncePlayerPreTuckerSilver
case FRONTIER_BRAIN_GOLD, BattleFrontier_BattleDomeBattleRoom_EventScript_AnnouncePlayerPreTuckerGold
case FRONTIER_BRAIN_STREAK, BattleFrontier_BattleDomeBattleRoom_EventScript_AnnouncePlayerPreTuckerSilver
case FRONTIER_BRAIN_STREAK_LONG, BattleFrontier_BattleDomeBattleRoom_EventScript_AnnouncePlayerPreTuckerGold
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_AnnouncePlayerChampionNoTucker::
call BattleFrontier_BattleDomeBattleRoom_EventScript_GetRoundNum
2017-11-09 19:21:31 -06:00
switch VAR_RESULT
case DOME_ROUND1, BattleFrontier_BattleDomeBattleRoom_EventScript_AnnouncePlayerChampionRound1
case DOME_ROUND2, BattleFrontier_BattleDomeBattleRoom_EventScript_AnnouncePlayerChampionRound2
case DOME_SEMIFINAL, BattleFrontier_BattleDomeBattleRoom_EventScript_AnnouncePlayerChampionSemifinal
case DOME_FINAL, BattleFrontier_BattleDomeBattleRoom_EventScript_AnnouncePlayerChampionFinal
2017-11-09 19:21:31 -06:00
return
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_AnnouncePlayerChampionRound1::
message BattleFrontier_BattleDomeBattleRoom_Text_TheInvincibleChampion
2017-11-09 19:21:31 -06:00
waitmessage
return
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_AnnouncePlayerChampionRound2::
message BattleFrontier_BattleDomeBattleRoom_Text_CanAnyoneHopeToBeatTrainer
2017-11-09 19:21:31 -06:00
waitmessage
return
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_AnnouncePlayerChampionSemifinal::
message BattleFrontier_BattleDomeBattleRoom_Text_DoBattlesExistSolelyForTrainer
2017-11-09 19:21:31 -06:00
waitmessage
return
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_AnnouncePlayerChampionFinal::
message BattleFrontier_BattleDomeBattleRoom_Text_CurrentChampAimingToRetainTitle
2017-11-09 19:21:31 -06:00
waitmessage
return
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_AnnouncePlayerPreTuckerSilver::
msgbox BattleFrontier_BattleDomeBattleRoom_Text_FeelGlowOfTrueMaster, MSGBOX_DEFAULT
2017-11-09 19:21:31 -06:00
return
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_AnnouncePlayerPreTuckerGold::
msgbox BattleFrontier_BattleDomeBattleRoom_Text_CanWinStreakBeStretched, MSGBOX_DEFAULT
2017-11-09 19:21:31 -06:00
return
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_AnnouncePlayerBrokenStreak::
call BattleFrontier_BattleDomeBattleRoom_EventScript_GetRoundNum
2017-11-09 19:21:31 -06:00
switch VAR_RESULT
case DOME_ROUND1, BattleFrontier_BattleDomeBattleRoom_EventScript_AnnouncePlayerBrokenStreakRound1
case DOME_ROUND2, BattleFrontier_BattleDomeBattleRoom_EventScript_AnnouncePlayerBrokenStreakRound2
case DOME_SEMIFINAL, BattleFrontier_BattleDomeBattleRoom_EventScript_AnnouncePlayerBrokenStreakSemifinal
case DOME_FINAL, BattleFrontier_BattleDomeBattleRoom_EventScript_AnnouncePlayerBrokenStreakFinal
2017-11-09 19:21:31 -06:00
return
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_AnnouncePlayerBrokenStreakRound1::
message BattleFrontier_BattleDomeBattleRoom_Text_FormerChampHasReturned
2017-11-09 19:21:31 -06:00
waitmessage
return
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_AnnouncePlayerBrokenStreakRound2::
message BattleFrontier_BattleDomeBattleRoom_Text_FormerToughnessReturned
2017-11-09 19:21:31 -06:00
waitmessage
return
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_AnnouncePlayerBrokenStreakSemifinal::
message BattleFrontier_BattleDomeBattleRoom_Text_WillDoExpectedAdvanceToFinals
2017-11-09 19:21:31 -06:00
waitmessage
return
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_AnnouncePlayerBrokenStreakFinal::
message BattleFrontier_BattleDomeBattleRoom_Text_WillFormerChampRegainGlory
2017-11-09 19:21:31 -06:00
waitmessage
return
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_GetRoundNum::
2019-11-24 16:58:40 -05:00
frontier_get FRONTIER_DATA_BATTLE_NUM
2017-11-09 19:21:31 -06:00
return
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_AnnounceTucker::
2018-05-19 18:02:43 +02:00
switch VAR_TEMP_E
case FRONTIER_BRAIN_SILVER, BattleFrontier_BattleDomeBattleRoom_EventScript_AnnounceTuckerSilver
case FRONTIER_BRAIN_GOLD, BattleFrontier_BattleDomeBattleRoom_EventScript_AnnounceTuckerGold
case FRONTIER_BRAIN_STREAK, BattleFrontier_BattleDomeBattleRoom_EventScript_AnnounceTuckerSilver
case FRONTIER_BRAIN_STREAK_LONG, BattleFrontier_BattleDomeBattleRoom_EventScript_AnnounceTuckerGold
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_AnnounceTuckerSilver::
msgbox BattleFrontier_BattleDomeBattleRoom_Text_MakeWayForDomeAceTucker, MSGBOX_DEFAULT
goto BattleFrontier_BattleDomeBattleRoom_EventScript_TuckerEnter
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_AnnounceTuckerGold::
msgbox BattleFrontier_BattleDomeBattleRoom_Text_LegendHasReturnedDomeAceTucker, MSGBOX_DEFAULT
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_TuckerEnter::
2017-11-09 19:21:31 -06:00
closemessage
applymovement LOCALID_AUDIENCE_TWIN, BattleFrontier_BattleDomeBattleRoom_Movement_AudienceTwinJump
applymovement LOCALID_ANNOUNCER, BattleFrontier_BattleDomeBattleRoom_Movement_AnnouncerMoveForTuckerEntrance
applymovement LOCALID_OPPONENT, BattleFrontier_BattleDomeBattleRoom_Movement_TuckerEnterAndDance
2020-08-20 18:02:00 -04:00
playse SE_M_ENCORE2
call BattleFrontier_BattleDomeBattleRoom_EventScript_AudienceLookAround
2017-11-09 19:21:31 -06:00
waitse
2020-08-20 18:02:00 -04:00
playse SE_M_ENCORE2
call BattleFrontier_BattleDomeBattleRoom_EventScript_AudienceLookAround
2017-11-09 19:21:31 -06:00
waitse
2020-08-20 18:02:00 -04:00
playse SE_M_ENCORE2
call BattleFrontier_BattleDomeBattleRoom_EventScript_AudienceLookAround
2017-11-09 19:21:31 -06:00
waitse
2020-08-20 18:02:00 -04:00
playse SE_M_ENCORE2
call BattleFrontier_BattleDomeBattleRoom_EventScript_AudienceLookAround
2017-11-09 19:21:31 -06:00
waitse
2020-08-20 18:02:00 -04:00
playse SE_M_ENCORE2
call BattleFrontier_BattleDomeBattleRoom_EventScript_AudienceLookAround
2017-11-09 19:21:31 -06:00
waitse
waitmovement 0
message BattleFrontier_BattleDomeBattleRoom_Text_SpectatorTuckerChant
2017-11-09 19:21:31 -06:00
waitmessage
2020-08-20 18:02:00 -04:00
playse SE_M_ENCORE2
call BattleFrontier_BattleDomeBattleRoom_EventScript_AudienceLookAround
2017-11-09 19:21:31 -06:00
waitse
2018-05-19 18:02:43 +02:00
switch VAR_TEMP_E
case FRONTIER_BRAIN_GOLD, BattleFrontier_BattleDomeBattleRoom_EventScript_TuckerGoldIntro
case FRONTIER_BRAIN_STREAK, BattleFrontier_BattleDomeBattleRoom_EventScript_BattleTuckerSilver
case FRONTIER_BRAIN_STREAK_LONG, BattleFrontier_BattleDomeBattleRoom_EventScript_BattleTuckerGold
2019-11-24 16:58:40 -05:00
frontier_get FRONTIER_DATA_HEARD_BRAIN_SPEECH
goto_if_ne VAR_RESULT, FALSE, BattleFrontier_BattleDomeBattleRoom_EventScript_BattleTuckerSilver
msgbox BattleFrontier_BattleDomeBattleRoom_Text_TuckerSilverIntro, MSGBOX_DEFAULT
2019-11-24 16:58:40 -05:00
frontier_set FRONTIER_DATA_HEARD_BRAIN_SPEECH
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_BattleTuckerSilver::
msgbox BattleFrontier_BattleDomeBattleRoom_Text_LetsSeeYourStrategy, MSGBOX_DEFAULT
call BattleFrontier_BattleDomeBattleRoom_EventScript_DoTuckerBattle
2017-11-09 19:21:31 -06:00
switch VAR_RESULT
case B_OUTCOME_LOST, BattleFrontier_BattleDomeBattleRoom_EventScript_LostToTucker
case B_OUTCOME_FORFEITED, BattleFrontier_BattleDomeBattleRoom_EventScript_LostToTucker
case B_OUTCOME_DREW, BattleFrontier_BattleDomeBattleRoom_EventScript_TuckerDraw
msgbox BattleFrontier_BattleDomeBattleRoom_Text_IncredibleVictorIsPlayer, MSGBOX_DEFAULT
dome_resolvewinners DOME_PLAYER_WON_MATCH
2019-11-24 16:58:40 -05:00
frontier_getsymbols
goto_if_ne VAR_RESULT, 0, BattleFrontier_BattleDomeBattleRoom_EventScript_WonTourney
2017-11-09 19:21:31 -06:00
closemessage
applymovement LOCALID_OPPONENT, BattleFrontier_BattleDomeBattleRoom_Movement_TuckerApproachPlayer
2017-11-09 19:21:31 -06:00
waitmovement 0
msgbox BattleFrontier_BattleDomeBattleRoom_Text_SeeYourFrontierPass, MSGBOX_DEFAULT
2020-08-20 18:02:00 -04:00
playfanfare MUS_OBTAIN_SYMBOL
message BattleFrontier_BattleDomeBattleRoom_Text_ReceivedTacticsSymbol
2017-11-09 19:21:31 -06:00
waitmessage
waitfanfare
2019-11-24 16:58:40 -05:00
frontier_givesymbol
msgbox BattleFrontier_BattleDomeBattleRoom_Text_WontUnderestimateYouNextTime, MSGBOX_DEFAULT
goto BattleFrontier_BattleDomeBattleRoom_EventScript_WonTourney
2017-11-09 19:21:31 -06:00
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_TuckerGoldIntro::
2019-11-24 16:58:40 -05:00
frontier_get FRONTIER_DATA_HEARD_BRAIN_SPEECH
goto_if_ne VAR_RESULT, FALSE, BattleFrontier_BattleDomeBattleRoom_EventScript_BattleTuckerGold
msgbox BattleFrontier_BattleDomeBattleRoom_Text_TuckerGoldIntro, MSGBOX_DEFAULT
2019-11-24 16:58:40 -05:00
frontier_set FRONTIER_DATA_HEARD_BRAIN_SPEECH
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_BattleTuckerGold::
msgbox BattleFrontier_BattleDomeBattleRoom_Text_UnleashAllPowerIPossess, MSGBOX_DEFAULT
call BattleFrontier_BattleDomeBattleRoom_EventScript_DoTuckerBattle
2017-11-09 19:21:31 -06:00
switch VAR_RESULT
case B_OUTCOME_LOST, BattleFrontier_BattleDomeBattleRoom_EventScript_LostToTucker
case B_OUTCOME_FORFEITED, BattleFrontier_BattleDomeBattleRoom_EventScript_LostToTucker
case B_OUTCOME_DREW, BattleFrontier_BattleDomeBattleRoom_EventScript_TuckerDraw
msgbox BattleFrontier_BattleDomeBattleRoom_Text_IncredibleVictorIsPlayer, MSGBOX_DEFAULT
dome_resolvewinners DOME_PLAYER_WON_MATCH
2019-11-24 16:58:40 -05:00
frontier_getsymbols
goto_if_eq VAR_RESULT, 2, BattleFrontier_BattleDomeBattleRoom_EventScript_WonTourney
2017-11-09 19:21:31 -06:00
closemessage
applymovement LOCALID_OPPONENT, BattleFrontier_BattleDomeBattleRoom_Movement_TuckerApproachPlayer
2017-11-09 19:21:31 -06:00
waitmovement 0
msgbox BattleFrontier_BattleDomeBattleRoom_Text_NeverLostWhenPowerUnleashed, MSGBOX_DEFAULT
2020-08-20 18:02:00 -04:00
playfanfare MUS_OBTAIN_SYMBOL
message BattleFrontier_BattleDomeBattleRoom_Text_TacticsSymbolTookGoldenShine
2017-11-09 19:21:31 -06:00
waitmessage
waitfanfare
2019-11-24 16:58:40 -05:00
frontier_givesymbol
msgbox BattleFrontier_BattleDomeBattleRoom_Text_LookForwardToNextEncounter, MSGBOX_DEFAULT
goto BattleFrontier_BattleDomeBattleRoom_EventScript_WonTourney
2017-11-09 19:21:31 -06:00
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_DoTuckerBattle::
msgbox BattleFrontier_BattleDomeBattleRoom_Text_PlayerVersusTucker, MSGBOX_DEFAULT
2017-11-09 19:21:31 -06:00
closemessage
applymovement LOCALID_PLAYER, BattleFrontier_BattleDomeBattleRoom_Movement_PlayerStepForward2
applymovement LOCALID_OPPONENT, BattleFrontier_BattleDomeBattleRoom_Movement_TuckerStepForward
2017-11-09 19:21:31 -06:00
waitmovement 0
call BattleFrontier_BattleDomeBattleRoom_EventScript_DoDomeBattle
2017-11-09 19:21:31 -06:00
return
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_LostToTucker::
msgbox BattleFrontier_BattleDomeBattleRoom_Text_WinnerIsTucker, MSGBOX_DEFAULT
2020-08-20 18:02:00 -04:00
playse SE_M_ENCORE2
call BattleFrontier_BattleDomeBattleRoom_EventScript_AudienceLookAround
2017-11-09 19:21:31 -06:00
waitse
2020-01-05 10:50:32 -05:00
goto BattleFrontier_BattleDomeBattleRoom_EventScript_LostTourney
2017-11-09 19:21:31 -06:00
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_TuckerDraw::
setvar VAR_TEMP_2, DRAW_TUCKER
goto BattleFrontier_BattleDomeBattleRoom_EventScript_Draw
2017-11-09 19:21:31 -06:00
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_DoDomeBattle::
frontier_set FRONTIER_DATA_RECORD_DISABLED, FALSE
2017-12-16 00:08:23 +01:00
special HealPlayerParty
2018-10-21 20:13:12 +02:00
setvar VAR_0x8004, SPECIAL_BATTLE_DOME
2017-11-09 19:21:31 -06:00
setvar VAR_0x8005, 0
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_9, 1
2018-10-21 20:13:12 +02:00
special DoSpecialTrainerBattle
2017-11-09 19:21:31 -06:00
waitstate
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_9, 0
2019-11-28 22:46:39 -05:00
dome_restorehelditems
2017-12-16 00:08:23 +01:00
special HealPlayerParty
2019-11-28 22:46:39 -05:00
dome_resetsketch
2017-11-09 19:21:31 -06:00
return
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_OnWarp:
map_script_2 VAR_TEMP_1, 0, BattleFrontier_BattleDomeBattleRoom_EventScript_SetUpObjects
2017-11-09 19:21:31 -06:00
.2byte 0
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_SetUpObjects::
hideobjectat LOCALID_PLAYER, MAP_BATTLE_FRONTIER_BATTLE_DOME_BATTLE_ROOM
call BattleFrontier_BattleDomeBattleRoom_EventScript_AddAudience
2019-11-26 17:20:08 -05:00
call BattleFrontier_BattleDomeBattleRoom_EventScript_SetPlayerGfx
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 1
2019-11-27 12:51:10 -05:00
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleDomeBattleRoom_Movement_SetInvisible
2019-11-24 16:58:40 -05:00
frontier_get FRONTIER_DATA_BATTLE_NUM
goto_if_ne VAR_RESULT, DOME_FINAL, BattleFrontier_BattleDomeBattleRoom_EventScript_EndSetUpObjects
frontier_getbrainstatus
2018-05-19 18:02:43 +02:00
copyvar VAR_TEMP_E, VAR_RESULT
goto_if_eq VAR_RESULT, FRONTIER_BRAIN_NOT_READY, BattleFrontier_BattleDomeBattleRoom_EventScript_EndSetUpObjects
2019-11-24 16:58:40 -05:00
call BattleFrontier_EventScript_SetBrainObjectGfx
setobjectxyperm LOCALID_OPPONENT, 13, 9
removeobject LOCALID_OPPONENT
addobject LOCALID_OPPONENT
applymovement LOCALID_OPPONENT, BattleFrontier_BattleDomeBattleRoom_Movement_SetInvisibleFacingUp
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_EndSetUpObjects::
2017-11-09 19:21:31 -06:00
end
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_OnResume:
call_if_eq VAR_TEMP_9, 1, BattleFrontier_BattleDomeBattleRoom_EventScript_CallAddAudience
2017-11-09 19:21:31 -06:00
end
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_CallAddAudience::
call BattleFrontier_BattleDomeBattleRoom_EventScript_AddAudience
2017-11-09 19:21:31 -06:00
return
@ Add audience members to supplement the permanent object event audience
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_AddAudience::
call_if_eq VAR_TEMP_F, DOME_ROUND1, BattleFrontier_BattleDomeBattleRoom_EventScript_AddRound1Audience
call_if_eq VAR_TEMP_F, DOME_ROUND2, BattleFrontier_BattleDomeBattleRoom_EventScript_AddRound2Audience
call_if_eq VAR_TEMP_F, DOME_SEMIFINAL, BattleFrontier_BattleDomeBattleRoom_EventScript_AddSemifinalAudience
call_if_eq VAR_TEMP_F, DOME_FINAL, BattleFrontier_BattleDomeBattleRoom_EventScript_AddFinalAudience
2017-11-09 19:21:31 -06:00
return
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_AddRound1Audience::
2017-11-09 19:21:31 -06:00
return
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_AddRound2Audience::
createvobject OBJ_EVENT_GFX_SCIENTIST_1, 1, 3, 0
createvobject OBJ_EVENT_GFX_EXPERT_F, 4, 6, 0
createvobject OBJ_EVENT_GFX_NINJA_BOY, 6, 8, 0
createvobject OBJ_EVENT_GFX_LITTLE_GIRL, 9, 11, 0
createvobject OBJ_EVENT_GFX_SCIENTIST_1, 11, 13, 0
createvobject OBJ_EVENT_GFX_MAN_5, 13, 15, 0
createvobject OBJ_EVENT_GFX_BEAUTY, 19, 7, 1
createvobject OBJ_EVENT_GFX_WOMAN_5, 22, 11, 1
createvobject OBJ_EVENT_GFX_LITTLE_BOY, 25, 15, 1
createvobject OBJ_EVENT_GFX_YOUNGSTER, 26, 2, 2
createvobject OBJ_EVENT_GFX_SCHOOL_KID_M, 29, 5, 1
2017-11-09 19:21:31 -06:00
return
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_AddSemifinalAudience::
createvobject OBJ_EVENT_GFX_SCIENTIST_1, 1, 3, 0
createvobject OBJ_EVENT_GFX_EXPERT_F, 4, 6, 0
createvobject OBJ_EVENT_GFX_NINJA_BOY, 6, 8, 0
createvobject OBJ_EVENT_GFX_WOMAN_2, 7, 9, 0
createvobject OBJ_EVENT_GFX_LITTLE_GIRL, 9, 11, 0
createvobject OBJ_EVENT_GFX_LASS, 10, 12, 0
createvobject OBJ_EVENT_GFX_SCIENTIST_1, 11, 13, 0
createvobject OBJ_EVENT_GFX_MAN_5, 13, 15, 0
createvobject OBJ_EVENT_GFX_GENTLEMAN, 15, 2, 1
createvobject OBJ_EVENT_GFX_NINJA_BOY, 16, 3, 1
createvobject OBJ_EVENT_GFX_WOMAN_2, 17, 4, 1
createvobject OBJ_EVENT_GFX_BEAUTY, 19, 7, 1
createvobject OBJ_EVENT_GFX_EXPERT_F, 20, 9, 1
createvobject OBJ_EVENT_GFX_WOMAN_5, 22, 11, 1
createvobject OBJ_EVENT_GFX_SCIENTIST_1, 23, 13, 1
createvobject OBJ_EVENT_GFX_LITTLE_BOY, 25, 15, 1
createvobject OBJ_EVENT_GFX_YOUNGSTER, 26, 2, 2
createvobject OBJ_EVENT_GFX_HEX_MANIAC, 28, 5, 2
createvobject OBJ_EVENT_GFX_SCHOOL_KID_M, 29, 5, 1
createvobject OBJ_EVENT_GFX_MART_EMPLOYEE, 30, 6, 2
createvobject OBJ_EVENT_GFX_WOMAN_5, 31, 8, 2
2017-11-09 19:21:31 -06:00
return
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_AddFinalAudience::
createvobject OBJ_EVENT_GFX_NINJA_BOY, 0, 2, 0
createvobject OBJ_EVENT_GFX_SCIENTIST_1, 1, 3, 0
createvobject OBJ_EVENT_GFX_BEAUTY, 2, 15, 0
createvobject OBJ_EVENT_GFX_MAN_5, 3, 5, 0
createvobject OBJ_EVENT_GFX_EXPERT_F, 4, 6, 0
createvobject OBJ_EVENT_GFX_SCIENTIST_1, 5, 7, 0
createvobject OBJ_EVENT_GFX_NINJA_BOY, 6, 8, 0
createvobject OBJ_EVENT_GFX_WOMAN_2, 7, 9, 0
createvobject OBJ_EVENT_GFX_WOMAN_3, 8, 10, 0
createvobject OBJ_EVENT_GFX_LITTLE_GIRL, 9, 11, 0
createvobject OBJ_EVENT_GFX_LASS, 10, 12, 0
createvobject OBJ_EVENT_GFX_SCIENTIST_1, 11, 13, 0
createvobject OBJ_EVENT_GFX_BEAUTY, 12, 14, 0
createvobject OBJ_EVENT_GFX_MAN_5, 13, 15, 2
createvobject OBJ_EVENT_GFX_HIKER, 14, 12, 2
createvobject OBJ_EVENT_GFX_GENTLEMAN, 15, 2, 1
createvobject OBJ_EVENT_GFX_NINJA_BOY, 16, 3, 1
createvobject OBJ_EVENT_GFX_WOMAN_2, 17, 4, 1
createvobject OBJ_EVENT_GFX_WOMAN_3, 18, 6, 1
createvobject OBJ_EVENT_GFX_BEAUTY, 19, 7, 1
createvobject OBJ_EVENT_GFX_EXPERT_F, 20, 9, 1
createvobject OBJ_EVENT_GFX_MAN_2, 21, 10, 1
createvobject OBJ_EVENT_GFX_WOMAN_5, 22, 11, 1
createvobject OBJ_EVENT_GFX_SCIENTIST_1, 23, 13, 1
createvobject OBJ_EVENT_GFX_GENTLEMAN, 24, 14, 1
createvobject OBJ_EVENT_GFX_LITTLE_BOY, 25, 15, 1
createvobject OBJ_EVENT_GFX_YOUNGSTER, 26, 2, 2
createvobject OBJ_EVENT_GFX_FAT_MAN, 27, 3, 2
createvobject OBJ_EVENT_GFX_HEX_MANIAC, 28, 5, 2
createvobject OBJ_EVENT_GFX_SCHOOL_KID_M, 29, 5, 1
createvobject OBJ_EVENT_GFX_MART_EMPLOYEE, 30, 6, 2
createvobject OBJ_EVENT_GFX_WOMAN_5, 31, 8, 2
2017-11-09 19:21:31 -06:00
return
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Movement_SetInvisible:
set_invisible
step_end
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Movement_PlayerEnter:
set_visible
delay_16
walk_up
walk_up
walk_up
walk_right
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Movement_PlayerStepForward:
walk_right
step_end
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Movement_PlayerApproachAudience:
walk_up
step_end
@ Identical to Movement_PlayerEnter
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Movement_PlayerEnterForTucker:
set_visible
delay_16
walk_up
walk_up
walk_up
walk_right
walk_right
step_end
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Movement_PlayerStepForward2:
walk_right
step_end
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Movement_OpponentStepForward:
walk_left
step_end
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Movement_SetInvisibleFacingUp:
face_up
set_invisible
step_end
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Movement_TuckerEnterAndDance:
set_visible
walk_up
walk_up
walk_up
face_left
delay_8
delay_4
face_down
delay_8
delay_4
face_right
delay_8
delay_4
face_up
delay_8
delay_4
face_left
delay_16
walk_fast_up
walk_fast_up
face_left
delay_8
delay_4
face_down
delay_8
delay_4
face_right
delay_8
delay_4
face_up
delay_8
delay_4
face_left
jump_2_left
unlock_facing_direction
face_up
lock_facing_direction
jump_2_left
jump_2_left
unlock_facing_direction
face_right
lock_facing_direction
jump_2_left
unlock_facing_direction
face_down
delay_2
face_left
delay_8
delay_4
face_up
delay_8
delay_4
face_right
delay_8
delay_4
face_down
delay_8
delay_4
face_left
delay_4
face_up
delay_4
face_right
delay_4
face_down
delay_4
face_left
delay_2
face_up
delay_2
face_right
delay_2
face_down
delay_2
face_left
lock_facing_direction
walk_right
walk_slow_right
walk_right
walk_slow_right
unlock_facing_direction
face_up
delay_16
jump_in_place_up
jump_in_place_up
delay_16
walk_right
walk_right
walk_right
jump_in_place_up
delay_16
walk_right
walk_down
walk_down
face_left
delay_2
face_up
delay_2
face_right
delay_2
face_down
delay_2
face_left
delay_4
walk_left
walk_left
step_end
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Movement_AnnouncerMoveForTuckerEntrance:
delay_16
delay_16
walk_left
walk_left
walk_in_place_faster_right
delay_16
delay_16
delay_16
delay_16
delay_16
delay_16
delay_16
delay_16
delay_16
delay_16
delay_16
delay_16
delay_16
delay_16
delay_16
delay_16
delay_16
delay_16
delay_16
delay_16
delay_16
delay_16
delay_16
delay_16
delay_16
delay_16
delay_16
delay_16
delay_16
delay_16
delay_16
delay_16
delay_16
delay_16
delay_16
delay_16
delay_16
delay_16
delay_16
walk_right
walk_right
walk_in_place_faster_down
step_end
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Movement_TuckerStepForward:
walk_left
step_end
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Movement_TuckerApproachPlayer:
walk_left
walk_left
step_end
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_AudienceLookAround::
2019-09-15 23:47:07 -04:00
turnvobject 0, DIR_EAST
turnvobject 2, DIR_EAST
turnvobject 4, DIR_EAST
turnvobject 6, DIR_EAST
turnvobject 8, DIR_EAST
turnvobject 10, DIR_WEST
turnvobject 12, DIR_WEST
turnvobject 14, DIR_WEST
turnvobject 16, DIR_WEST
turnvobject 18, DIR_WEST
turnvobject 20, DIR_EAST
turnvobject 22, DIR_EAST
turnvobject 24, DIR_EAST
turnvobject 26, DIR_EAST
turnvobject 28, DIR_EAST
turnvobject 30, DIR_EAST
delay 20
2019-09-15 23:47:07 -04:00
turnvobject 0, DIR_SOUTH
turnvobject 2, DIR_SOUTH
turnvobject 4, DIR_SOUTH
turnvobject 6, DIR_SOUTH
turnvobject 8, DIR_SOUTH
turnvobject 10, DIR_SOUTH
turnvobject 12, DIR_SOUTH
turnvobject 14, DIR_SOUTH
turnvobject 16, DIR_SOUTH
turnvobject 18, DIR_SOUTH
turnvobject 20, DIR_SOUTH
turnvobject 22, DIR_SOUTH
turnvobject 24, DIR_SOUTH
turnvobject 26, DIR_SOUTH
turnvobject 28, DIR_SOUTH
turnvobject 30, DIR_SOUTH
delay 20
2019-09-15 23:47:07 -04:00
turnvobject 1, DIR_EAST
turnvobject 3, DIR_EAST
turnvobject 5, DIR_EAST
turnvobject 7, DIR_EAST
turnvobject 9, DIR_EAST
turnvobject 11, DIR_WEST
turnvobject 13, DIR_WEST
turnvobject 15, DIR_WEST
turnvobject 17, DIR_WEST
turnvobject 19, DIR_WEST
turnvobject 21, DIR_EAST
turnvobject 23, DIR_EAST
turnvobject 25, DIR_EAST
turnvobject 27, DIR_WEST
turnvobject 31, DIR_WEST
delay 20
2019-09-15 23:47:07 -04:00
turnvobject 1, DIR_SOUTH
turnvobject 3, DIR_SOUTH
turnvobject 5, DIR_SOUTH
turnvobject 7, DIR_SOUTH
turnvobject 9, DIR_SOUTH
turnvobject 11, DIR_SOUTH
turnvobject 13, DIR_SOUTH
turnvobject 15, DIR_SOUTH
turnvobject 17, DIR_SOUTH
turnvobject 19, DIR_SOUTH
turnvobject 21, DIR_SOUTH
turnvobject 23, DIR_SOUTH
turnvobject 25, DIR_SOUTH
turnvobject 27, DIR_SOUTH
turnvobject 31, DIR_SOUTH
delay 20
return
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_WarpToLobby::
2018-08-25 19:59:47 +02:00
copyvar VAR_RESULT, VAR_FRONTIER_BATTLE_MODE
goto_if_eq VAR_RESULT, FRONTIER_MODE_DOUBLES, BattleFrontier_BattleDomePreBattleRoom_EventScript_WarpToLobbyDoubles
warp MAP_BATTLE_FRONTIER_BATTLE_DOME_LOBBY, 5, 11
waitstate
end
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomePreBattleRoom_EventScript_WarpToLobbyDoubles::
warp MAP_BATTLE_FRONTIER_BATTLE_DOME_LOBBY, 17, 11
waitstate
end
@ On round 1 there's a 50% chance that a specific audience member will walk to his seat
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_SetWalkingAudienceMemberPos::
random 2
2018-05-19 18:02:43 +02:00
copyvar VAR_TEMP_D, VAR_RESULT
goto_if_eq VAR_TEMP_D, 0, Common_EventScript_NopReturn
setobjectxyperm LOCALID_AUDIENCE_WALKING, 2, 0
setobjectmovementtype LOCALID_AUDIENCE_WALKING, MOVEMENT_TYPE_FACE_RIGHT
return
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_EventScript_TryDoAudienceMemberWalkToSeat::
goto_if_eq VAR_TEMP_D, 0, Common_EventScript_NopReturn
applymovement LOCALID_AUDIENCE_WALKING, BattleFrontier_BattleDomeBattleRoom_Movement_AudienceMemberWalkToSeat
return
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Movement_AudienceTwinJump:
delay_16
delay_16
delay_16
delay_16
delay_16
delay_16
delay_16
delay_16
delay_16
delay_16
delay_16
delay_16
delay_8
disable_jump_landing_ground_effect
jump_in_place_down
delay_4
jump_in_place_down
enable_jump_landing_ground_effect
step_end
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Movement_AudienceMemberWalkToSeat:
walk_down
walk_down
walk_right
walk_right
walk_in_place_faster_down
step_end
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Movement_RefereeEnter:
walk_right
walk_right
walk_right
walk_right
step_end
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Movement_AnnouncerFaceLeft:
walk_in_place_faster_left
step_end
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Movement_RefereeExit:
walk_left
walk_left
walk_left
walk_left
step_end
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Text_PlayerHasEnteredDome:
.string "{PLAYER} has entered the BATTLE DOME!$"
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Text_PlayerVersusTrainer:
.string "{STR_VAR_1}\n"
.string "match!\p"
.string "{PLAYER} versus {STR_VAR_2}!\p"
.string "Let the battle begin!$"
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Text_PlayerIsWinner:
.string "{PLAYER} is the winner!\n"
.string "Congratulations!$"
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Text_TrainerIsWinner:
.string "{STR_VAR_2} is the winner!\n"
.string "Congratulations!$"
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Text_PlayerIsLv50Champ:
.string "{PLAYER} is the Level 50\n"
.string "Battle Tournament Champion!\p"
.string "Congratulations!$"
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Text_PlayerIsLvOpenChamp:
.string "{PLAYER} is the Open Level\n"
.string "Battle Tournament Champion!\p"
.string "Congratulations!$"
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Text_RefereeDecisionPleaseWait:
.string "What an unbelievable finish!\n"
.string "We have a double knockout!\p"
.string "In this event, the Battle Tournament\n"
2018-12-07 10:41:08 -05:00
.string "rules call for a REFEREE'S decision.\p"
.string "Please wait while the judging\n"
.string "is under way.$"
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Text_RefereesDecidedWinnerTrainer:
.string "The REFEREES have reached\n"
.string "a decision!\p"
.string "The winner is…\n"
.string "Oh, my goodness!\l"
.string "The winner is {STR_VAR_1}!\l"
.string "Congratulations!$"
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Text_RefereesDecidedWinnerPlayer:
.string "The REFEREES have reached\n"
.string "a decision!\p"
.string "The winner is…\n"
.string "Oh, my goodness!\l"
.string "The winner is {PLAYER}!\l"
.string "Congratulations!$"
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Text_BrightNewHope:
.string "The bright new hope!\p"
.string "$"
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Text_RisingStar:
.string "The rising star!\p"
.string "$"
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Text_WillTheyRaceToChampionship:
.string "Will this TRAINER race to\n"
.string "the championship?\p"
.string "$"
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Text_CanAchieveChampionFirstTry:
.string "Can the feat of a championship\n"
.string "on the first try be achieved?\p"
.string "$"
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Text_CanLossBeAvenged:
.string "Can the loss of the last match\n"
.string "be avenged?\p"
.string "$"
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Text_OnFireForChampionship:
.string "The TRAINER is on fire for\n"
.string "the first championship try!\p"
.string "$"
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Text_WinHereAdvancesToFinal:
.string "A win here means this TRAINER\n"
.string "advances to the final!\p"
.string "$"
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Text_WillLongHeldDreamComeTrue:
.string "Will the long-held dream of\n"
.string "a championship finally come true?\p"
.string "$"
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Text_TheInvincibleChampion:
.string "The invincible champion!\p"
.string "$"
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Text_CanAnyoneHopeToBeatTrainer:
.string "Can anyone hope to beat this\n"
.string "TRAINER?\p"
.string "$"
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Text_DoBattlesExistSolelyForTrainer:
.string "Do battles exist solely for\n"
.string "this TRAINER?\p"
.string "$"
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Text_CurrentChampAimingToRetainTitle:
.string "The current champion aiming to\n"
.string "retain the title!\p"
.string "$"
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Text_FormerChampHasReturned:
.string "The former champion has returned!\p"
.string "$"
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Text_FormerToughnessReturned:
.string "The former toughness has returned!\p"
.string "$"
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Text_WillDoExpectedAdvanceToFinals:
.string "Will this TRAINER do as expected\n"
.string "and advance to the finals?\p"
.string "$"
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Text_WillFormerChampRegainGlory:
.string "Will the former champ regain\n"
.string "lost glory?\p"
.string "$"
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Text_FeelGlowOfTrueMaster:
.string "Feel the glow of a true master!$"
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Text_MakeWayForDomeAceTucker:
.string "And now… The TRAINER standing in\n"
2018-12-07 10:41:08 -05:00
.string "{PLAYER}'s record-setting path…\p"
.string "Yes! The one and only!\n"
.string "The BATTLE DOME COMMISSIONER!\l"
.string "Our very own DOME ACE!\l"
.string "Make way for TUCKER!$"
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Text_SpectatorTuckerChant:
.string "Spectators: TUCKER! TUCKER!\n"
.string "TUCKER! TUCKER! TUCKER!$"
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Text_TuckerSilverIntro:
.string "TUCKER: Ahahah!\p"
.string "Do you hear it? This crowd!\n"
2018-12-07 10:41:08 -05:00
.string "They're all itching to see our match!\p"
.string "Ahahah!\p"
2018-12-07 10:41:08 -05:00
.string "I bet you're twitching all over from\n"
.string "the tension of getting to battle me!\p"
2018-12-07 10:41:08 -05:00
.string "But don't you worry about a thing!\p"
.string "I'm the no. 1 star of the BATTLE DOME!\n"
.string "I, TUCKER the DOME ACE, will bathe you\l"
.string "in my brilliant glow!$"
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Text_LetsSeeYourStrategy:
.string "Your strategy!\n"
2018-12-07 10:41:08 -05:00
.string "Let's see it!$"
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Text_IncredibleVictorIsPlayer:
2018-12-07 10:41:08 -05:00
.string "Unbelievable! It's incredible!\n"
.string "The victor is {PLAYER}!$"
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Text_WinnerIsTucker:
.string "The winner is TUCKER!\n"
.string "The DOME ACE has prevailed!\p"
.string "Congratulations, TUCKER!$"
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Text_SeeYourFrontierPass:
.string "TUCKER: Rules are rules!\n"
.string "Let me see your FRONTIER PASS.$"
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Text_ReceivedTacticsSymbol:
.string "The Tactics Symbol was embossed on\n"
.string "the FRONTIER PASS!$"
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Text_WontUnderestimateYouNextTime:
.string "… … … … … …\p"
2018-12-07 10:41:08 -05:00
.string "I sorely underestimated you. I won't\n"
.string "make the same mistake next time…$"
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Text_CanWinStreakBeStretched:
.string "Can the win streak be stretched?\n"
.string "The confidence is there!$"
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Text_LegendHasReturnedDomeAceTucker:
.string "Ladies and gentlemen!\n"
.string "Boys, girls, and POKéMON!\p"
.string "Finally!\n"
.string "Finally, the legend has returned!\p"
.string "Yes, the name of that legend!\n"
.string "Our very own DOME ACE!\l"
2018-12-07 10:41:08 -05:00
.string "It's none other than TUCKER!$"
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Text_TuckerGoldIntro:
.string "TUCKER: Ah…\n"
.string "The pummeling roar of the crowd…\l"
.string "Their furnace-like heat of excitement…\l"
.string "This is a wonderful place…\p"
.string "To the crowd, I am the DOME ACE…\n"
.string "I represent their hopes and dreams…\l"
.string "I must never fade from their sight…\p"
.string "I must burn!\n"
.string "Brighter and more brilliant!\l"
.string "I must light all that gather here!$"
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Text_UnleashAllPowerIPossess:
.string "I will unleash all the power that\n"
.string "I possess! Right here and now!$"
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Text_NeverLostWhenPowerUnleashed:
2018-12-07 10:41:08 -05:00
.string "TUCKER: You're genuinely fantastic!\p"
.string "Never before! I haven't ever lost in the\n"
.string "times I've had to unleash my power.\p"
.string "Yes, quite fantastic!\n"
.string "Your FRONTIER PASS, please?$"
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Text_TacticsSymbolTookGoldenShine:
.string "The Tactics Symbol took on\n"
.string "a golden shine!$"
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Text_LookForwardToNextEncounter:
2018-12-07 10:41:08 -05:00
.string "You're strong, but above all,\n"
.string "you have a unique charm!\p"
.string "In you, I see a definite potential for\n"
.string "a superstar like me.\p"
.string "I will very much look forward to\n"
.string "our next encounter!$"
@ Unused
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Text_PlayerIsLv50Champ2:
2017-11-10 02:24:21 -06:00
.string "{PLAYER} is the Level 50\n"
.string "Battle Tournament Champion!\p"
.string "Congratulations!$"
@ Unused
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Text_PlayerIsLvOpenChamp2:
2017-11-10 02:24:21 -06:00
.string "{PLAYER} is the Open Level\n"
.string "Battle Tournament Champion!\p"
.string "Congratulations!$"
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Text_PlayerVersusTucker:
.string "The final match!\p"
.string "{PLAYER} versus the DOME ACE, TUCKER!\p"
.string "Let the battle begin!$"
2021-07-20 15:18:31 -04:00
BattleFrontier_BattleDomeBattleRoom_Text_RefereesDecidedWinnerTucker:
.string "The REFEREES have reached\n"
.string "a decision!\p"
.string "The winner is…\n"
.string "Oh, my goodness!\l"
.string "The winner is our very own DOME ACE!\l"
2018-12-07 10:41:08 -05:00
.string "It's TUCKER!\p"
.string "Congratulations! And thank you!\n"
2018-12-07 10:41:08 -05:00
.string "Let's hear it for the DOME ACE, TUCKER!$"