pokeemerald/data/maps/BattleFrontier_BattlePalaceLobby/scripts.inc

668 lines
27 KiB
PHP
Raw Normal View History

.set LOCALID_ATTENDANT_SINGLES, 1
.set LOCALID_ATTENDANT_DOUBLES, 6
2017-11-10 02:21:31 +01:00
BattleFrontier_BattlePalaceLobby_MapScripts:: @ 824D77E
2019-12-07 03:25:46 +01:00
map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattlePalaceLobby_OnFrame
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattlePalaceLobby_OnWarp
2017-11-10 02:21:31 +01:00
.byte 0
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_OnWarp: @ 824D789
map_script_2 VAR_TEMP_1, 0, BattleFrontier_BattlePalaceLobby_EventScript_TurnPlayerNorth
2017-11-10 02:21:31 +01:00
.2byte 0
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_EventScript_TurnPlayerNorth:: @ 824D793
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
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_OnFrame: @ 824D79D
map_script_2 VAR_TEMP_0, 0, BattleFrontier_BattlePalaceLobby_EventScript_GetChallengeStatus
map_script_2 VAR_TEMP_0, CHALLENGE_STATUS_SAVING, BattleFrontier_BattlePalaceLobby_EventScript_QuitWithoutSaving
map_script_2 VAR_TEMP_0, CHALLENGE_STATUS_PAUSED, BattleFrontier_BattlePalaceLobby_EventScript_ResumeChallenge
map_script_2 VAR_TEMP_0, CHALLENGE_STATUS_WON, BattleFrontier_BattlePalaceLobby_EventScript_WonChallenge
map_script_2 VAR_TEMP_0, CHALLENGE_STATUS_LOST, BattleFrontier_BattlePalaceLobby_EventScript_LostChallenge
2017-11-10 02:21:31 +01:00
.2byte 0
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_EventScript_GetChallengeStatus:: @ 824D7C7
2019-11-24 22:58:40 +01:00
frontier_getstatus
2017-11-10 02:21:31 +01:00
end
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_EventScript_QuitWithoutSaving:: @ 824D7D0
2017-11-10 02:21:31 +01:00
lockall
2019-12-07 03:25:46 +01:00
msgbox BattleFrontier_BattlePalaceLobby_Text_FailedToSaveBeforeEndingChallenge, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
2019-11-29 04:46:39 +01:00
palace_set PALACE_DATA_WIN_STREAK, 0
palace_set PALACE_DATA_WIN_STREAK_ACTIVE, FALSE
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
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_EventScript_WonChallenge:: @ 824D817
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
2019-12-07 03:25:46 +01:00
goto_if_eq BattleFrontier_BattlePalaceLobby_EventScript_DefeatedMaven
msgbox BattleFrontier_BattlePalaceLobby_Text_FirmTrueBondsFor7WinStreak, MSGBOX_DEFAULT
goto BattleFrontier_BattlePalaceLobby_EventScript_GiveBattlePoints
BattleFrontier_BattlePalaceLobby_EventScript_DefeatedMaven:: @ 824D838
msgbox BattleFrontier_BattlePalaceLobby_Text_ToDefeatMavenAnd7Trainers, MSGBOX_DEFAULT
BattleFrontier_BattlePalaceLobby_EventScript_GiveBattlePoints:: @ 824D840
msgbox BattleFrontier_BattlePalaceLobby_Text_PresentYouWithBattlePoints, MSGBOX_DEFAULT
2019-11-24 22:58:40 +01:00
frontier_givepoints
msgbox BattleFrontier_Text_ObtainedXBattlePoints, MSGBOX_GETPOINTS
2019-12-07 03:25:46 +01:00
message BattleFrontier_BattlePalaceLobby_Text_FeatWillBeRecorded
2017-11-10 02:21:31 +01:00
waitmessage
2019-12-07 03:25:46 +01:00
call BattleFrontier_BattlePalaceLobby_EventScript_SaveAfterChallenge
msgbox BattleFrontier_BattlePalaceLobby_Text_ReturnWhenFortified, 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
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_EventScript_LostChallenge:: @ 824D873
2017-11-10 02:21:31 +01:00
lockall
2019-12-07 03:25:46 +01:00
message BattleFrontier_BattlePalaceLobby_Text_ResultsWillBeRecorded
2017-11-10 02:21:31 +01:00
waitmessage
2019-11-29 04:46:39 +01:00
palace_set PALACE_DATA_WIN_STREAK_ACTIVE, FALSE
2019-12-07 03:25:46 +01:00
call BattleFrontier_BattlePalaceLobby_EventScript_SaveAfterChallenge
msgbox BattleFrontier_BattlePalaceLobby_Text_ReturnWhenFortified, 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
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_EventScript_SaveAfterChallenge:: @ 824D8A1
2019-11-24 22:58:40 +01:00
frontier_checkairshow
2018-04-29 14:21:59 +02:00
special LoadPlayerParty
2017-12-16 00:08:23 +01:00
special HealPlayerParty
palace_save 0
2017-11-10 02:21:31 +01:00
playse SE_SAVE
waitse
call BattleFrontier_EventScript_GetCantRecordBattle
compare VAR_RESULT, TRUE
2019-12-07 03:25:46 +01:00
goto_if_eq BattleFrontier_BattlePalaceLobby_EventScript_EndSaveAfterChallenge
message BattleFrontier_BattlePalaceLobby_Text_LikeToRecordMatch
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
2019-12-07 03:25:46 +01:00
case 1, BattleFrontier_BattlePalaceLobby_EventScript_EndSaveAfterChallenge
case 0, BattleFrontier_BattlePalaceLobby_EventScript_RecordMatch
case MULTI_B_PRESSED, BattleFrontier_BattlePalaceLobby_EventScript_EndSaveAfterChallenge
2017-11-10 02:21:31 +01:00
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_EventScript_RecordMatch:: @ 824D902
2019-11-24 22:58:40 +01:00
call BattleFrontier_EventScript_SaveBattle
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_EventScript_EndSaveAfterChallenge:: @ 824D907
2017-11-10 02:21:31 +01:00
return
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_EventScript_ResumeChallenge:: @ 824D908
2017-11-10 02:21:31 +01:00
lockall
2019-12-07 03:25:46 +01:00
msgbox BattleFrontier_BattlePalaceLobby_Text_WeHaveBeenWaiting, MSGBOX_DEFAULT
message BattleFrontier_BattlePalaceLobby_Text_MustSaveBeforeChallenge
2017-11-10 02:21:31 +01:00
waitmessage
palace_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
2019-12-07 03:25:46 +01:00
goto BattleFrontier_BattlePalaceLobby_EventScript_EnterChallenge
2017-11-10 02:21:31 +01:00
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_EventScript_SinglesAttendant:: @ 824D944
2017-11-10 02:21:31 +01:00
lock
faceplayer
2019-11-24 22:58:40 +01:00
setvar VAR_FRONTIER_FACILITY, FRONTIER_FACILITY_PALACE
setvar VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_SINGLES
2019-12-07 03:25:46 +01:00
goto BattleFrontier_BattlePalaceLobby_EventScript_Attendant
2017-11-10 02:21:31 +01:00
end
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_EventScript_DoublesAttendant:: @ 824D956
2017-11-10 02:21:31 +01:00
lock
faceplayer
2019-11-24 22:58:40 +01:00
setvar VAR_FRONTIER_FACILITY, FRONTIER_FACILITY_PALACE
setvar VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_DOUBLES
2019-12-07 03:25:46 +01:00
goto BattleFrontier_BattlePalaceLobby_EventScript_Attendant
2017-11-10 02:21:31 +01:00
end
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_EventScript_Attendant:: @ 824D968
palace_get PALACE_DATA_PRIZE
compare VAR_RESULT, ITEM_NONE
2019-12-07 03:25:46 +01:00
goto_if_ne BattleFrontier_BattlePalaceLobby_EventScript_WonChallenge
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
2019-12-07 03:25:46 +01:00
call_if_eq BattleFrontier_BattlePalaceLobby_EventScript_WelcomeForSingleBattle
2019-11-24 22:58:40 +01:00
compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_DOUBLES
2019-12-07 03:25:46 +01:00
call_if_eq BattleFrontier_BattlePalaceLobby_EventScript_WelcomeForDoubleBattle
BattleFrontier_BattlePalaceLobby_EventScript_AskTakeChallenge:: @ 824D999
2019-11-24 22:58:40 +01:00
compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_SINGLES
2019-12-07 03:25:46 +01:00
call_if_eq BattleFrontier_BattlePalaceLobby_EventScript_AskTakeSingleBattleChallenge
2019-11-24 22:58:40 +01:00
compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_DOUBLES
2019-12-07 03:25:46 +01:00
call_if_eq BattleFrontier_BattlePalaceLobby_EventScript_AskTakeDoubleBattleChallenge
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
2019-12-07 03:25:46 +01:00
case 0, BattleFrontier_BattlePalaceLobby_EventScript_TryEnterChallenge
case 1, BattleFrontier_BattlePalaceLobby_EventScript_ExplainChallenge
case 2, BattleFrontier_BattlePalaceLobby_EventScript_CancelChallenge
case MULTI_B_PRESSED, BattleFrontier_BattlePalaceLobby_EventScript_CancelChallenge
2017-11-10 02:21:31 +01:00
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_EventScript_TryEnterChallenge:: @ 824D9E6
message BattleFrontier_BattlePalaceLobby_Text_WhichChallenge
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
2019-12-07 03:25:46 +01:00
case FRONTIER_LVL_TENT, BattleFrontier_BattlePalaceLobby_EventScript_CancelChallenge
case MULTI_B_PRESSED, BattleFrontier_BattlePalaceLobby_EventScript_CancelChallenge
2019-11-24 22:58:40 +01:00
frontier_checkineligible
compare VAR_0x8004, TRUE
2019-12-07 03:25:46 +01:00
goto_if_eq BattleFrontier_BattlePalaceLobby_EventScript_NotEnoughValidMons
2019-11-24 22:58:40 +01:00
frontier_set FRONTIER_DATA_LVL_MODE, VAR_RESULT
2019-12-07 03:25:46 +01:00
msgbox BattleFrontier_BattlePalaceLobby_Text_NowSelectThreeMons, 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
2019-12-07 03:25:46 +01:00
goto_if_eq BattleFrontier_BattlePalaceLobby_EventScript_LoadPartyAndCancelChallenge
msgbox BattleFrontier_BattlePalaceLobby_Text_MustSaveBeforeChallenge2, MSGBOX_YESNO
2017-11-10 02:21:31 +01:00
switch VAR_RESULT
2019-12-07 03:25:46 +01:00
case NO, BattleFrontier_BattlePalaceLobby_EventScript_LoadPartyAndCancelChallenge
case YES, BattleFrontier_BattlePalaceLobby_EventScript_SaveBeforeChallenge
case MULTI_B_PRESSED, BattleFrontier_BattlePalaceLobby_EventScript_LoadPartyAndCancelChallenge
2017-11-10 02:21:31 +01:00
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_EventScript_SaveBeforeChallenge:: @ 824DA87
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
palace_init
2019-11-29 04:46:39 +01:00
palace_set PALACE_DATA_WIN_STREAK_ACTIVE, TRUE
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
2019-12-07 03:25:46 +01:00
goto_if_eq BattleFrontier_BattlePalaceLobby_EventScript_CancelChallengeSaveFailed
BattleFrontier_BattlePalaceLobby_EventScript_EnterChallenge:: @ 824DAF3
2018-04-29 14:21:59 +02:00
special SavePlayerParty
2019-11-24 22:58:40 +01:00
frontier_setpartyorder FRONTIER_PARTY_SIZE
2019-12-07 03:25:46 +01:00
msgbox BattleFrontier_BattlePalaceLobby_Text_FollowMe, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
2019-12-07 03:25:46 +01:00
call BattleFrontier_BattlePalaceLobby_EventScript_WalkToDoor
warp MAP_BATTLE_FRONTIER_BATTLE_PALACE_CORRIDOR, 255, 8, 13
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_0, 0
2017-11-10 02:21:31 +01:00
waitstate
end
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_EventScript_ExplainChallenge:: @ 824DB20
2019-11-24 22:58:40 +01:00
compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_DOUBLES
2019-12-07 03:25:46 +01:00
goto_if_eq BattleFrontier_BattlePalaceLobby_EventScript_ExplainDoublesChallenge
msgbox BattleFrontier_BattlePalaceLobby_Text_ExplainSingleBattleChallenge, MSGBOX_DEFAULT
goto BattleFrontier_BattlePalaceLobby_EventScript_AskTakeChallenge
2017-11-10 02:21:31 +01:00
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_EventScript_ExplainDoublesChallenge:: @ 824DB38
msgbox BattleFrontier_BattlePalaceLobby_Text_ExplainDoubleBattleChallenge, MSGBOX_DEFAULT
goto BattleFrontier_BattlePalaceLobby_EventScript_AskTakeChallenge
2017-11-10 02:21:31 +01:00
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_EventScript_NotEnoughValidMons:: @ 824DB45
2017-11-10 02:21:31 +01:00
switch VAR_RESULT
2019-12-07 03:25:46 +01:00
case FRONTIER_LVL_50, BattleFrontier_BattlePalaceLobby_EventScript_NotEnoughValidMonsLv50
case FRONTIER_LVL_OPEN, BattleFrontier_BattlePalaceLobby_EventScript_NotEnoughValidMonsLvOpen
2017-11-10 02:21:31 +01:00
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_EventScript_NotEnoughValidMonsLv50:: @ 824DB60
msgbox BattleFrontier_BattlePalaceLobby_Text_NotEnoughValidMonsLv50, MSGBOX_DEFAULT
goto BattleFrontier_BattlePalaceLobby_EventScript_EndCancelChallenge
2017-11-10 02:21:31 +01:00
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_EventScript_NotEnoughValidMonsLvOpen:: @ 824DB6D
msgbox BattleFrontier_BattlePalaceLobby_Text_NotEnoughValidMonsLvOpen, MSGBOX_DEFAULT
goto BattleFrontier_BattlePalaceLobby_EventScript_EndCancelChallenge
2017-11-10 02:21:31 +01:00
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_EventScript_CancelChallengeSaveFailed:: @ 824DB7A
2019-11-24 22:58:40 +01:00
frontier_set FRONTIER_DATA_CHALLENGE_STATUS, 0
2019-12-07 03:25:46 +01:00
goto BattleFrontier_BattlePalaceLobby_EventScript_CancelChallenge
2017-11-10 02:21:31 +01:00
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_EventScript_LoadPartyAndCancelChallenge:: @ 824DB91
2018-04-29 14:21:59 +02:00
special LoadPlayerParty
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_EventScript_CancelChallenge:: @ 824DB94
msgbox BattleFrontier_BattlePalaceLobby_Text_ReturnWhenFortified, MSGBOX_DEFAULT
BattleFrontier_BattlePalaceLobby_EventScript_EndCancelChallenge:: @ 824DB9C
2017-11-10 02:21:31 +01:00
release
end
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_EventScript_WelcomeForSingleBattle:: @ 824DB9E
msgbox BattleFrontier_BattlePalaceLobby_Text_WelcomeForSingleBattle, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
return
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_EventScript_WelcomeForDoubleBattle:: @ 824DBA7
msgbox BattleFrontier_BattlePalaceLobby_Text_WelcomeForDoubleBattle, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
return
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_EventScript_AskTakeSingleBattleChallenge:: @ 824DBB0
message BattleFrontier_BattlePalaceLobby_Text_TakeSingleBattleChallenge
2017-11-10 02:21:31 +01:00
return
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_EventScript_AskTakeDoubleBattleChallenge:: @ 824DBB6
message BattleFrontier_BattlePalaceLobby_Text_TakeDoubleBattleChallenge
2017-11-10 02:21:31 +01:00
return
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_EventScript_WalkToDoor:: @ 824DBBC
2019-11-24 22:58:40 +01:00
compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_SINGLES
2019-12-07 03:25:46 +01:00
call_if_eq BattleFrontier_BattlePalaceLobby_EventScript_TalkedToSinglesAttendant
2019-11-24 22:58:40 +01:00
compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_DOUBLES
2019-12-07 03:25:46 +01:00
call_if_eq BattleFrontier_BattlePalaceLobby_EventScript_TalkedToDoublesAttendant
applymovement VAR_LAST_TALKED, BattleFrontier_BattlePalaceLobby_Movement_WalkToDoor
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattlePalaceLobby_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
2019-12-07 03:25:46 +01:00
call_if_eq BattleFrontier_BattlePalaceLobby_EventScript_OpenSinglesHallDoor
2019-11-24 22:58:40 +01:00
compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_DOUBLES
2019-12-07 03:25:46 +01:00
call_if_eq BattleFrontier_BattlePalaceLobby_EventScript_OpenDoublesHallDoor
2017-11-10 02:21:31 +01:00
waitdooranim
2019-12-07 03:25:46 +01:00
applymovement VAR_LAST_TALKED, BattleFrontier_BattlePalaceLobby_Movement_AttendantEnterDoor
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattlePalaceLobby_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
2019-12-07 03:25:46 +01:00
call_if_eq BattleFrontier_BattlePalaceLobby_EventScript_CloseSinglesHallDoor
2019-11-24 22:58:40 +01:00
compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_DOUBLES
2019-12-07 03:25:46 +01:00
call_if_eq BattleFrontier_BattlePalaceLobby_EventScript_CloseDoublesHallDoor
2017-11-10 02:21:31 +01:00
waitdooranim
return
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_EventScript_TalkedToSinglesAttendant:: @ 824DC23
setvar VAR_LAST_TALKED, LOCALID_ATTENDANT_SINGLES
2017-11-10 02:21:31 +01:00
return
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_EventScript_TalkedToDoublesAttendant:: @ 824DC29
setvar VAR_LAST_TALKED, LOCALID_ATTENDANT_DOUBLES
2017-11-10 02:21:31 +01:00
return
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_EventScript_OpenSinglesHallDoor:: @ 824DC2F
2017-11-10 02:21:31 +01:00
opendoor 5, 4
return
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_EventScript_OpenDoublesHallDoor:: @ 824DC35
2017-11-10 02:21:31 +01:00
opendoor 19, 4
return
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_EventScript_CloseSinglesHallDoor:: @ 824DC3B
2017-11-10 02:21:31 +01:00
closedoor 5, 4
return
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_EventScript_CloseDoublesHallDoor:: @ 824DC41
2017-11-10 02:21:31 +01:00
closedoor 19, 4
return
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_Movement_WalkToDoor: @ 824DC47
walk_up
2017-11-10 02:21:31 +01:00
step_end
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_Movement_AttendantEnterDoor: @ 824DC49
walk_up
set_invisible
2017-11-10 02:21:31 +01:00
step_end
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_Movement_PlayerEnterDoor: @ 824DC4C
walk_up
walk_up
set_invisible
2017-11-10 02:21:31 +01:00
step_end
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_EventScript_ShowSinglesResults:: @ 824DC50
2017-11-10 02:21:31 +01:00
lockall
frontier_results FRONTIER_FACILITY_PALACE, FRONTIER_MODE_SINGLES
2017-11-10 02:21:31 +01:00
waitbuttonpress
special RemoveRecordsWindow
2017-11-10 02:21:31 +01:00
releaseall
end
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_EventScript_ShowDoublesResults:: @ 824DC69
2017-11-10 02:21:31 +01:00
lockall
frontier_results FRONTIER_FACILITY_PALACE, FRONTIER_MODE_DOUBLES
2017-11-10 02:21:31 +01:00
waitbuttonpress
special RemoveRecordsWindow
2017-11-10 02:21:31 +01:00
releaseall
end
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_EventScript_BlackBelt:: @ 824DC82
msgbox BattleFrontier_BattlePalaceLobby_Text_LadyCanTellWhatMonsThink, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_EventScript_Man:: @ 824DC8B
msgbox BattleFrontier_BattlePalaceLobby_Text_NatureAndMovesKeyHere, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_EventScript_Beauty:: @ 824DC94
msgbox BattleFrontier_BattlePalaceLobby_Text_MonDocileButTransforms, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_EventScript_Maniac:: @ 824DC9D
msgbox BattleFrontier_BattlePalaceLobby_Text_WhatNatureFavorsChippingAway, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_EventScript_RulesBoard:: @ 824DCA6
2017-11-10 02:21:31 +01:00
lockall
2019-12-07 03:25:46 +01:00
msgbox BattleFrontier_BattlePalaceLobby_Text_RulesAreListed, MSGBOX_DEFAULT
goto BattleFrontier_BattlePalaceLobby_EventScript_ReadRulesBoard
2017-11-10 02:21:31 +01:00
end
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_EventScript_ReadRulesBoard:: @ 824DCB5
message BattleFrontier_BattlePalaceLobby_Text_ReadWhichHeading
2017-11-10 02:21:31 +01:00
waitmessage
2021-03-31 06:35:56 +02:00
multichoice 16, 0, MULTI_BATTLE_PALACE_RULES, FALSE
2017-11-10 02:21:31 +01:00
switch VAR_RESULT
2019-12-07 03:25:46 +01:00
case 0, BattleFrontier_BattlePalaceLobby_EventScript_RulesBasics
case 1, BattleFrontier_BattlePalaceLobby_EventScript_RulesNature
case 2, BattleFrontier_BattlePalaceLobby_EventScript_RulesMoves
case 3, BattleFrontier_BattlePalaceLobby_EventScript_RulesUnderpowered
case 4, BattleFrontier_BattlePalaceLobby_EventScript_RulesWhenInDanger
case 5, BattleFrontier_BattlePalaceLobby_EventScript_ExitRules
case MULTI_B_PRESSED, BattleFrontier_BattlePalaceLobby_EventScript_ExitRules
2017-11-10 02:21:31 +01:00
end
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_EventScript_RulesBasics:: @ 824DD13
msgbox BattleFrontier_BattlePalaceLobby_Text_ExplainRulesBasics, MSGBOX_DEFAULT
goto BattleFrontier_BattlePalaceLobby_EventScript_ReadRulesBoard
2017-11-10 02:21:31 +01:00
end
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_EventScript_RulesNature:: @ 824DD21
msgbox BattleFrontier_BattlePalaceLobby_Text_ExplainRulesNature, MSGBOX_DEFAULT
goto BattleFrontier_BattlePalaceLobby_EventScript_ReadRulesBoard
2017-11-10 02:21:31 +01:00
end
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_EventScript_RulesMoves:: @ 824DD2F
msgbox BattleFrontier_BattlePalaceLobby_Text_ExplainRulesMoves, MSGBOX_DEFAULT
goto BattleFrontier_BattlePalaceLobby_EventScript_ReadRulesBoard
2017-11-10 02:21:31 +01:00
end
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_EventScript_RulesUnderpowered:: @ 824DD3D
msgbox BattleFrontier_BattlePalaceLobby_Text_ExplainRulesUnderpowered, MSGBOX_DEFAULT
goto BattleFrontier_BattlePalaceLobby_EventScript_ReadRulesBoard
2017-11-10 02:21:31 +01:00
end
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_EventScript_RulesWhenInDanger:: @ 824DD4B
msgbox BattleFrontier_BattlePalaceLobby_Text_ExplainRulesWhenInDanger, MSGBOX_DEFAULT
goto BattleFrontier_BattlePalaceLobby_EventScript_ReadRulesBoard
2017-11-10 02:21:31 +01:00
end
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_EventScript_ExitRules:: @ 824DD59
2017-11-10 02:21:31 +01:00
releaseall
end
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_Text_WelcomeForSingleBattle: @ 824DD5B
2017-11-10 02:21:31 +01:00
.string "Where the hearts of TRAINERS\n"
.string "are put to the test.\p"
.string "I welcome you to the BATTLE PALACE.\p"
.string "I accept challenges to the SINGLE\n"
.string "BATTLE HALLS.$"
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_Text_TakeSingleBattleChallenge: @ 824DDE1
2017-11-10 02:21:31 +01:00
.string "Do you wish to take\n"
.string "the SINGLE BATTLE HALL challenge?$"
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_Text_ExplainSingleBattleChallenge: @ 824DE17
2017-11-10 02:21:31 +01:00
.string "In the BATTLE PALACE, there are\n"
.string "several auditoriums for SINGLE BATTLES\l"
.string "that are named SINGLE BATTLE HALLS.\p"
.string "The SINGLE BATTLES are conducted in\n"
.string "the usual way, except with one crucial\l"
.string "rule that must be obeyed.\p"
.string "TRAINERS are permitted only to switch\n"
.string "their POKéMON in and out.\p"
.string "TRAINERS are otherwise forbidden to\n"
.string "command their POKéMON.\p"
.string "The POKéMON are to behave according\n"
.string "to their nature and battle on their own.\p"
.string "You must put your trust in your\n"
.string "POKéMON and watch over them.\p"
.string "If you achieve the honor of beating\n"
.string "seven TRAINERS in succession,\l"
.string "we will present you with Battle Points.\p"
.string "If you want to interrupt your\n"
.string "challenge, you must 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.$"
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_Text_ReturnWhenFortified: @ 824E0D8
2017-11-10 02:21:31 +01:00
.string "When you have fortified your heart\n"
.string "and POKéMON, you must return.$"
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_Text_WhichChallenge: @ 824E119
2017-11-10 02:21:31 +01:00
.string "There are two BATTLE HALLS,\n"
.string "Level 50 and Open Level.\l"
.string "Which is your choice of a challenge?$"
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_Text_NotEnoughValidMonsLv50: @ 824E173
2017-11-10 02:21:31 +01:00
.string "Sigh…\p"
.string "You do not have the three POKéMON\n"
.string "required for the challenge.\p"
.string "To enter, you must provide three\n"
.string "different kinds of POKéMON.\p"
.string "These POKéMON must all be of\n"
.string "Level 50 or lower.\p"
.string "They also must not be holding\n"
.string "the same kinds of items.\p"
.string "EGGS{STR_VAR_1} ineligible.\p"
.string "Come back when you have made\n"
.string "your preparations.$"
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_Text_NotEnoughValidMonsLvOpen: @ 824E29E
2017-11-10 02:21:31 +01:00
.string "Sigh…\p"
.string "You do not have the three POKéMON\n"
.string "required for the challenge.\p"
.string "To enter, you must provide three\n"
.string "different kinds of POKéMON.\p"
.string "They also must not be holding\n"
.string "the same kinds of items.\p"
.string "EGGS{STR_VAR_1} ineligible.\p"
.string "Come back when you have made\n"
.string "your preparations.$"
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_Text_NowSelectThreeMons: @ 824E399
2017-11-10 02:21:31 +01:00
.string "Good. Now, you must select your\n"
.string "three POKéMON.$"
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_Text_MustSaveBeforeChallenge2: @ 824E3C8
2017-11-10 02:21:31 +01:00
.string "I must save before I show you to\n"
.string "the BATTLE HALL. Is that okay?$"
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_Text_FollowMe: @ 824E408
2017-11-10 02:21:31 +01:00
.string "Good.\n"
.string "Now, follow me.$"
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_Text_ResultsWillBeRecorded: @ 824E41E
2017-11-10 02:21:31 +01:00
.string "I feel privileged for having seen\n"
2018-12-07 16:41:08 +01:00
.string "your POKéMON's exploits.\p"
2017-11-10 02:21:31 +01:00
.string "The results will be recorded.\n"
.string "I must ask you to briefly wait.$"
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_Text_FirmTrueBondsFor7WinStreak: @ 824E497
2017-11-10 02:21:31 +01:00
.string "To achieve a 7-win streak…\p"
.string "The bonds that bind your heart with\n"
.string "your POKéMON seem firm and true.$"
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_Text_FeatWillBeRecorded: @ 824E4F7
2017-11-10 02:21:31 +01:00
.string "Your feat will be recorded.\n"
.string "I must ask you to briefly wait.$"
2019-12-07 03:25:46 +01:00
@ Unused
BattleFrontier_BattlePalaceLobby_Text_BattlePointsFor7WinStreak: @ 824E5333
2017-11-10 00:40:08 +01:00
.string "For the feat of your 7-win streak,\n"
.string "we present you with Battle Point(s).$"
2017-11-10 02:21:31 +01:00
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_Text_NoSpaceForPrize: @ 824E57B
.string "You seem to have no space for\n"
.string "our prize.\p"
.string "You should return when you have\n"
.string "organized your BAG.$"
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_Text_WeHaveBeenWaiting: @ 824E5D8
.string "We have been waiting for you…$"
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_Text_MustSaveBeforeChallenge: @ 824E5F6
.string "I must save before I show you to\n"
.string "the BATTLE HALL. Is that okay?$"
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_Text_FailedToSaveBeforeEndingChallenge: @ 824E636
.string "Sigh…\p"
.string "You failed to save before you ended\n"
.string "your challenge the last time.\p"
.string "As a result, your challenge has been\n"
.string "disqualified. It is most unfortunate.$"
2019-12-07 03:25:46 +01:00
@ Unused
BattleFrontier_BattlePalaceLobby_Text_ReceivedPrize: @ 824E6C9
2017-11-10 09:24:21 +01:00
.string "{PLAYER} received the prize\n"
.string "{STR_VAR_1}.$"
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_Text_LadyCanTellWhatMonsThink: @ 824E6E3
.string "For a hardy fellow like me,\n"
.string "hardy POKéMON are the best.\p"
.string "Offense is the best defense!\n"
.string "A relentless attack is the ultimate!\p"
2018-12-07 16:41:08 +01:00
.string "But that's not what I wanted to chat\n"
.string "about.\p"
.string "Every so often a really cute lady\n"
.string "swings by here.\p"
.string "She says that she can tell what\n"
.string "POKéMON are thinking.\p"
2018-12-07 16:41:08 +01:00
.string "I don't know about that part,\n"
.string "but she is really cute.\p"
.string "Huh?\n"
.string "Why are you looking at me like that?$"
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_Text_NatureAndMovesKeyHere: @ 824E851
.string "Hmm…\p"
.string "It appears that the nature of POKéMON\n"
.string "and the moves that they have been\l"
.string "taught are the keys to battle here.\p"
2018-12-07 16:41:08 +01:00
.string "To be more precise, it's how well\n"
.string "the moves match the nature of\l"
.string "the POKéMON.\p"
.string "If your POKéMON is in trouble and\n"
.string "unable to live up to its potential,\l"
.string "you may need to examine how well\l"
.string "its moves match its nature.$"
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_Text_MonDocileButTransforms: @ 824E992
.string "My POKéMON is usually very docile.\p"
2018-12-07 16:41:08 +01:00
.string "But when it's in a BATTLE HALL,\n"
.string "it sometimes seems to become\l"
.string "transformed into something wicked!\p"
.string "It becomes totally intimidating.\n"
2018-12-07 16:41:08 +01:00
.string "It's shocking, even.$"
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_Text_WhatNatureFavorsChippingAway: @ 824EA4B
.string "I wonder what sort of nature a POKéMON\n"
.string "would have if it favored enfeebling its\l"
.string "opponents and chipping away slowly.\p"
2018-12-07 16:41:08 +01:00
.string "I'd be surprised if it was a LAX nature.\p"
.string "But, nah, that can't be right.$"
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_Text_WelcomeForDoubleBattle: @ 824EB06
.string "Where the hearts of TRAINERS\n"
.string "are put to the test.\p"
.string "I welcome you to the BATTLE PALACE.\p"
.string "I accept challenges to the DOUBLE\n"
.string "BATTLE HALLS.$"
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_Text_TakeDoubleBattleChallenge: @ 824EB8C
.string "Do you wish to take\n"
.string "the DOUBLE BATTLE HALL challenge?$"
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_Text_ExplainDoubleBattleChallenge: @ 824EBC2
.string "In the BATTLE PALACE, there are\n"
.string "several auditoriums for DOUBLE BATTLES\l"
.string "that are named DOUBLE BATTLE HALLS.\p"
.string "The DOUBLE BATTLES are conducted in\n"
.string "the usual way, except with one crucial\l"
.string "rule that must be obeyed.\p"
.string "TRAINERS are permitted only to switch\n"
.string "their POKéMON in and out.\p"
.string "TRAINERS are otherwise forbidden to\n"
.string "command their POKéMON.\p"
.string "The POKéMON are to behave according\n"
.string "to their nature and battle on their own.\p"
.string "You must put your trust in your\n"
.string "POKéMON and watch over them.\p"
.string "If you achieve the honor of beating\n"
.string "seven TRAINERS in succession,\l"
.string "we will present you with Battle Points.\p"
.string "If you want to interrupt your\n"
.string "challenge, 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.$"
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_Text_ToDefeatMavenAnd7Trainers: @ 824EE81
.string "To defeat the PALACE MAVEN\n"
.string "and seven TRAINERS in a row…$"
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_Text_PresentYouWithBattlePoints: @ 824EEB9
.string "In honor of the bond you share with\n"
.string "your POKéMON, we present you with\l"
.string "these Battle Point(s).$"
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_Text_LikeToRecordMatch: @ 824EF16
.string "Would you like to record your latest\n"
.string "BATTLE PALACE match on your\l"
.string "FRONTIER PASS?$"
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_Text_RulesAreListed: @ 824EF66
.string "The BATTLE HALL rules are listed.$"
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_Text_ReadWhichHeading: @ 824EF88
.string "Which heading do you want to read?$"
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_Text_ExplainRulesBasics: @ 824EFAB
.string "Here, POKéMON are required to think\n"
.string "and battle by themselves.\p"
.string "Unlike in the wild, POKéMON that live\n"
.string "with people behave differently\l"
.string "depending on their nature.$"
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_Text_ExplainRulesNature: @ 824F049
.string "Depending on its nature, a POKéMON\n"
.string "may prefer to attack no matter what.\p"
.string "Another POKéMON may prefer to protect\n"
.string "itself from any harm.\p"
.string "Yet another may enjoy vexing or\n"
.string "confounding its foes.\p"
.string "Due to its nature, a POKéMON\n"
.string "will have favorite moves that it is good\l"
.string "at using.\p"
.string "It may also dislike certain moves that\n"
.string "it has trouble using.$"
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_Text_ExplainRulesMoves: @ 824F190
.string "There are offensive moves that inflict\n"
.string "direct damage on the foe.\p"
.string "There are defensive moves that are\n"
.string "used to prepare for enemy attacks or\l"
.string "used to heal HP and so on.\p"
.string "There are also other somewhat-odd\n"
.string "moves that may enfeeble the foes with\l"
.string "stat problems including poison and \l"
.string "paralysis.\p"
.string "POKéMON will consider using moves in\n"
.string "these three categories.$"
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_Text_ExplainRulesUnderpowered: @ 824F2E8
.string "When not under command by its TRAINER,\n"
.string "a POKéMON may be unable to effectively\l"
.string "use certain moves.\p"
.string "A POKéMON is not good at using any\n"
.string "move that it dislikes.\p"
.string "If a POKéMON only knows moves that\n"
.string "do not match its nature, it will often\l"
.string "be unable to live up to its potential.$"
2019-12-07 03:25:46 +01:00
BattleFrontier_BattlePalaceLobby_Text_ExplainRulesWhenInDanger: @ 824F3F4
.string "Depending on its nature, a POKéMON may\n"
2018-12-07 16:41:08 +01:00
.string "start using moves that don't match its\l"
.string "nature when it is in trouble.\p"
.string "If a POKéMON begins behaving oddly\n"
.string "in a pinch, watch it carefully.$"