pokeemerald/data/maps/BattleFrontier_BattleDomeLobby/scripts.inc

705 lines
27 KiB
PHP
Raw Normal View History

.set LOCALID_ATTENDANT_SINGLES, 1
.set LOCALID_ATTENDANT_DOUBLES, 6
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_MapScripts::
map_script MAP_SCRIPT_ON_RESUME, BattleFrontier_BattleDomeLobby_OnResume
map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattleDomeLobby_OnFrame
2019-12-11 09:28:55 +01:00
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattleDomeLobby_OnWarp
2017-11-10 02:21:31 +01:00
.byte 0
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_OnResume:
dome_initresultstree
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_OnWarp:
map_script_2 VAR_TEMP_1, 0, BattleFrontier_BattleDomeLobby_EventScript_TurnPlayerNorth
2017-11-10 02:21:31 +01:00
.2byte 0
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_TurnPlayerNorth::
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 1
turnobject OBJ_EVENT_ID_PLAYER, DIR_NORTH
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_OnFrame:
map_script_2 VAR_TEMP_0, 0, BattleFrontier_BattleDomeLobby_EventScript_GetChallengeStatus
map_script_2 VAR_TEMP_0, CHALLENGE_STATUS_SAVING, BattleFrontier_BattleDomeLobby_EventScript_QuitWithoutSaving
map_script_2 VAR_TEMP_0, CHALLENGE_STATUS_PAUSED, BattleFrontier_BattleDomeLobby_EventScript_ResumeChallenge
map_script_2 VAR_TEMP_0, CHALLENGE_STATUS_WON, BattleFrontier_BattleDomeLobby_EventScript_WonChallenge
map_script_2 VAR_TEMP_0, CHALLENGE_STATUS_LOST, BattleFrontier_BattleDomeLobby_EventScript_LostChallenge
2017-11-10 02:21:31 +01:00
.2byte 0
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_GetChallengeStatus::
2019-11-24 22:58:40 +01:00
frontier_getstatus
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_QuitWithoutSaving::
2017-11-10 02:21:31 +01:00
lockall
msgbox BattleFrontier_BattleDomeLobby_Text_DidntSaveBeforeQuitting, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
2019-11-29 04:46:39 +01:00
dome_set DOME_DATA_WIN_STREAK, 0
dome_set DOME_DATA_WIN_STREAK_ACTIVE, FALSE
dome_set DOME_DATA_ATTEMPTED_CHALLENGE, TRUE
2019-11-24 22:58:40 +01:00
frontier_set FRONTIER_DATA_CHALLENGE_STATUS, 0
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_0, 255
2017-11-10 02:21:31 +01:00
releaseall
end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_WonChallenge::
2019-11-24 22:58:40 +01:00
call BattleFrontier_EventScript_IncrementWinStreak
2017-11-10 02:21:31 +01:00
lockall
2019-11-24 22:58:40 +01:00
frontier_isbrain
2019-11-10 02:40:25 +01:00
compare VAR_RESULT, TRUE
goto_if_eq BattleFrontier_BattleDomeLobby_EventScript_DefeatedAce
msgbox BattleFrontier_BattleDomeLobby_Text_CongratsForWinningTourney, MSGBOX_DEFAULT
goto BattleFrontier_BattleDomeLobby_EventScript_GiveBattlePoints
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_DefeatedAce::
msgbox BattleFrontier_BattleDomeLobby_Text_CongratsDefeatedTucker, MSGBOX_DEFAULT
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_GiveBattlePoints::
msgbox BattleFrontier_BattleDomeLobby_Text_AwardTheseBattlePoints, MSGBOX_DEFAULT
2019-11-24 22:58:40 +01:00
frontier_givepoints
msgbox BattleFrontier_Text_ObtainedXBattlePoints, MSGBOX_GETPOINTS
message BattleFrontier_BattleDomeLobby_Text_RecordWillBeSaved
2017-11-10 02:21:31 +01:00
waitmessage
2018-04-29 14:21:59 +02:00
special LoadPlayerParty
2019-11-24 22:58:40 +01:00
frontier_setpartyorder FRONTIER_PARTY_SIZE
frontier_checkairshow
dome_set DOME_DATA_ATTEMPTED_CHALLENGE, TRUE
dome_set DOME_DATA_HAS_WON_CHALLENGE, TRUE
2019-11-29 04:46:39 +01:00
dome_set DOME_DATA_WIN_STREAK_ACTIVE, TRUE
2018-04-29 14:21:59 +02:00
special LoadPlayerParty
2017-12-16 00:08:23 +01:00
special HealPlayerParty
goto BattleFrontier_BattleDomeLobby_EventScript_AskRecordBattle
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_LostChallenge::
2017-11-10 02:21:31 +01:00
lockall
msgbox BattleFrontier_BattleDomeLobby_Text_ThankYouForPlaying, MSGBOX_DEFAULT
message BattleFrontier_BattleDomeLobby_Text_RecordWillBeSaved
2017-11-10 02:21:31 +01:00
waitmessage
2018-04-29 14:21:59 +02:00
special LoadPlayerParty
2019-11-24 22:58:40 +01:00
frontier_setpartyorder FRONTIER_PARTY_SIZE
frontier_checkairshow
2019-11-29 04:46:39 +01:00
dome_set DOME_DATA_WIN_STREAK_ACTIVE, FALSE
dome_set DOME_DATA_ATTEMPTED_CHALLENGE, TRUE
2018-04-29 14:21:59 +02:00
special LoadPlayerParty
2017-12-16 00:08:23 +01:00
special HealPlayerParty
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_AskRecordBattle::
2019-11-29 04:46:39 +01:00
dome_save 0
2017-11-10 02:21:31 +01:00
playse SE_SAVE
waitse
call BattleFrontier_EventScript_GetCantRecordBattle
compare VAR_RESULT, TRUE
goto_if_eq BattleFrontier_BattleDomeLobby_EventScript_EndChallenge
message BattleFrontier_BattleDomeLobby_Text_RecordLastMatch
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_BattleDomeLobby_EventScript_EndChallenge
case 0, BattleFrontier_BattleDomeLobby_EventScript_RecordBattle
case MULTI_B_PRESSED, BattleFrontier_BattleDomeLobby_EventScript_EndChallenge
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_RecordBattle::
2019-11-24 22:58:40 +01:00
call BattleFrontier_EventScript_SaveBattle
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_EndChallenge::
msgbox BattleFrontier_BattleDomeLobby_Text_HopeToSeeYouAgain, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_0, 255
2017-11-10 02:21:31 +01:00
releaseall
end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_ResumeChallenge::
2017-11-10 02:21:31 +01:00
lockall
msgbox BattleFrontier_BattleDomeLobby_Text_WeveBeenWaitingForYou, MSGBOX_DEFAULT
message BattleFrontier_BattleDomeLobby_Text_OkayToSaveBeforeChallenge2
2017-11-10 02:21:31 +01:00
waitmessage
2019-11-29 04:46:39 +01:00
dome_save CHALLENGE_STATUS_SAVING
2017-11-10 02:21:31 +01:00
playse SE_SAVE
waitse
2019-11-24 22:58:40 +01:00
frontier_set FRONTIER_DATA_PAUSED, FALSE
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_0, 255
goto BattleFrontier_BattleDomeLobby_EventScript_EnterChallenge
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_SinglesAttendant::
2017-11-10 02:21:31 +01:00
lock
faceplayer
2019-11-24 22:58:40 +01:00
setvar VAR_FRONTIER_FACILITY, FRONTIER_FACILITY_DOME
setvar VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_SINGLES
goto BattleFrontier_BattleDomeLobby_EventScript_AttendantWelcome
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_DoublesAttendant::
2017-11-10 02:21:31 +01:00
lock
faceplayer
2019-11-24 22:58:40 +01:00
setvar VAR_FRONTIER_FACILITY, FRONTIER_FACILITY_DOME
setvar VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_DOUBLES
goto BattleFrontier_BattleDomeLobby_EventScript_AttendantWelcome
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_AttendantWelcome::
2018-04-29 14:21:59 +02:00
special SavePlayerParty
2019-11-24 22:58:40 +01:00
compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_SINGLES
call_if_eq BattleFrontier_BattleDomeLobby_EventScript_WelcomeSingles
2019-11-24 22:58:40 +01:00
compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_DOUBLES
call_if_eq BattleFrontier_BattleDomeLobby_EventScript_WelcomeDoubles
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_AskTakeChallenge::
2019-11-24 22:58:40 +01:00
compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_SINGLES
call_if_eq BattleFrontier_BattleDomeLobby_EventScript_TakeSinglesChallenge
2019-11-24 22:58:40 +01:00
compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_DOUBLES
call_if_eq BattleFrontier_BattleDomeLobby_EventScript_TakeDoublesChallenge
2017-11-10 02:21:31 +01:00
waitmessage
2021-03-31 06:35:56 +02:00
multichoice 17, 6, MULTI_CHALLENGEINFO, FALSE
2017-11-10 02:21:31 +01:00
switch VAR_RESULT
case 0, BattleFrontier_BattleDomeLobby_EventScript_TryEnterChallenge
case 1, BattleFrontier_BattleDomeLobby_EventScript_ExplainChallenge
case 2, BattleFrontier_BattleDomeLobby_EventScript_CancelChallenge
case MULTI_B_PRESSED, BattleFrontier_BattleDomeLobby_EventScript_CancelChallenge
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_TryEnterChallenge::
message BattleFrontier_BattleDomeLobby_Text_WhichLevelMode
2017-11-10 02:21:31 +01:00
waitmessage
2021-03-31 06:35:56 +02:00
multichoice 17, 6, MULTI_LEVEL_MODE, FALSE
2017-11-10 02:21:31 +01:00
switch VAR_RESULT
case FRONTIER_LVL_TENT, BattleFrontier_BattleDomeLobby_EventScript_CancelChallenge
case MULTI_B_PRESSED, BattleFrontier_BattleDomeLobby_EventScript_CancelChallenge
2019-11-24 22:58:40 +01:00
frontier_checkineligible
compare VAR_0x8004, TRUE
goto_if_eq BattleFrontier_BattleDomeLobby_EventScript_NotEnoughValidMons
2019-11-24 22:58:40 +01:00
frontier_set FRONTIER_DATA_LVL_MODE, VAR_RESULT
msgbox BattleFrontier_BattleDomeLobby_Text_SelectThreeMons, MSGBOX_DEFAULT
2019-12-15 17:42:50 +01:00
fadescreen FADE_TO_BLACK
2019-11-24 22:58:40 +01:00
call BattleFrontier_EventScript_GetLvlMode
2017-11-10 02:21:31 +01:00
copyvar VAR_0x8004, VAR_RESULT
2019-11-26 23:20:08 +01:00
setvar VAR_0x8005, FRONTIER_PARTY_SIZE
special ChoosePartyForBattleFrontier
2017-11-10 02:21:31 +01:00
waitstate
compare VAR_RESULT, 0
goto_if_eq BattleFrontier_BattleDomeLobby_EventScript_LoadPartyCancelChallenge
msgbox BattleFrontier_BattleDomeLobby_Text_OkayToSaveBeforeChallenge, MSGBOX_YESNO
2017-11-10 02:21:31 +01:00
switch VAR_RESULT
case NO, BattleFrontier_BattleDomeLobby_EventScript_LoadPartyCancelChallenge
case YES, BattleFrontier_BattleDomeLobby_EventScript_SaveBeforeChallenge
case MULTI_B_PRESSED, BattleFrontier_BattleDomeLobby_EventScript_LoadPartyCancelChallenge
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_SaveBeforeChallenge::
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_0, 0
2019-11-24 22:58:40 +01:00
frontier_set FRONTIER_DATA_SELECTED_MON_ORDER
2019-11-29 04:46:39 +01:00
dome_init
2019-11-24 22:58:40 +01:00
frontier_set FRONTIER_DATA_CHALLENGE_STATUS, CHALLENGE_STATUS_SAVING
frontier_set FRONTIER_DATA_PAUSED, FALSE
2018-04-29 14:21:59 +02:00
special LoadPlayerParty
2017-11-10 02:21:31 +01:00
closemessage
delay 2
call Common_EventScript_SaveGame
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_0, 255
compare VAR_RESULT, 0
goto_if_eq BattleFrontier_BattleDomeLobby_EventScript_CancelChallengeSaveFailed
2019-11-29 04:46:39 +01:00
dome_inittrainers
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_EnterChallenge::
2018-04-29 14:21:59 +02:00
special SavePlayerParty
2019-11-24 22:58:40 +01:00
frontier_setpartyorder FRONTIER_PARTY_SIZE
2019-11-29 04:46:39 +01:00
dome_settrainers
msgbox BattleFrontier_BattleDomeLobby_Text_ShowYouToBattleDome, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
call BattleFrontier_BattleDomeLobby_EventScript_WalkToDoor
2017-12-16 00:08:23 +01:00
special HealPlayerParty
warp MAP_BATTLE_FRONTIER_BATTLE_DOME_CORRIDOR, 255, 23, 6
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_0, 0
2017-11-10 02:21:31 +01:00
waitstate
end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_ExplainChallenge::
2019-11-24 22:58:40 +01:00
compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_SINGLES
call_if_eq BattleFrontier_BattleDomeLobby_EventScript_ExplainSinglesChallenge
2019-11-24 22:58:40 +01:00
compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_DOUBLES
call_if_eq BattleFrontier_BattleDomeLobby_EventScript_ExplainDoublesChallenge
goto BattleFrontier_BattleDomeLobby_EventScript_AskTakeChallenge
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_NotEnoughValidMons::
2017-11-10 02:21:31 +01:00
switch VAR_RESULT
case FRONTIER_LVL_50, BattleFrontier_BattleDomeLobby_EventScript_NotEnoughValidMonsLv50
case FRONTIER_LVL_OPEN, BattleFrontier_BattleDomeLobby_EventScript_NotEnoughValidMonsLvOpen
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_NotEnoughValidMonsLv50::
msgbox BattleFrontier_BattleDomeLobby_Text_NotEnoughValidMonsLv50, MSGBOX_DEFAULT
goto BattleFrontier_BattleDomeLobby_EventScript_EndCancelChallenge
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_NotEnoughValidMonsLvOpen::
msgbox BattleFrontier_BattleDomeLobby_Text_NotEnoughValidMonsLvOpen, MSGBOX_DEFAULT
goto BattleFrontier_BattleDomeLobby_EventScript_EndCancelChallenge
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_CancelChallengeSaveFailed::
2019-11-24 22:58:40 +01:00
frontier_set FRONTIER_DATA_CHALLENGE_STATUS, 0
goto BattleFrontier_BattleDomeLobby_EventScript_CancelChallenge
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_LoadPartyCancelChallenge::
2018-04-29 14:21:59 +02:00
special LoadPlayerParty
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_CancelChallenge::
msgbox BattleFrontier_BattleDomeLobby_Text_HopeToSeeYouAgain, MSGBOX_DEFAULT
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_EndCancelChallenge::
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_WalkToDoor::
2019-11-24 22:58:40 +01:00
compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_SINGLES
call_if_eq BattleFrontier_BattleDomeLobby_EventScript_SinglesAttendantWalkToDoor
2019-11-24 22:58:40 +01:00
compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_DOUBLES
call_if_eq BattleFrontier_BattleDomeLobby_EventScript_DoublesAttendantWalkToDoor
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleDomeLobby_Movement_WalkToDoor
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-24 22:58:40 +01:00
compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_SINGLES
call_if_eq BattleFrontier_BattleDomeLobby_EventScript_OpenSinglesDoor
2019-11-24 22:58:40 +01:00
compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_DOUBLES
call_if_eq BattleFrontier_BattleDomeLobby_EventScript_OpenDoublesDoor
2017-11-10 02:21:31 +01:00
waitdooranim
2019-11-24 22:58:40 +01:00
compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_SINGLES
call_if_eq BattleFrontier_BattleDomeLobby_EventScript_SinglesAttendantEnterDoor
2019-11-24 22:58:40 +01:00
compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_DOUBLES
call_if_eq BattleFrontier_BattleDomeLobby_EventScript_DoublesAttendantEnterDoor
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleDomeLobby_Movement_PlayerEnterDoor
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-24 22:58:40 +01:00
compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_SINGLES
call_if_eq BattleFrontier_BattleDomeLobby_EventScript_CloseSinglesDoor
2019-11-24 22:58:40 +01:00
compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_DOUBLES
call_if_eq BattleFrontier_BattleDomeLobby_EventScript_CloseDoublesDoor
2017-11-10 02:21:31 +01:00
waitdooranim
return
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_SinglesAttendantWalkToDoor::
applymovement LOCALID_ATTENDANT_SINGLES, BattleFrontier_BattleDomeLobby_Movement_WalkToDoor
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_DoublesAttendantWalkToDoor::
applymovement LOCALID_ATTENDANT_DOUBLES, BattleFrontier_BattleDomeLobby_Movement_WalkToDoor
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_SinglesAttendantEnterDoor::
applymovement LOCALID_ATTENDANT_SINGLES, BattleFrontier_BattleDomeLobby_Movement_AttendantEnterDoor
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_DoublesAttendantEnterDoor::
applymovement LOCALID_ATTENDANT_DOUBLES, BattleFrontier_BattleDomeLobby_Movement_AttendantEnterDoor
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_WelcomeSingles::
msgbox BattleFrontier_BattleDomeLobby_Text_WelcomeSingleBattle, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_WelcomeDoubles::
msgbox BattleFrontier_BattleDomeLobby_Text_WelcomeDoubleBattle, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_TakeSinglesChallenge::
message BattleFrontier_BattleDomeLobby_Text_TakeSinglesChallenge
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_TakeDoublesChallenge::
message BattleFrontier_BattleDomeLobby_Text_TakeDoublesChallenge
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_ExplainSinglesChallenge::
msgbox BattleFrontier_BattleDomeLobby_Text_ExplainSinglesChallenge, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_ExplainDoublesChallenge::
msgbox BattleFrontier_BattleDomeLobby_Text_ExplainDoublesChallenge, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_OpenSinglesDoor::
2017-11-10 02:21:31 +01:00
opendoor 5, 4
return
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_OpenDoublesDoor::
2017-11-10 02:21:31 +01:00
opendoor 17, 4
return
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_CloseSinglesDoor::
2017-11-10 02:21:31 +01:00
closedoor 5, 4
return
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_CloseDoublesDoor::
2017-11-10 02:21:31 +01:00
closedoor 17, 4
return
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_Movement_WalkToDoor:
walk_up
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_BattleDomeLobby_Movement_AttendantEnterDoor:
walk_up
set_invisible
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_Movement_PlayerEnterDoor:
walk_up
walk_up
set_invisible
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_ShowSinglesResults::
2017-11-10 02:21:31 +01:00
lockall
frontier_results FRONTIER_FACILITY_DOME, FRONTIER_MODE_SINGLES
2017-11-10 02:21:31 +01:00
waitbuttonpress
special RemoveRecordsWindow
2017-11-10 02:21:31 +01:00
releaseall
end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_ShowDoublesResults::
2017-11-10 02:21:31 +01:00
lockall
frontier_results FRONTIER_FACILITY_DOME, FRONTIER_MODE_DOUBLES
2017-11-10 02:21:31 +01:00
waitbuttonpress
special RemoveRecordsWindow
2017-11-10 02:21:31 +01:00
releaseall
end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_ShowPrevTourneyTree::
2020-01-05 16:50:32 +01:00
dome_get DOME_DATA_PREV_TOURNEY_TYPE
compare VAR_RESULT, 0
2020-01-05 16:50:32 +01:00
call_if_eq BattleFrontier_BattleDomeLobby_EventScript_PrevTourneyResultsSinglesLv50
compare VAR_RESULT, 1
2020-01-05 16:50:32 +01:00
call_if_eq BattleFrontier_BattleDomeLobby_EventScript_PrevTourneyResultsDoublesLv50
compare VAR_RESULT, 2
2020-01-05 16:50:32 +01:00
call_if_eq BattleFrontier_BattleDomeLobby_EventScript_PrevTourneyResultsSinglesLvOpen
compare VAR_RESULT, 3
2020-01-05 16:50:32 +01:00
call_if_eq BattleFrontier_BattleDomeLobby_EventScript_PrevTourneyResultsDoublesLvOpen
2019-12-15 17:42:50 +01:00
fadescreen FADE_TO_BLACK
2020-01-05 16:50:32 +01:00
dome_showprevtourneytree
2017-11-10 02:21:31 +01:00
waitstate
end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_PrevTourneyResultsSinglesLv50::
2020-01-05 16:50:32 +01:00
msgbox BattleFrontier_BattleDomeLobby_Text_PrevTourneyResultsSinglesLv50, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_PrevTourneyResultsDoublesLv50::
2020-01-05 16:50:32 +01:00
msgbox BattleFrontier_BattleDomeLobby_Text_PrevTourneyResultsDoublesLv50, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_PrevTourneyResultsSinglesLvOpen::
2020-01-05 16:50:32 +01:00
msgbox BattleFrontier_BattleDomeLobby_Text_PrevTourneyResultsSinglesLvOpen, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_PrevTourneyResultsDoublesLvOpen::
2020-01-05 16:50:32 +01:00
msgbox BattleFrontier_BattleDomeLobby_Text_PrevTourneyResultsDoublesLvOpen, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_Maniac::
2019-11-29 04:46:39 +01:00
dome_getwinnersname
msgbox BattleFrontier_BattleDomeLobby_Text_LastWinnerWasTough, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_Lass::
msgbox BattleFrontier_BattleDomeLobby_Text_WinnersGainReputation, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_FatMan::
msgbox BattleFrontier_BattleDomeLobby_Text_TrashedInFirstRound, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_Man::
msgbox BattleFrontier_BattleDomeLobby_Text_NeedToCheckOpponentCarefully, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
@ A few OutsideWest event scripts are inserted here instead, two of which are unused
2021-07-20 21:18:31 +02:00
BattleFrontier_OutsideWest_EventScript_Man3::
msgbox BattleFrontier_OutsideWest_Text_LongDreamedAboutBattleFrontier, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
@ Unused
2021-07-20 21:18:31 +02:00
BattleFrontier_OutsideWest_EventScript_BattleDomeSign2::
msgbox BattleFrontier_OutsideWest_Text_BattleDomeSign2, MSGBOX_NPC
2017-11-10 00:40:08 +01:00
end
@ Unused
2021-07-20 21:18:31 +02:00
BattleFrontier_OutsideWest_EventScript_UnderConstructionSign::
msgbox BattleFrontier_OutsideWest_Text_QuestionMarkUnderConstruction, MSGBOX_NPC
2017-11-10 00:40:08 +01:00
end
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_RulesBoard::
2017-11-10 02:21:31 +01:00
lockall
msgbox BattleFrontier_BattleDomeLobby_Text_RulesAreListed, MSGBOX_DEFAULT
goto BattleFrontier_BattleDomeLobby_EventScript_ReadRulesBoard
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_ReadRulesBoard::
message BattleFrontier_BattleDomeLobby_Text_ReadWhichHeading
2017-11-10 02:21:31 +01:00
waitmessage
2021-03-31 06:35:56 +02:00
multichoice 17, 4, MULTI_BATTLE_DOME_RULES, FALSE
2017-11-10 02:21:31 +01:00
switch VAR_RESULT
case 0, BattleFrontier_BattleDomeLobby_EventScript_RulesMatchup
case 1, BattleFrontier_BattleDomeLobby_EventScript_RulesTourneyTree
case 2, BattleFrontier_BattleDomeLobby_EventScript_RulesDoubleKO
case 3, BattleFrontier_BattleDomeLobby_EventScript_ExitRules
case MULTI_B_PRESSED, BattleFrontier_BattleDomeLobby_EventScript_ExitRules
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_RulesMatchup::
msgbox BattleFrontier_BattleDomeLobby_Text_ExplainMatchupRules, MSGBOX_DEFAULT
goto BattleFrontier_BattleDomeLobby_EventScript_ReadRulesBoard
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_RulesTourneyTree::
msgbox BattleFrontier_BattleDomeLobby_Text_ExplainTourneyTree, MSGBOX_DEFAULT
goto BattleFrontier_BattleDomeLobby_EventScript_ReadRulesBoard
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_RulesDoubleKO::
msgbox BattleFrontier_BattleDomeLobby_Text_ExplainDoubleKORules, MSGBOX_DEFAULT
goto BattleFrontier_BattleDomeLobby_EventScript_ReadRulesBoard
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_EventScript_ExitRules::
2017-11-10 02:21:31 +01:00
releaseall
end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_Text_WelcomeSingleBattle:
2017-11-10 02:21:31 +01:00
.string "Where the strategies of TRAINERS\n"
.string "are put to the test!\p"
.string "Welcome to the BATTLE DOME!\p"
.string "I am your guide to the SINGLE BATTLE\n"
.string "Tournament.$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_Text_TakeSinglesChallenge:
2017-11-10 02:21:31 +01:00
.string "Would you like to challenge\n"
.string "the SINGLE BATTLE Tournament?$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_Text_HopeToSeeYouAgain:
2017-11-10 02:21:31 +01:00
.string "We hope to see you again.$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_Text_ExplainSinglesChallenge:
2017-11-10 02:21:31 +01:00
.string "The SINGLE BATTLE Tournament\n"
.string "is exactly as the name suggests--\l"
.string "a tournament of SINGLE BATTLES.\p"
.string "All participating TRAINERS must\n"
.string "enter three POKéMON each.\p"
.string "In each battle, one of the three\n"
.string "POKéMON must be held in reserve.\p"
.string "The other two POKéMON can battle\n"
.string "one at a time.\p"
.string "Choose the two battling POKéMON after\n"
2018-12-07 16:41:08 +01:00
.string "examining the opponent's trio.\p"
2017-11-10 02:21:31 +01:00
.string "You win the tournament by defeating\n"
.string "four TRAINERS.\p"
.string "Battle Points are awarded to\n"
.string "the tournament winner.\p"
.string "If you want to interrupt your\n"
.string "tournament, please save the game.\p"
2018-12-07 16:41:08 +01:00
.string "If you don't save before interrupting,\n"
2017-11-10 02:21:31 +01:00
.string "you will be disqualified.$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_Text_OkayToSaveBeforeChallenge:
2017-11-10 02:21:31 +01:00
.string "Before I show you to the BATTLE DOME,\n"
.string "I must save the data. Is that okay?$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_Text_WhichLevelMode:
2017-11-10 02:21:31 +01:00
.string "The tournament offers two levels\n"
.string "of challenge, Level 50 and Open Level.\l"
.string "Which is your choice?$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_Text_SelectThreeMons:
2017-11-10 02:21:31 +01:00
.string "Now select the three POKéMON that\n"
.string "you wish to enter, please.$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_Text_NotEnoughValidMonsLvOpen:
2017-11-10 02:21:31 +01:00
.string "Excuse me!\p"
2018-12-07 16:41:08 +01:00
.string "You don't have three eligible POKéMON.\p"
2017-11-10 02:21:31 +01:00
.string "Also, the POKéMON must be holding\n"
.string "different kinds of items.\p"
.string "EGGS{STR_VAR_1} ineligible.\p"
.string "Please come see me when you are ready.$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_Text_NotEnoughValidMonsLv50:
2017-11-10 02:21:31 +01:00
.string "Excuse me!\p"
2018-12-07 16:41:08 +01:00
.string "You don't have three eligible POKéMON.\p"
2017-11-10 02:21:31 +01:00
.string "You must have three different POKéMON\n"
.string "of Level 50 or less to enter.\p"
.string "They also must be holding different\n"
.string "kinds of items.\p"
.string "EGGS{STR_VAR_1} ineligible.\p"
.string "Please come see me when you are ready.$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_Text_ShowYouToBattleDome:
2017-11-10 02:21:31 +01:00
.string "I will now show you to\n"
.string "the BATTLE DOME.$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_Text_DidntSaveBeforeQuitting:
2017-11-10 02:21:31 +01:00
.string "Excuse me!\p"
2018-12-07 16:41:08 +01:00
.string "You didn't save before you quit your\n"
2017-11-10 02:21:31 +01:00
.string "challenge last time.\p"
.string "Because of that, your challenge so far\n"
.string "has been disqualified. Sorry!$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_Text_CongratsForWinningTourney:
2017-11-10 02:21:31 +01:00
.string "Congratulations for winning\n"
.string "your Battle Tournament!$"
@ Unused
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_Text_HereIsYourPrize:
2017-11-10 00:40:08 +01:00
.string "Here is your prize for your Battle\n"
.string "Tournament victory.$"
2017-11-10 02:21:31 +01:00
@ Used by Verdanturf Tent
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_Text_ReceivedPrize:
.string "{PLAYER} received the prize\n"
.string "{STR_VAR_1}.$"
2019-12-15 06:55:21 +01:00
@ Unused
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_Text_BagFullMakeRoom:
2017-11-10 09:24:21 +01:00
.string "Oh, your BAG appears to be full.\p"
.string "Please make room in your BAG, then come\n"
.string "see me.$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_Text_ThankYouForPlaying:
.string "Thank you for playing!$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_Text_RecordWillBeSaved:
.string "Your record will be saved.\n"
.string "Please wait.$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_Text_WeveBeenWaitingForYou:
2018-12-07 16:41:08 +01:00
.string "We've been waiting for you!$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_Text_OkayToSaveBeforeChallenge2:
.string "Before I show you to the BATTLE DOME,\n"
.string "I must save the data. Is that okay?$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_Text_WelcomeDoubleBattle:
.string "Where the strategies of TRAINERS\n"
.string "are put to the test!\p"
.string "Welcome to the BATTLE DOME!\p"
.string "I am your guide to the DOUBLE BATTLE\n"
.string "Tournament.$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_Text_TakeDoublesChallenge:
.string "Would you like to challenge\n"
.string "the DOUBLE BATTLE Tournament?$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_Text_ExplainDoublesChallenge:
.string "The DOUBLE BATTLE Tournament\n"
.string "is exactly as the name suggests--\l"
.string "a tournament of DOUBLE BATTLES.\p"
.string "All participating TRAINERS must\n"
.string "enter three POKéMON each.\p"
.string "In each battle, one of the three\n"
.string "POKéMON must be held in reserve.\p"
.string "The remaining two POKéMON must take\n"
.string "part in a DOUBLE BATTLE.\p"
.string "Choose the two battling POKéMON after\n"
2018-12-07 16:41:08 +01:00
.string "examining the opponent's trio.\p"
.string "You win the tournament by defeating\n"
.string "four TRAINERS.\p"
.string "Battle Points are awarded to\n"
.string "the tournament winner.\p"
.string "If you want to interrupt your\n"
.string "tournament, please save the game.\p"
2018-12-07 16:41:08 +01:00
.string "If you don't save before interrupting,\n"
.string "you will be disqualified.$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_Text_PrevTourneyResultsSinglesLv50:
2018-12-07 16:41:08 +01:00
.string "They're the results of the last\n"
.string "Level 50 SINGLE BATTLE Tournament.$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_Text_PrevTourneyResultsDoublesLv50:
2018-12-07 16:41:08 +01:00
.string "They're the results of the last\n"
.string "Level 50 DOUBLE BATTLE Tournament.$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_Text_PrevTourneyResultsSinglesLvOpen:
2018-12-07 16:41:08 +01:00
.string "They're the results of the last\n"
.string "Open Level SINGLE BATTLE Tournament.$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_Text_PrevTourneyResultsDoublesLvOpen:
2018-12-07 16:41:08 +01:00
.string "They're the results of the last\n"
.string "Open Level DOUBLE BATTLE Tournament.$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_Text_LastWinnerWasTough:
.string "Did you see it?\n"
.string "The last Battle Tournament?\p"
.string "The winner, {STR_VAR_1}, was seriously\n"
.string "tough.\p"
.string "You should check out the results\n"
.string "on the monitor beside the PC.$"
2021-07-20 21:18:31 +02:00
BattleFrontier_OutsideWest_Text_LongDreamedAboutBattleFrontier:
.string "The BATTLE FRONTIER…\n"
2018-12-07 16:41:08 +01:00
.string "I've long dreamed about a place like it.$"
@ Functionally unused
2021-07-20 21:18:31 +02:00
BattleFrontier_OutsideWest_Text_BattleDomeSign2:
.string "The BATTLE DOME\n"
.string "Become the Unbeatable Superstar!$"
@ Functionally unused
2021-07-20 21:18:31 +02:00
BattleFrontier_OutsideWest_Text_QuestionMarkUnderConstruction:
.string "The ??????\n"
.string "Under Construction!$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_Text_WinnersGainReputation:
.string "When a TRAINER chains tournament\n"
.string "wins at the BATTLE DOME, he or she\l"
.string "gains a reputation as a star.\p"
.string "Tough TRAINERS are drawn by that\n"
.string "reputation to the BATTLE DOME.\p"
.string "A true superstar is a TRAINER who\n"
.string "can keep winning tournaments.$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_Text_TrashedInFirstRound:
.string "I ran into one of the tournament\n"
.string "favorites in the very first round.\p"
.string "Of course I got trashed…$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_Text_NeedToCheckOpponentCarefully:
2018-12-07 16:41:08 +01:00
.string "I would've won if I'd kept this POKéMON\n"
.string "held in reserve.\p"
2018-12-07 16:41:08 +01:00
.string "You need to check your opponent's\n"
.string "POKéMON carefully before choosing\l"
.string "your battling POKéMON.$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_Text_CongratsDefeatedTucker:
.string "Congratulations!\p"
.string "You defeated the DOME ACE and won\n"
.string "the Battle Tournament!$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_Text_AwardTheseBattlePoints:
.string "In recognition of your strategy--\n"
.string "a thing of beauty it was, too--\l"
.string "we award you these Battle Point(s)!$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_Text_RecordLastMatch:
.string "Would you like to record your\n"
.string "last BATTLE DOME match on your\l"
.string "FRONTIER PASS?$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_Text_RulesAreListed:
.string "The Battle Tournament rules\n"
.string "are listed.$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_Text_ReadWhichHeading:
.string "Which heading do you want to read?$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_Text_ExplainMatchupRules:
.string "The tournament matchups are drawn up\n"
.string "based on the toughness of POKéMON\l"
.string "held by TRAINERS.\p"
.string "The matchups avoid having tough\n"
.string "TRAINERS face each other right away.$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_Text_ExplainTourneyTree:
.string "The tournament chart, or as we call it,\n"
.string "the “Tree,” is available for viewing\l"
.string "in the Waiting Room from any guide.\p"
.string "The Tournament Tree will provide\n"
.string "several kinds of data.\p"
.string "The data on view includes the previous\n"
2018-12-07 16:41:08 +01:00
.string "tournament's results, the POKéMON held\l"
.string "by TRAINERS, and the battle styles of\l"
.string "TRAINERS.$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleDomeLobby_Text_ExplainDoubleKORules:
.string "If battling POKéMON faint at the same\n"
.string "time--a double KO--in a tournament\l"
.string "match, the REFEREES will review\l"
.string "the match and declare the winner.$"