pokeemerald/data/maps/BattleFrontier_BattleTowerBattleRoom/scripts.inc

568 lines
22 KiB
PHP
Raw Normal View History

.set LOCALID_OPPONENT, 1
.set LOCALID_ATTENDANT_1, 2
.set LOCALID_ATTENDANT_2, 3
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_MapScripts::
map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattleTowerBattleRoom_OnFrame
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattleTowerBattleRoom_OnWarp
2017-11-10 02:21:31 +01:00
.byte 0
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_OnWarp:
map_script_2 VAR_TEMP_1, 0, BattleFrontier_BattleTowerBattleRoom_EventScript_SetUpObjects
2017-11-10 02:21:31 +01:00
.2byte 0
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_EventScript_SetUpObjects::
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 1
applymovement LOCALID_ATTENDANT_2, BattleFrontier_BattleTowerBattleRoom_Movement_SetInvisible
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_OnFrame:
map_script_2 VAR_TEMP_0, 0, BattleFrontier_BattleTowerBattleRoom_EventScript_EnterRoom
2017-11-10 02:21:31 +01:00
.2byte 0
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_EventScript_EnterRoom::
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_0, 1
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleTowerBattleRoom_Movement_PlayerEnter
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-24 22:58:40 +01:00
frontier_get FRONTIER_DATA_BATTLE_NUM
goto_if_eq VAR_RESULT, 0, BattleFrontier_BattleTowerBattleRoom_EventScript_OpponentEnter
applymovement LOCALID_ATTENDANT_1, BattleFrontier_BattleTowerBattleRoom_Movement_AttendantApproachPlayer
2017-11-10 02:21:31 +01:00
waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleTowerBattleRoom_Movement_PlayerFaceAttendant
2017-11-10 02:21:31 +01:00
waitmovement 0
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_2, 1
frontier_set FRONTIER_DATA_RECORD_DISABLED, TRUE
goto BattleFrontier_BattleTowerBattleRoom_EventScript_AskReadyForOpponent
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_EventScript_OpponentEnter::
2019-11-29 04:46:39 +01:00
tower_setopponent
addobject LOCALID_OPPONENT
applymovement LOCALID_OPPONENT, BattleFrontier_BattleTowerBattleRoom_Movement_OpponentEnter
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-29 04:46:39 +01:00
tower_getopponentintro 0
msgbox gStringVar4, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
waitmessage
call BattleFrontier_BattleTowerBattleRoom_EventScript_DoTowerBattle
2017-11-10 02:21:31 +01:00
switch VAR_RESULT
case B_OUTCOME_WON, BattleFrontier_BattleTowerBattleRoom_EventScript_DefeatedOpponent
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTower_EventScript_WarpToLobbyLost::
2019-11-24 22:58:40 +01:00
frontier_set FRONTIER_DATA_CHALLENGE_STATUS, CHALLENGE_STATUS_LOST
2019-11-29 04:46:39 +01:00
tower_set TOWER_DATA_LVL_MODE
2020-06-17 23:48:20 +02:00
setvar VAR_0x8004, FANCOUNTER_USED_BATTLE_TOWER
2019-11-17 23:34:11 +01:00
special Script_TryGainNewFanFromCounter
goto BattleFrontier_BattleTowerBattleRoom_EventScript_WarpToLobby
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_EventScript_DefeatedOpponent::
2019-11-24 22:58:40 +01:00
call BattleFrontier_EventScript_IncrementWinStreak
2019-11-29 04:46:39 +01:00
tower_setbattlewon
2017-11-10 02:21:31 +01:00
switch VAR_RESULT
case 7, BattleFrontier_BattleTowerBattleRoom_EventScript_WarpToLobbyWon
applymovement LOCALID_OPPONENT, BattleFrontier_BattleTowerBattleRoom_Movement_OpponentExit
2017-11-10 02:21:31 +01:00
waitmovement 0
removeobject LOCALID_OPPONENT
frontier_getbrainstatus
call_if_ne VAR_RESULT, FRONTIER_BRAIN_NOT_READY, BattleFrontier_BattleTowerBattleRoom_EventScript_SecondAttendantEnter
applymovement LOCALID_ATTENDANT_1, BattleFrontier_BattleTowerBattleRoom_Movement_AttendantApproachPlayer
2017-11-10 02:21:31 +01:00
waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleTowerBattleRoom_Movement_PlayerFaceAttendant
2017-11-10 02:21:31 +01:00
waitmovement 0
msgbox BattleFrontier_BattleTowerBattleRoom_Text_RestoreMonsToFullHealth, MSGBOX_DEFAULT
2020-08-21 00:02:00 +02:00
playfanfare MUS_HEAL
2017-11-10 02:21:31 +01:00
waitfanfare
2017-12-16 00:08:23 +01:00
special HealPlayerParty
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_EventScript_AskReadyForOpponent::
frontier_getbrainstatus
2018-05-19 18:02:43 +02:00
copyvar VAR_TEMP_F, VAR_RESULT
goto_if_ne VAR_RESULT, FRONTIER_BRAIN_NOT_READY, BattleFrontier_BattleTowerBattleRoom_EventScript_MaidenUpNext
2019-11-24 22:58:40 +01:00
frontier_get FRONTIER_DATA_BATTLE_NUM
call BattleFrontier_BattleTowerBattleRoom_EventScript_ReadyForOpponent
call BattleFrontier_EventScript_GetCantRecordBattle
goto_if_eq VAR_RESULT, TRUE, BattleFrontier_BattleTowerBattleRoom_EventScript_AskReadyForOpponentNoRecord
2021-03-31 06:35:56 +02:00
multichoice 19, 4, MULTI_GO_ON_RECORD_REST_RETIRE, TRUE
2017-11-10 02:21:31 +01:00
switch VAR_RESULT
case 0, BattleFrontier_BattleTowerBattleRoom_EventScript_ContinueChallenge
case 1, BattleFrontier_BattleTowerBattleRoom_EventScript_AskRecordBattle
case 2, BattleFrontier_BattleTowerBattleRoom_EventScript_AskPauseChallenge
case 3, BattleFrontier_BattleTowerBattleRoom_EventScript_AskRetireChallenge
case MULTI_B_PRESSED, BattleFrontier_BattleTowerBattleRoom_EventScript_AskReadyForOpponent
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_EventScript_AskReadyForOpponentNoRecord::
2021-03-31 06:35:56 +02:00
multichoice 20, 6, MULTI_GO_ON_REST_RETIRE, TRUE
2017-11-10 02:21:31 +01:00
switch VAR_RESULT
case 0, BattleFrontier_BattleTowerBattleRoom_EventScript_ContinueChallenge
case 1, BattleFrontier_BattleTowerBattleRoom_EventScript_AskPauseChallenge
case 2, BattleFrontier_BattleTowerBattleRoom_EventScript_AskRetireChallenge
case MULTI_B_PRESSED, BattleFrontier_BattleTowerBattleRoom_EventScript_AskReadyForOpponent
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_EventScript_AskRecordBattle::
message BattleFrontier_BattleTowerBattleRoom_Text_RecordYourBattle
2017-11-10 02:21:31 +01:00
waitmessage
2021-03-31 06:35:56 +02:00
multichoicedefault 20, 8, MULTI_YESNO, 1, FALSE
2017-11-10 02:21:31 +01:00
switch VAR_RESULT
case 1, BattleFrontier_BattleTowerBattleRoom_EventScript_AskReadyForOpponent
case 0, BattleFrontier_BattleTowerBattleRoom_EventScript_RecordBattle
case MULTI_B_PRESSED, BattleFrontier_BattleTowerBattleRoom_EventScript_AskReadyForOpponent
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_EventScript_RecordBattle::
2019-11-24 22:58:40 +01:00
call BattleFrontier_EventScript_SaveBattle
goto BattleFrontier_BattleTowerBattleRoom_EventScript_AskReadyForOpponent
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_EventScript_AskPauseChallenge::
msgbox BattleFrontier_BattleTowerBattleRoom_Text_SaveAndQuitGame, MSGBOX_YESNO
2017-11-10 02:21:31 +01:00
switch VAR_RESULT
case NO, BattleFrontier_BattleTowerBattleRoom_EventScript_AskReadyForOpponent
case YES, BattleFrontier_BattleTowerBattleRoom_EventScript_PauseChallenge
case MULTI_B_PRESSED, BattleFrontier_BattleTowerBattleRoom_EventScript_AskReadyForOpponent
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_EventScript_AskRetireChallenge::
message BattleFrontier_BattleTowerBattleRoom_Text_CancelYourChallenge
2017-11-10 02:21:31 +01:00
waitmessage
2021-03-31 06:35:56 +02:00
multichoicedefault 20, 8, MULTI_YESNO, 1, FALSE
2017-11-10 02:21:31 +01:00
switch VAR_RESULT
case 1, BattleFrontier_BattleTowerBattleRoom_EventScript_AskReadyForOpponent
case 0, BattleFrontier_BattleTowerBattleRoom_EventScript_RetireChallenge
case MULTI_B_PRESSED, BattleFrontier_BattleTowerBattleRoom_EventScript_AskReadyForOpponent
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_EventScript_ContinueChallenge::
2017-11-10 02:21:31 +01:00
closemessage
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleTowerBattleRoom_Movement_PlayerFaceBattle
2017-11-10 02:21:31 +01:00
waitmovement 0
applymovement LOCALID_ATTENDANT_1, BattleFrontier_BattleTowerBattleRoom_Movement_AttendantReturnToPos
2017-11-10 02:21:31 +01:00
waitmovement 0
goto BattleFrontier_BattleTowerBattleRoom_EventScript_OpponentEnter
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_EventScript_WarpToLobbyWon::
2019-11-24 22:58:40 +01:00
frontier_set FRONTIER_DATA_CHALLENGE_STATUS, CHALLENGE_STATUS_WON
2019-11-29 04:46:39 +01:00
tower_set TOWER_DATA_LVL_MODE
2020-06-17 23:48:20 +02:00
setvar VAR_0x8004, FANCOUNTER_USED_BATTLE_TOWER
2019-11-17 23:34:11 +01:00
special Script_TryGainNewFanFromCounter
goto BattleFrontier_BattleTowerBattleRoom_EventScript_WarpToLobby
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_EventScript_PauseChallenge::
message BattleFrontier_BattleTowerBattleRoom_Text_SavingPleaseWait
2017-11-10 02:21:31 +01:00
waitmessage
2019-11-29 04:46:39 +01:00
tower_save CHALLENGE_STATUS_PAUSED
2017-11-10 02:21:31 +01:00
playse SE_SAVE
waitse
2019-12-15 17:42:50 +01:00
fadescreen FADE_TO_BLACK
2019-11-24 22:58:40 +01:00
frontier_reset
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_EventScript_ReadyForOpponent::
2018-05-19 18:02:43 +02:00
copyvar VAR_TEMP_F, VAR_RESULT
switch VAR_TEMP_F
case 1, BattleFrontier_BattleTowerBattleRoom_EventScript_ReadyFor2ndOpponent
case 2, BattleFrontier_BattleTowerBattleRoom_EventScript_ReadyFor3rdOpponent
case 3, BattleFrontier_BattleTowerBattleRoom_EventScript_ReadyFor4thOpponent
case 4, BattleFrontier_BattleTowerBattleRoom_EventScript_ReadyFor5thOpponent
case 5, BattleFrontier_BattleTowerBattleRoom_EventScript_ReadyFor6thOpponent
case 6, BattleFrontier_BattleTowerBattleRoom_EventScript_ReadyFor7thOpponent
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_EventScript_ReadyFor2ndOpponent::
message BattleFrontier_BattleTowerBattleRoom_Text_ReadyFor2ndOpponent
2017-11-10 02:21:31 +01:00
waitmessage
return
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_EventScript_ReadyFor3rdOpponent::
message BattleFrontier_BattleTowerBattleRoom_Text_ReadyFor3rdOpponent
2017-11-10 02:21:31 +01:00
waitmessage
return
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_EventScript_ReadyFor4thOpponent::
message BattleFrontier_BattleTowerBattleRoom_Text_ReadyFor4thOpponent
2017-11-10 02:21:31 +01:00
waitmessage
return
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_EventScript_ReadyFor5thOpponent::
message BattleFrontier_BattleTowerBattleRoom_Text_ReadyFor5thOpponent
2017-11-10 02:21:31 +01:00
waitmessage
return
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_EventScript_ReadyFor6thOpponent::
message BattleFrontier_BattleTowerBattleRoom_Text_ReadyFor6thOpponent
2017-11-10 02:21:31 +01:00
waitmessage
return
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_EventScript_ReadyFor7thOpponent::
message BattleFrontier_BattleTowerBattleRoom_Text_ReadyFor7thOpponent
2017-11-10 02:21:31 +01:00
waitmessage
return
2021-07-20 21:18:31 +02:00
BattleFrontier_EventScript_IncrementWinStreak::
2019-11-24 22:58:40 +01:00
frontier_incrementstreak
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_EventScript_SecondAttendantEnter::
applymovement LOCALID_ATTENDANT_2, BattleFrontier_BattleTowerBattleRoom_Movement_SecondAttendantEnter
2017-11-10 02:21:31 +01:00
waitmovement 0
applymovement LOCALID_ATTENDANT_2, Common_Movement_WalkInPlaceLeft
2017-11-10 02:21:31 +01:00
waitmovement 0
playse SE_PIN
applymovement LOCALID_ATTENDANT_1, Common_Movement_ExclamationMark
2017-11-10 02:21:31 +01:00
waitmovement 0
applymovement LOCALID_ATTENDANT_1, Common_Movement_Delay48
2017-11-10 02:21:31 +01:00
waitmovement 0
applymovement LOCALID_ATTENDANT_2, BattleFrontier_BattleTowerBattleRoom_Movement_SecondAttendantDelay
applymovement LOCALID_ATTENDANT_1, BattleFrontier_BattleTowerBattleRoom_Movement_AttendantFaceSecondAttendant
2017-11-10 02:21:31 +01:00
waitmovement 0
applymovement LOCALID_ATTENDANT_2, BattleFrontier_BattleTowerBattleRoom_Movement_SecondAttendantExit
2017-11-10 02:21:31 +01:00
waitmovement 0
return
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_EventScript_MaidenUpNext::
goto_if_eq VAR_TEMP_2, 1, BattleFrontier_BattleTowerBattleRoom_EventScript_AskReadyForMaiden
msgbox BattleFrontier_BattleTowerBattleRoom_Text_SalonMaidenOnHerWay, MSGBOX_DEFAULT
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_2, 1
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_EventScript_AskReadyForMaiden::
message BattleFrontier_BattleTowerBattleRoom_Text_ReadyForSalonMaiden
2017-11-10 02:21:31 +01:00
waitmessage
call BattleFrontier_EventScript_GetCantRecordBattle
goto_if_eq VAR_RESULT, TRUE, BattleFrontier_BattleTowerBattleRoom_EventScript_AskReadyForMaidenNoRecord
2021-03-31 06:35:56 +02:00
multichoice 19, 4, MULTI_GO_ON_RECORD_REST_RETIRE, TRUE
2017-11-10 02:21:31 +01:00
switch VAR_RESULT
case 0, BattleFrontier_BattleTowerBattleRoom_EventScript_BattleAnabel
case 1, BattleFrontier_BattleTowerBattleRoom_EventScript_AskRecordBattle
case 2, BattleFrontier_BattleTowerBattleRoom_EventScript_AskPauseChallenge
case 3, BattleFrontier_BattleTowerBattleRoom_EventScript_AskRetireChallenge
case MULTI_B_PRESSED, BattleFrontier_BattleTowerBattleRoom_EventScript_AskReadyForMaiden
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_EventScript_AskReadyForMaidenNoRecord::
2021-03-31 06:35:56 +02:00
multichoice 20, 6, MULTI_GO_ON_REST_RETIRE, TRUE
2017-11-10 02:21:31 +01:00
switch VAR_RESULT
case 0, BattleFrontier_BattleTowerBattleRoom_EventScript_BattleAnabel
case 1, BattleFrontier_BattleTowerBattleRoom_EventScript_AskPauseChallenge
case 2, BattleFrontier_BattleTowerBattleRoom_EventScript_AskRetireChallenge
case MULTI_B_PRESSED, BattleFrontier_BattleTowerBattleRoom_EventScript_AskReadyForMaiden
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_EventScript_BattleAnabel::
2019-11-24 22:58:40 +01:00
call BattleFrontier_EventScript_SetBrainObjectGfx
2017-11-10 02:21:31 +01:00
closemessage
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleTowerBattleRoom_Movement_PlayerFaceBattle
2017-11-10 02:21:31 +01:00
waitmovement 0
applymovement LOCALID_ATTENDANT_1, BattleFrontier_BattleTowerBattleRoom_Movement_AttendantReturnToPos
2017-11-10 02:21:31 +01:00
waitmovement 0
addobject LOCALID_OPPONENT
applymovement LOCALID_OPPONENT, BattleFrontier_BattleTowerBattleRoom_Movement_AnabelEnter
2017-11-10 02:21:31 +01:00
waitmovement 0
2018-05-19 18:02:43 +02:00
switch VAR_TEMP_F
case FRONTIER_BRAIN_GOLD, BattleFrontier_BattleTowerBattleRoom_EventScript_AnabelGoldIntro
case FRONTIER_BRAIN_STREAK, BattleFrontier_BattleTowerBattleRoom_EventScript_BattleAnabelSilver
case FRONTIER_BRAIN_STREAK_LONG, BattleFrontier_BattleTowerBattleRoom_EventScript_BattleAnabelGold
2019-11-24 22:58:40 +01:00
frontier_get FRONTIER_DATA_HEARD_BRAIN_SPEECH
goto_if_ne VAR_RESULT, FALSE, BattleFrontier_BattleTowerBattleRoom_EventScript_BattleAnabelSilver
msgbox BattleFrontier_BattleTowerBattleRoom_Text_GreetingsImAnabel, MSGBOX_DEFAULT
2019-11-24 22:58:40 +01:00
frontier_set FRONTIER_DATA_HEARD_BRAIN_SPEECH
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_EventScript_BattleAnabelSilver::
msgbox BattleFrontier_BattleTowerBattleRoom_Text_LetMeSeeYourTalent, MSGBOX_DEFAULT
call BattleFrontier_BattleTowerBattleRoom_EventScript_DoTowerBattle
goto_if_eq VAR_RESULT, B_OUTCOME_WON, BattleFrontier_BattleTowerBattleRoom_EventScript_DefeatedAnabelSilver
goto BattleFrontier_BattleTower_EventScript_WarpToLobbyLost
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_EventScript_DefeatedAnabelSilver::
2019-11-24 22:58:40 +01:00
call BattleFrontier_EventScript_IncrementWinStreak
frontier_getsymbols
goto_if_ne VAR_RESULT, 0, BattleFrontier_BattleTowerBattleRoom_EventScript_WarpToLobbyWon
msgbox BattleFrontier_BattleTowerBattleRoom_Text_AnabelTalentShallBeRecognized, MSGBOX_DEFAULT
2020-08-21 00:02:00 +02:00
playfanfare MUS_OBTAIN_SYMBOL
message BattleFrontier_BattleTowerBattleRoom_Text_ReceivedAbilitySymbol
2017-11-10 02:21:31 +01:00
waitmessage
waitfanfare
2019-11-24 22:58:40 +01:00
frontier_givesymbol
msgbox BattleFrontier_BattleTowerBattleRoom_Text_UntilNextTime, MSGBOX_DEFAULT
goto BattleFrontier_BattleTowerBattleRoom_EventScript_WarpToLobbyWon
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_EventScript_AnabelGoldIntro::
2019-11-24 22:58:40 +01:00
frontier_get FRONTIER_DATA_HEARD_BRAIN_SPEECH
goto_if_ne VAR_RESULT, FALSE, BattleFrontier_BattleTowerBattleRoom_EventScript_BattleAnabelGold
msgbox BattleFrontier_BattleTowerBattleRoom_Text_AnabelYouCameBack, MSGBOX_DEFAULT
2019-11-24 22:58:40 +01:00
frontier_set FRONTIER_DATA_HEARD_BRAIN_SPEECH
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_EventScript_BattleAnabelGold::
msgbox BattleFrontier_BattleTowerBattleRoom_Text_LetsBeginShallWe, MSGBOX_DEFAULT
call BattleFrontier_BattleTowerBattleRoom_EventScript_DoTowerBattle
goto_if_eq VAR_RESULT, B_OUTCOME_WON, BattleFrontier_BattleTowerBattleRoom_EventScript_DefeatedAnabelGold
goto BattleFrontier_BattleTower_EventScript_WarpToLobbyLost
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_EventScript_DefeatedAnabelGold::
2019-11-24 22:58:40 +01:00
call BattleFrontier_EventScript_IncrementWinStreak
frontier_getsymbols
goto_if_eq VAR_RESULT, 2, BattleFrontier_BattleTowerBattleRoom_EventScript_WarpToLobbyWon
msgbox BattleFrontier_BattleTowerBattleRoom_Text_AnabelCongratsYourPassPlease, MSGBOX_DEFAULT
2020-08-21 00:02:00 +02:00
playfanfare MUS_OBTAIN_SYMBOL
message BattleFrontier_BattleTowerBattleRoom_Text_AbilitySymbolTookGoldenShine
2017-11-10 02:21:31 +01:00
waitmessage
waitfanfare
2019-11-24 22:58:40 +01:00
frontier_givesymbol
msgbox BattleFrontier_BattleTowerBattleRoom_Text_WishICouldBattleYouAgain, MSGBOX_DEFAULT
goto BattleFrontier_BattleTowerBattleRoom_EventScript_WarpToLobbyWon
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_EventScript_DoTowerBattle::
2017-11-10 02:21:31 +01:00
closemessage
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_2, 0
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_TOWER
2017-11-10 02:21:31 +01:00
setvar VAR_0x8005, 0
2018-10-21 20:13:12 +02:00
special DoSpecialTrainerBattle
2017-11-10 02:21:31 +01:00
waitstate
2018-08-25 19:59:47 +02:00
copyvar VAR_0x8004, VAR_FRONTIER_BATTLE_MODE
goto_if_eq VAR_0x8004, FRONTIER_MODE_LINK_MULTIS, BattleFrontier_BattleTowerBattleRoom_EventScript_EndTowerBattle
2019-11-24 22:58:40 +01:00
frontier_restorehelditems
2017-12-16 00:08:23 +01:00
special HealPlayerParty
frontier_resetsketch
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_EventScript_EndTowerBattle::
2019-11-29 04:46:39 +01:00
tower_setinterviewdata
2019-11-24 22:58:40 +01:00
frontier_get FRONTIER_DATA_BATTLE_OUTCOME
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
BattleFrontier_EventScript_SetBrainObjectGfx::
2019-11-24 22:58:40 +01:00
frontier_setbrainobj
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_Movement_PlayerEnter:
walk_up
walk_up
walk_up
face_right
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_Movement_PlayerFaceAttendant:
face_down
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_Movement_PlayerFaceBattle:
face_right
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_Movement_OpponentEnter:
walk_down
walk_down
walk_down
walk_down
face_left
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_Movement_OpponentExit:
walk_up
walk_up
walk_up
walk_up
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_Movement_AttendantApproachPlayer:
walk_right
walk_right
walk_right
walk_up
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_Movement_AttendantReturnToPos:
walk_down
walk_left
walk_left
walk_left
face_right
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_Movement_SetInvisible:
set_invisible
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_Movement_SecondAttendantEnter:
set_visible
delay_16
walk_up
walk_left
walk_left
delay_8
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_Movement_SecondAttendantExit:
walk_right
walk_right
walk_down
set_invisible
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_Movement_SecondAttendantDelay:
delay_16
delay_16
delay_16
delay_16
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_Movement_AttendantFaceSecondAttendant:
face_right
delay_16
delay_16
delay_16
delay_16
walk_in_place_right
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_Movement_AnabelEnter:
walk_slow_down
walk_slow_down
walk_slow_down
walk_slow_down
face_left
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_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_BattleTowerBattleRoom_EventScript_WarpToLobbyDoubles
goto_if_eq VAR_RESULT, FRONTIER_MODE_MULTIS, BattleFrontier_BattleTowerBattleRoom_EventScript_WarpToLobbyMultis
goto_if_eq VAR_RESULT, FRONTIER_MODE_LINK_MULTIS, BattleFrontier_BattleTowerBattleRoom_EventScript_WarpToLobbyLinkMultis
warp MAP_BATTLE_FRONTIER_BATTLE_TOWER_LOBBY, 6, 6
2017-11-10 02:21:31 +01:00
waitstate
end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_EventScript_WarpToLobbyDoubles::
warp MAP_BATTLE_FRONTIER_BATTLE_TOWER_LOBBY, 10, 6
2017-11-10 02:21:31 +01:00
waitstate
end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_EventScript_WarpToLobbyMultis::
warp MAP_BATTLE_FRONTIER_BATTLE_TOWER_LOBBY, 14, 6
2017-11-10 02:21:31 +01:00
waitstate
end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_EventScript_WarpToLobbyLinkMultis::
2020-12-24 22:18:47 +01:00
tower_closelink
warp MAP_BATTLE_FRONTIER_BATTLE_TOWER_LOBBY, 18, 6
2017-11-10 02:21:31 +01:00
waitstate
end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_EventScript_RetireChallenge::
2019-01-02 22:12:43 +01:00
setflag FLAG_CANCEL_BATTLE_ROOM_CHALLENGE
goto BattleFrontier_BattleTower_EventScript_WarpToLobbyLost
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_Text_RestoreMonsToFullHealth:
2017-11-10 00:40:08 +01:00
.string "We will restore your POKéMON to\n"
.string "full health.$"
@ Unused
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_Text_ReadyForOpponent:
2017-11-10 00:40:08 +01:00
.string "You will be facing opponent no. {STR_VAR_1}.\n"
.string "Are you ready?$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_Text_ReadyFor2ndOpponent:
2017-11-10 00:40:08 +01:00
.string "You will be facing opponent no. 2.\n"
.string "Are you ready?$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_Text_ReadyFor3rdOpponent:
2017-11-10 00:40:08 +01:00
.string "You will be facing opponent no. 3.\n"
.string "Are you ready?$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_Text_ReadyFor4thOpponent:
2017-11-10 00:40:08 +01:00
.string "You will be facing opponent no. 4.\n"
.string "Are you ready?$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_Text_ReadyFor5thOpponent:
2017-11-10 00:40:08 +01:00
.string "You will be facing opponent no. 5.\n"
.string "Are you ready?$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_Text_ReadyFor6thOpponent:
2017-11-10 00:40:08 +01:00
.string "You will be facing opponent no. 6.\n"
.string "Are you ready?$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_Text_ReadyFor7thOpponent:
2017-11-10 00:40:08 +01:00
.string "You will be facing opponent no. 7.\n"
.string "Are you ready?$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_Text_RecordYourBattle:
2017-11-10 00:40:08 +01:00
.string "Record your battle on your\n"
.string "FRONTIER PASS?$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerLobby_Text_BattleRecordedOnPass:
2018-12-07 16:41:08 +01:00
.string "{PLAYER}'s battle was recorded\n"
2017-11-10 00:40:08 +01:00
.string "on the FRONTIER PASS.$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_Text_SaveAndQuitGame:
2017-11-10 00:40:08 +01:00
.string "Would you like to save and\n"
.string "quit the game?$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_Text_SavingPleaseWait:
2017-11-10 00:40:08 +01:00
.string "Saving your battle data.\n"
.string "Please wait.$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_Text_CancelYourChallenge:
2017-11-10 00:40:08 +01:00
.string "Would you like to cancel your BATTLE\n"
.string "ROOM challenge?$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_Text_RecordCouldntBeSaved::
2017-11-10 00:40:08 +01:00
.string "There was an error of some sort.\n"
.string "Your record could not be saved.$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_Text_SalonMaidenOnHerWay:
2017-11-10 00:40:08 +01:00
.string "Excuse me, but…\p"
.string "Our leader, the SALON MAIDEN, is on\n"
.string "her way here in hopes of battling you.\p"
.string "She should be arriving very shortly.$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_Text_ReadyForSalonMaiden:
2017-11-10 00:40:08 +01:00
.string "You will be facing the SALON MAIDEN.\n"
.string "Are you prepared?$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_Text_GreetingsImAnabel:
2017-11-10 00:40:08 +01:00
.string "Greetings…\n"
.string "My name is ANABEL.\p"
.string "I am the SALON MAIDEN, and I am in\n"
.string "charge of running the BATTLE TOWER…\p"
.string "I have heard several rumors\n"
.string "about you…\p"
.string "In all honesty, what I have heard does\n"
.string "not seem attractive in any way…\p"
2018-12-07 16:41:08 +01:00
.string "The reason I've come to see you…\n"
2017-11-10 00:40:08 +01:00
.string "Well, there is but one reason…$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_Text_LetMeSeeYourTalent:
2017-11-10 00:40:08 +01:00
.string "Let me see your talent in\n"
.string "its entirety…$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_Text_AnabelTalentShallBeRecognized:
2017-11-10 00:40:08 +01:00
.string "ANABEL: Fufufu, nicely done…\p"
.string "Your FRONTIER PASS, please…\n"
.string "Your talent shall be recognized.$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_Text_ReceivedAbilitySymbol:
2017-11-10 00:40:08 +01:00
.string "The Ability Symbol was embossed on\n"
.string "the FRONTIER PASS!$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_Text_UntilNextTime:
2017-11-10 00:40:08 +01:00
.string "… … … … … …\p"
.string "You have confidence in your POKéMON\n"
2018-12-07 16:41:08 +01:00
.string "battling talent, don't you?\p"
2017-11-10 00:40:08 +01:00
.string "I urge you to keep battling and\n"
.string "keep on winning.\p"
.string "I will be waiting for you.\n"
.string "Until the next time we meet…$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_Text_AnabelYouCameBack:
2017-11-10 00:40:08 +01:00
.string "ANABEL: You really did come back to\n"
.string "see me…\p"
.string "… … … … … …\p"
2018-12-07 16:41:08 +01:00
.string "You've won straight matches to see me…\n"
.string "I won't have to hold back against you…\p"
.string "It's been too long now…\p"
.string "Too long since I've been able to battle\n"
2017-11-10 00:40:08 +01:00
.string "without thinking about anything…$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_Text_LetsBeginShallWe:
2018-12-07 16:41:08 +01:00
.string "Let's begin, shall we?$"
2017-11-10 00:40:08 +01:00
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_Text_AnabelCongratsYourPassPlease:
2017-11-10 00:40:08 +01:00
.string "ANABEL: Fufu, congratulations…\n"
.string "Your FRONTIER PASS, please…$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_Text_AbilitySymbolTookGoldenShine:
2017-11-10 00:40:08 +01:00
.string "The Ability Symbol took on\n"
.string "a golden shine!$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleTowerBattleRoom_Text_WishICouldBattleYouAgain:
2017-11-10 00:40:08 +01:00
.string "That was fun…\p"
.string "I have never had a POKéMON battle\n"
.string "so enjoyable before…\p"
.string "I wish I could battle with you again…$"