pokeemerald/data/maps/BattleFrontier_BattleArenaLobby/scripts.inc

577 lines
22 KiB
PHP
Raw Normal View History

.set LOCALID_ATTENDANT, 1
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_MapScripts::
2019-11-26 23:20:08 +01:00
map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattleArenaLobby_OnFrame
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattleArenaLobby_OnWarp
2017-11-10 02:21:31 +01:00
.byte 0
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_OnWarp:
2019-11-26 23:20:08 +01:00
map_script_2 VAR_TEMP_1, 0, BattleFrontier_BattleArenaLobby_EventScript_TurnPlayerNorth
2017-11-10 02:21:31 +01:00
.2byte 0
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_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_BattleArenaLobby_OnFrame:
2023-08-04 20:17:28 +02:00
map_script_2 VAR_TEMP_CHALLENGE_STATUS, 0, BattleFrontier_BattleArenaLobby_EventScript_GetChallengeStatus
map_script_2 VAR_TEMP_CHALLENGE_STATUS, CHALLENGE_STATUS_SAVING, BattleFrontier_BattleArenaLobby_EventScript_QuitWithoutSaving
map_script_2 VAR_TEMP_CHALLENGE_STATUS, CHALLENGE_STATUS_PAUSED, BattleFrontier_BattleArenaLobby_EventScript_ResumeChallenge
map_script_2 VAR_TEMP_CHALLENGE_STATUS, CHALLENGE_STATUS_WON, BattleFrontier_BattleArenaLobby_EventScript_WonChallenge
map_script_2 VAR_TEMP_CHALLENGE_STATUS, CHALLENGE_STATUS_LOST, BattleFrontier_BattleArenaLobby_EventScript_LostChallenge
2017-11-10 02:21:31 +01:00
.2byte 0
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_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_BattleArenaLobby_EventScript_QuitWithoutSaving::
2017-11-10 02:21:31 +01:00
lockall
2019-11-26 23:20:08 +01:00
msgbox BattleFrontier_BattleArenaLobby_Text_DidntSaveBeforeShuttingDown, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
2019-11-26 23:20:08 +01:00
arena_set ARENA_DATA_WIN_STREAK, 0
arena_set ARENA_DATA_WIN_STREAK_ACTIVE, FALSE
2019-11-24 22:58:40 +01:00
frontier_set FRONTIER_DATA_CHALLENGE_STATUS, 0
2023-08-04 20:17:28 +02:00
setvar VAR_TEMP_CHALLENGE_STATUS, 255
2017-11-10 02:21:31 +01:00
releaseall
end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_EventScript_WonChallenge::
2017-11-10 02:21:31 +01:00
lockall
2019-11-24 22:58:40 +01:00
frontier_isbrain
goto_if_eq VAR_RESULT, TRUE, BattleFrontier_BattleArenaLobby_EventScript_DefeatedTycoon
2019-11-26 23:20:08 +01:00
msgbox BattleFrontier_BattleArenaLobby_Text_CongratsOnSevenWins, MSGBOX_DEFAULT
goto BattleFrontier_BattleArenaLobby_EventScript_GiveBattlePoints
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_EventScript_DefeatedTycoon::
2019-11-26 23:20:08 +01:00
msgbox BattleFrontier_BattleArenaLobby_Text_CongratsOnDefeatingTycoon, MSGBOX_DEFAULT
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_EventScript_GiveBattlePoints::
2019-11-26 23:20:08 +01:00
msgbox BattleFrontier_BattleArenaLobby_Text_PleaseAcceptBattlePoints, MSGBOX_DEFAULT
2019-11-24 22:58:40 +01:00
frontier_givepoints
msgbox BattleFrontier_Text_ObtainedXBattlePoints, MSGBOX_GETPOINTS
2019-11-26 23:20:08 +01:00
message BattleFrontier_BattleArenaLobby_Text_RecordAchievement
2017-11-10 02:21:31 +01:00
waitmessage
2019-11-26 23:20:08 +01:00
call BattleFrontier_BattleArenaLobby_EventScript_SaveAfterChallenge
msgbox BattleFrontier_BattleArenaLobby_Text_AwaitAnotherChallenge2, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
2023-08-04 20:17:28 +02:00
setvar VAR_TEMP_CHALLENGE_STATUS, 255
2017-11-10 02:21:31 +01:00
releaseall
end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_EventScript_LostChallenge::
2017-11-10 02:21:31 +01:00
lockall
2019-11-26 23:20:08 +01:00
message BattleFrontier_BattleArenaLobby_Text_ThankYouWaitWhileSave
2017-11-10 02:21:31 +01:00
waitmessage
2019-11-26 23:20:08 +01:00
arena_set ARENA_DATA_WIN_STREAK_ACTIVE, FALSE
call BattleFrontier_BattleArenaLobby_EventScript_SaveAfterChallenge
msgbox BattleFrontier_BattleArenaLobby_Text_AwaitAnotherChallenge2, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
2023-08-04 20:17:28 +02:00
setvar VAR_TEMP_CHALLENGE_STATUS, 255
2017-11-10 02:21:31 +01:00
releaseall
end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_EventScript_SaveAfterChallenge::
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
2019-11-26 23:20:08 +01:00
arena_save 0
2017-11-10 02:21:31 +01:00
playse SE_SAVE
waitse
call BattleFrontier_EventScript_GetCantRecordBattle
goto_if_eq VAR_RESULT, TRUE, BattleFrontier_BattleArenaLobby_EventScript_EndSaveAfterChallenge
2019-11-26 23:20:08 +01:00
message BattleFrontier_BattleArenaLobby_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
2019-11-26 23:20:08 +01:00
case 1, BattleFrontier_BattleArenaLobby_EventScript_EndSaveAfterChallenge
case 0, BattleFrontier_BattleArenaLobby_EventScript_RecordMatch
case MULTI_B_PRESSED, BattleFrontier_BattleArenaLobby_EventScript_EndSaveAfterChallenge
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_EventScript_RecordMatch::
2019-11-24 22:58:40 +01:00
call BattleFrontier_EventScript_SaveBattle
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_EventScript_EndSaveAfterChallenge::
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_EventScript_ResumeChallenge::
2017-11-10 02:21:31 +01:00
lockall
2019-11-26 23:20:08 +01:00
message BattleFrontier_BattleArenaLobby_Text_LookingForwardToArrivalSaveGame
2017-11-10 02:21:31 +01:00
waitmessage
2019-11-26 23:20:08 +01:00
arena_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
2023-08-04 20:17:28 +02:00
setvar VAR_TEMP_CHALLENGE_STATUS, 255
2019-11-26 23:20:08 +01:00
goto BattleFrontier_BattleArenaLobby_EventScript_EnterChallenge
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_EventScript_Attendant::
2017-11-10 02:21:31 +01:00
lock
faceplayer
2019-11-24 22:58:40 +01:00
setvar VAR_FRONTIER_FACILITY, FRONTIER_FACILITY_ARENA
setvar VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_SINGLES
2018-04-29 14:21:59 +02:00
special SavePlayerParty
2019-11-26 23:20:08 +01:00
msgbox BattleFrontier_BattleArenaLobby_Text_WelcomeToBattleArena, MSGBOX_DEFAULT
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_EventScript_AskTakeChallenge::
2019-11-26 23:20:08 +01:00
message BattleFrontier_BattleArenaLobby_Text_WishToTakeChallenge
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-11-26 23:20:08 +01:00
case 0, BattleFrontier_BattleArenaLobby_EventScript_TryEnterChallenge
case 1, BattleFrontier_BattleArenaLobby_EventScript_ExplainChallenge
case 2, BattleFrontier_BattleArenaLobby_EventScript_CancelChallenge
case MULTI_B_PRESSED, BattleFrontier_BattleArenaLobby_EventScript_CancelChallenge
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_EventScript_TryEnterChallenge::
2019-11-26 23:20:08 +01:00
message BattleFrontier_BattleArenaLobby_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
2019-11-26 23:20:08 +01:00
case FRONTIER_LVL_TENT, BattleFrontier_BattleArenaLobby_EventScript_CancelChallenge
case MULTI_B_PRESSED, BattleFrontier_BattleArenaLobby_EventScript_CancelChallenge
2019-11-24 22:58:40 +01:00
frontier_checkineligible
goto_if_eq VAR_0x8004, TRUE, BattleFrontier_BattleArenaLobby_EventScript_NotEnoughValidMons
2019-11-24 22:58:40 +01:00
frontier_set FRONTIER_DATA_LVL_MODE, VAR_RESULT
2019-11-26 23:20:08 +01:00
msgbox BattleFrontier_BattleArenaLobby_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
goto_if_eq VAR_RESULT, 0, BattleFrontier_BattleArenaLobby_EventScript_LoadPartyAndCancelChallenge
2019-11-26 23:20:08 +01:00
msgbox BattleFrontier_BattleArenaLobby_Text_OkayToSave, MSGBOX_YESNO
2017-11-10 02:21:31 +01:00
switch VAR_RESULT
2019-11-26 23:20:08 +01:00
case NO, BattleFrontier_BattleArenaLobby_EventScript_LoadPartyAndCancelChallenge
case YES, BattleFrontier_BattleArenaLobby_EventScript_SaveBeforeChallenge
case MULTI_B_PRESSED, BattleFrontier_BattleArenaLobby_EventScript_LoadPartyAndCancelChallenge
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_EventScript_SaveBeforeChallenge::
2023-08-04 20:17:28 +02:00
setvar VAR_TEMP_CHALLENGE_STATUS, 0
2019-11-24 22:58:40 +01:00
frontier_set FRONTIER_DATA_SELECTED_MON_ORDER
2019-11-26 23:20:08 +01:00
arena_init
arena_set ARENA_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
2023-08-04 20:17:28 +02:00
setvar VAR_TEMP_CHALLENGE_STATUS, 255
goto_if_eq VAR_RESULT, 0, BattleFrontier_BattleArenaLobby_EventScript_CancelChallengeSaveFailed
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_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-26 23:20:08 +01:00
msgbox BattleFrontier_BattleArenaLobby_Text_GuideYouToArena, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
2019-11-24 22:58:40 +01:00
frontier_get FRONTIER_DATA_LVL_MODE
call_if_eq VAR_RESULT, FRONTIER_LVL_50, BattleFrontier_BattleArenaLobby_EventScript_WalkToDoorLv50
call_if_eq VAR_RESULT, FRONTIER_LVL_OPEN, BattleFrontier_BattleArenaLobby_EventScript_WalkToDoorLvOpen
warp MAP_BATTLE_FRONTIER_BATTLE_ARENA_CORRIDOR, 9, 13
2023-08-04 20:17:28 +02:00
setvar VAR_TEMP_CHALLENGE_STATUS, 0
2017-11-10 02:21:31 +01:00
waitstate
end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_EventScript_ExplainChallenge::
2019-11-26 23:20:08 +01:00
msgbox BattleFrontier_BattleArenaLobby_Text_ExplainChallenge, MSGBOX_DEFAULT
goto BattleFrontier_BattleArenaLobby_EventScript_AskTakeChallenge
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_EventScript_NotEnoughValidMons::
2017-11-10 02:21:31 +01:00
switch VAR_RESULT
2019-11-26 23:20:08 +01:00
case FRONTIER_LVL_50, BattleFrontier_BattleArenaLobby_EventScript_NotEnoughValidMonsLv50
case FRONTIER_LVL_OPEN, BattleFrontier_BattleArenaLobby_EventScript_NotEnoughValidMonsLvOpen
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_EventScript_NotEnoughValidMonsLv50::
2019-11-26 23:20:08 +01:00
msgbox BattleFrontier_BattleArenaLobby_Text_NotEnoughValidMonsLv50, MSGBOX_DEFAULT
goto BattleFrontier_BattleArenaLobby_EventScript_EndCancelChallenge
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_EventScript_NotEnoughValidMonsLvOpen::
2019-11-26 23:20:08 +01:00
msgbox BattleFrontier_BattleArenaLobby_Text_NotEnoughValidMonsLvOpen, MSGBOX_DEFAULT
goto BattleFrontier_BattleArenaLobby_EventScript_EndCancelChallenge
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_EventScript_CancelChallengeSaveFailed::
2019-11-24 22:58:40 +01:00
frontier_set FRONTIER_DATA_CHALLENGE_STATUS, 0
2019-11-26 23:20:08 +01:00
goto BattleFrontier_BattleArenaLobby_EventScript_CancelChallenge
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_EventScript_LoadPartyAndCancelChallenge::
2018-04-29 14:21:59 +02:00
special LoadPlayerParty
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_EventScript_CancelChallenge::
2019-11-26 23:20:08 +01:00
msgbox BattleFrontier_BattleArenaLobby_Text_AwaitAnotherChallenge, MSGBOX_DEFAULT
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_EventScript_EndCancelChallenge::
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_EventScript_WalkToDoorLv50::
applymovement LOCALID_ATTENDANT, BattleFrontier_BattleArenaLobby_Movement_AttendantWalkToLeftDoor
2019-11-27 18:51:10 +01:00
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleArenaLobby_Movement_PlayerWalkToLeftDoor
2017-11-10 02:21:31 +01:00
waitmovement 0
opendoor 2, 2
waitdooranim
applymovement LOCALID_ATTENDANT, BattleFrontier_BattleArenaLobby_Movement_AttendantEnterDoor
2019-11-27 18:51:10 +01:00
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleArenaLobby_Movement_PlayerEnterDoor
2017-11-10 02:21:31 +01:00
waitmovement 0
closedoor 2, 2
waitdooranim
return
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_Movement_AttendantWalkToLeftDoor:
walk_up
walk_up
walk_up
walk_left
walk_left
walk_left
walk_left
walk_left
walk_up
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_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_BattleArenaLobby_Movement_PlayerWalkToLeftDoor:
walk_up
walk_up
walk_up
walk_up
walk_left
walk_left
walk_left
walk_left
walk_left
walk_in_place_faster_up
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_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_BattleArenaLobby_EventScript_WalkToDoorLvOpen::
applymovement LOCALID_ATTENDANT, BattleFrontier_BattleArenaLobby_Movement_AttendantWalkToRightDoor
2019-11-27 18:51:10 +01:00
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleArenaLobby_Movement_PlayerWalkToRightDoor
2017-11-10 02:21:31 +01:00
waitmovement 0
opendoor 11, 2
waitdooranim
applymovement LOCALID_ATTENDANT, BattleFrontier_BattleArenaLobby_Movement_AttendantEnterDoor
2019-11-27 18:51:10 +01:00
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleArenaLobby_Movement_PlayerEnterDoor
2017-11-10 02:21:31 +01:00
waitmovement 0
closedoor 11, 2
waitdooranim
return
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_Movement_AttendantWalkToRightDoor:
walk_up
walk_up
walk_up
walk_right
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_BattleArenaLobby_Movement_PlayerWalkToRightDoor:
walk_up
walk_up
walk_up
walk_up
walk_right
walk_right
walk_right
walk_right
walk_in_place_faster_up
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_EventScript_ShowResults::
2017-11-10 02:21:31 +01:00
lockall
frontier_results FRONTIER_FACILITY_ARENA
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_BattleArenaLobby_EventScript_Youngster::
2019-11-26 23:20:08 +01:00
msgbox BattleFrontier_BattleArenaLobby_Text_BadIdeaToNotAttack, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_EventScript_Man::
2019-11-26 23:20:08 +01:00
msgbox BattleFrontier_BattleArenaLobby_Text_LandingHitsWorked, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_EventScript_Camper::
2019-11-26 23:20:08 +01:00
msgbox BattleFrontier_BattleArenaLobby_Text_MatchWasDeclaredDraw, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_EventScript_Woman::
2019-11-26 23:20:08 +01:00
msgbox BattleFrontier_BattleArenaLobby_Text_OrderOfMonsImportant, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_EventScript_RulesBoard::
2017-11-10 02:21:31 +01:00
lockall
2019-11-26 23:20:08 +01:00
msgbox BattleFrontier_BattleArenaLobby_Text_RulesAreListed, MSGBOX_DEFAULT
goto BattleFrontier_BattleArenaLobby_EventScript_ReadRulesBoard
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_EventScript_ReadRulesBoard::
2019-11-26 23:20:08 +01:00
message BattleFrontier_BattleArenaLobby_Text_ReadWhichHeading
2017-11-10 02:21:31 +01:00
waitmessage
2021-03-31 06:35:56 +02:00
multichoice 17, 2, MULTI_BATTLE_ARENA_RULES, FALSE
2017-11-10 02:21:31 +01:00
switch VAR_RESULT
2019-11-26 23:20:08 +01:00
case 0, BattleFrontier_BattleArenaLobby_EventScript_BattleRules
case 1, BattleFrontier_BattleArenaLobby_EventScript_MindRules
case 2, BattleFrontier_BattleArenaLobby_EventScript_SkillRules
case 3, BattleFrontier_BattleArenaLobby_EventScript_BodyRules
case 4, BattleFrontier_BattleArenaLobby_EventScript_ExitRules
case MULTI_B_PRESSED, BattleFrontier_BattleArenaLobby_EventScript_ExitRules
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_EventScript_BattleRules::
2019-11-26 23:20:08 +01:00
msgbox BattleFrontier_BattleArenaLobby_Text_ExplainBattleRules, MSGBOX_DEFAULT
goto BattleFrontier_BattleArenaLobby_EventScript_ReadRulesBoard
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_EventScript_MindRules::
2019-11-26 23:20:08 +01:00
msgbox BattleFrontier_BattleArenaLobby_Text_ExplainMindRules, MSGBOX_DEFAULT
goto BattleFrontier_BattleArenaLobby_EventScript_ReadRulesBoard
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_EventScript_SkillRules::
2019-11-26 23:20:08 +01:00
msgbox BattleFrontier_BattleArenaLobby_Text_ExplainSkillRules, MSGBOX_DEFAULT
goto BattleFrontier_BattleArenaLobby_EventScript_ReadRulesBoard
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_EventScript_BodyRules::
2019-11-26 23:20:08 +01:00
msgbox BattleFrontier_BattleArenaLobby_Text_ExplainBodyRules, MSGBOX_DEFAULT
goto BattleFrontier_BattleArenaLobby_EventScript_ReadRulesBoard
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_EventScript_ExitRules::
2017-11-10 02:21:31 +01:00
releaseall
end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_Text_WelcomeToBattleArena:
2017-11-10 02:21:31 +01:00
.string "Where the battling spirit of TRAINERS\n"
.string "is put to the test!\p"
.string "I welcome you to the BATTLE ARENA!\p"
.string "I am your guide to the Set KO Tourney!$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_Text_WishToTakeChallenge:
2017-11-10 02:21:31 +01:00
.string "Now, do you wish to take\n"
.string "the BATTLE ARENA challenge?$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_Text_AwaitAnotherChallenge:
2017-11-10 02:21:31 +01:00
.string "We await your challenge on\n"
.string "another occasion!$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_Text_ExplainChallenge:
2017-11-10 02:21:31 +01:00
.string "In the BATTLE ARENA, we undertake\n"
.string "the Set KO Tourney.\p"
.string "All participants enter with a team of\n"
.string "three POKéMON.\p"
.string "The three POKéMON must be lined up in\n"
.string "the order in which they are to appear.\p"
.string "During battle, the POKéMON will appear\n"
.string "one at a time in the preset order.\p"
.string "Once a POKéMON enters battle, it must\n"
.string "remain out until the match is decided.\p"
.string "If a match remains undecided in\n"
.string "three turns, it goes to judging.\p"
.string "If you wish to interrupt your challenge,\n"
.string "please save the game.\p"
2018-12-07 16:41:08 +01:00
.string "If you don't save, you will not be able\n"
2017-11-10 02:21:31 +01:00
.string "to continue with your challenge.\p"
.string "If you pull off the feat of beating\n"
.string "seven TRAINERS in succession,\l"
.string "we will present you with Battle Points.$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_Text_OkayToSave:
2017-11-10 02:21:31 +01:00
.string "Before showing you to the BATTLE\n"
.string "ARENA, you must save. Is that okay?$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_Text_WhichLevelMode:
2017-11-10 02:21:31 +01:00
.string "The BATTLE ARENA 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_BattleArenaLobby_Text_SelectThreeMons:
2017-11-10 02:21:31 +01:00
.string "Very well, now select your\n"
.string "three POKéMON, please.$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_Text_NotEnoughValidMonsLvOpen:
2017-11-10 02:21:31 +01:00
.string "My dear challenger!\p"
.string "You do not have the three POKéMON\n"
.string "required for entry.\p"
.string "To qualify, you must bring three\n"
.string "different kinds of POKéMON.\p"
.string "They also must not hold the same\n"
.string "kinds of items.\p"
.string "EGGS{STR_VAR_1} ineligible.\p"
.string "When you have made your preparations,\n"
.string "please do return.$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_Text_NotEnoughValidMonsLv50:
2017-11-10 02:21:31 +01:00
.string "My dear challenger!\p"
.string "You do not have the three POKéMON\n"
.string "required for entry.\p"
.string "To qualify, you must bring three\n"
.string "different kinds of POKéMON.\p"
.string "The three different POKéMON\n"
.string "must all be Level 50 or lower.\p"
.string "They also must not hold the same\n"
.string "kinds of items.\p"
.string "EGGS{STR_VAR_1} ineligible.\p"
.string "When you have made your preparations,\n"
.string "please do return.$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_Text_GuideYouToArena:
2017-11-10 02:21:31 +01:00
.string "I shall now guide you to\n"
.string "the BATTLE ARENA.$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_Text_DidntSaveBeforeShuttingDown:
2017-11-10 02:21:31 +01:00
.string "My dear challenger!\p"
.string "You did not save the game before\n"
.string "shutting down, did you?\p"
.string "It is unfortunate, but that has\n"
.string "resulted in your disqualification\l"
.string "from your challenge.\p"
.string "You may, of course, start with a fresh\n"
.string "challenge.$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_Text_CongratsOnSevenWins:
2017-11-10 02:21:31 +01:00
.string "We congratulate you for your splendid\n"
.string "string of wins over seven TRAINERS!$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_Text_RecordAchievement:
2017-11-10 02:21:31 +01:00
.string "Your achievement will be recorded.\n"
.string "Please wait while I save the game.$"
2019-11-26 23:20:08 +01:00
@ Unused
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_Text_PresentYouWithPrize:
2017-11-10 00:40:08 +01:00
.string "In commemoration of your 7-win streak,\n"
.string "we present you with this prize.$"
2019-11-26 23:20:08 +01:00
@ Unused
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_Text_ReceivedPrize:
2017-11-10 00:40:08 +01:00
.string "{PLAYER} received the prize\n"
.string "{STR_VAR_1}.$"
2019-11-26 23:20:08 +01:00
@ Unused
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_Text_BagFullReturnForPrize:
2017-11-10 00:40:08 +01:00
.string "Oh?\n"
.string "Your BAG seems to be full.\p"
.string "I urge you to clear space and\n"
.string "return for your prize.$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_Text_ThankYouWaitWhileSave:
2017-11-10 02:21:31 +01:00
.string "Thank you so much for participating!\p"
.string "Please wait while I save the game.$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_Text_AwaitAnotherChallenge2:
2017-11-10 02:21:31 +01:00
.string "We await your challenge on\n"
.string "another occasion!$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_Text_LookingForwardToArrivalSaveGame:
2017-11-10 02:21:31 +01:00
.string "We have been looking forward to\n"
.string "your arrival.\p"
.string "Before I show you to the BATTLE\n"
.string "ARENA, I must save the game.\l"
.string "Please wait.$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_Text_RecordLastMatch:
2017-11-10 02:21:31 +01:00
.string "Shall I record your last BATTLE ARENA\n"
.string "match on your FRONTIER PASS?$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_Text_BadIdeaToNotAttack:
2018-12-07 16:41:08 +01:00
.string "I lost on the REFEREE's decision…\p"
.string "I don't think it was a good idea to only\n"
2017-11-10 02:21:31 +01:00
.string "use defensive moves and not attack…$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_Text_LandingHitsWorked:
2017-11-10 02:21:31 +01:00
.string "I won in judging!\p"
.string "Landing hits consistently on\n"
2018-12-07 16:41:08 +01:00
.string "the opponent's POKéMON worked!$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_Text_MatchWasDeclaredDraw:
2017-11-10 02:21:31 +01:00
.string "Our match was declared a draw.\p"
.string "When we ran out of time, both my\n"
2018-12-07 16:41:08 +01:00
.string "POKéMON and the opponent's had about\l"
2017-11-10 02:21:31 +01:00
.string "the same amount of HP left.$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_Text_OrderOfMonsImportant:
2017-11-10 02:21:31 +01:00
.string "In the BATTLE ARENA, the order of\n"
.string "POKéMON is totally important.\p"
.string "For example, if your first POKéMON\n"
.string "has certain type disadvantages,\l"
.string "try making your second POKéMON one\l"
.string "with moves that are super effective\l"
.string "against the first one.\p"
.string "I think that will be a good way of\n"
.string "making an effective team.$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_Text_RulesAreListed:
2018-12-07 16:41:08 +01:00
.string "The Set KO Tourney's rules are listed.$"
2017-11-10 00:40:08 +01:00
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_Text_ReadWhichHeading:
2017-11-10 00:40:08 +01:00
.string "Which heading do you want to read?$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_Text_ExplainBattleRules:
2017-11-10 00:40:08 +01:00
.string "The Set KO Tourney has special rules,\n"
.string "unlike standard battles.\p"
.string "First, one battle lasts only\n"
.string "three turns.\p"
.string "If the outcome is not decided after\n"
.string "three turns, it goes to judging.\p"
.string "The REFEREE will choose the winner\n"
.string "based on how the POKéMON battled.\p"
.string "Also, a POKéMON cannot be switched out\n"
2018-12-07 16:41:08 +01:00
.string "until its battle's outcome is decided.$"
2017-11-10 00:40:08 +01:00
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_Text_ExplainMindRules:
2017-11-10 00:40:08 +01:00
.string "The first judging factor is “Mind.”\n"
.string "This factor evaluates how aggressive\l"
.string "the battlers were.\p"
.string "The judging is based on how often\n"
.string "the TRAINERS ordered the use of\l"
.string "offensive moves.$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_Text_ExplainSkillRules:
2017-11-10 00:40:08 +01:00
.string "The second judging factor is “Skill.”\n"
.string "This factor evaluates how effectively\l"
.string "POKéMON moves were used.\p"
.string "If a move worked successfully,\n"
.string "the Skill rating goes up.\p"
.string "If a move failed, the Skill rating\n"
.string "is lowered.\p"
.string "If it was an offensive move, the Skill\n"
.string "rating goes up if the move was “super\l"
.string "effective” and goes down if it was\l"
.string "“not very effective.”\p"
.string "The Skill rating will not go up for\n"
.string "moves such as PROTECT and DETECT.\p"
.string "If the opponent used PROTECT or\n"
.string "DETECT, and your POKéMON failed to\l"
.string "hit with a move, its Skill rating will not\l"
.string "go down.$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_Text_ExplainBodyRules:
2017-11-10 00:40:08 +01:00
.string "The third judging factor is “Body.”\n"
.string "This factor is based on how much HP\l"
.string "remained at the end of a battle.\p"
.string "The rating takes into account how much\n"
.string "HP a POKéMON had at the start of\l"
.string "battle, and what remained at the end.$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_Text_CongratsOnDefeatingTycoon:
2017-11-10 00:40:08 +01:00
.string "A victory snatched from the ARENA\n"
.string "TYCOON, and a seven-TRAINER sweep!\p"
.string "We congratulate you on your most\n"
.string "splendid challenge!$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattleArenaLobby_Text_PleaseAcceptBattlePoints:
2017-11-10 00:40:08 +01:00
.string "My dear challenger, in recognition of\n"
.string "your indefatigable spirit, please\l"
.string "accept these Battle Point(s).$"