2020-06-21 07:56:57 +02:00
|
|
|
.set LOCALID_ATTENDANT, 1
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_MapScripts::
|
2019-12-09 20:00:13 +01:00
|
|
|
map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattleFactoryPreBattleRoom_OnFrame
|
|
|
|
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattleFactoryPreBattleRoom_OnWarp
|
2017-11-10 02:21:31 +01:00
|
|
|
.byte 0
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_OnWarp:
|
2019-12-09 20:00:13 +01:00
|
|
|
map_script_2 VAR_TEMP_1, 0, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_SetUpObjects
|
2017-11-10 02:21:31 +01:00
|
|
|
.2byte 0
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_SetUpObjects::
|
2018-05-19 18:02:43 +02:00
|
|
|
setvar VAR_TEMP_1, 1
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_0x8006, 1
|
2019-12-09 20:00:13 +01:00
|
|
|
goto_if_ne BattleFrontier_BattleFactoryPreBattleRoom_EventScript_TurnPlayerNorth
|
2020-06-21 07:56:57 +02:00
|
|
|
setobjectxy LOCALID_ATTENDANT, 8, 7
|
|
|
|
turnobject LOCALID_ATTENDANT, DIR_SOUTH
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_TurnPlayerNorth::
|
2019-11-21 05:12:51 +01:00
|
|
|
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_BattleFactoryPreBattleRoom_OnFrame:
|
2019-12-09 20:00:13 +01:00
|
|
|
map_script_2 VAR_TEMP_0, 0, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_EnterRoom
|
2017-11-10 02:21:31 +01:00
|
|
|
.2byte 0
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_EnterRoom::
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_0x8006, 1
|
2019-12-09 20:00:13 +01:00
|
|
|
goto_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_ReturnToRoomFromBattle
|
2018-05-19 18:02:43 +02:00
|
|
|
setvar VAR_TEMP_0, 1
|
2020-06-21 07:56:57 +02:00
|
|
|
applymovement LOCALID_ATTENDANT, BattleFrontier_BattleFactoryPreBattleRoom_Movement_AttendantEnterRoom
|
2019-12-15 08:00:00 +01:00
|
|
|
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleFactoryPreBattleRoom_Movement_PlayerEnterRoom
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmovement 0
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_0x8006, 2
|
2019-12-09 20:00:13 +01:00
|
|
|
goto_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_ResumeChallenge
|
2019-12-02 14:44:34 +01:00
|
|
|
factory_generaterentalmons
|
|
|
|
factory_generateopponentmons
|
|
|
|
factory_getopponentmontype
|
2017-11-10 02:21:31 +01:00
|
|
|
setorcopyvar VAR_0x8005, VAR_RESULT
|
2019-12-02 14:44:34 +01:00
|
|
|
factory_getopponentstyle
|
2017-11-10 02:21:31 +01:00
|
|
|
setorcopyvar VAR_0x8006, VAR_RESULT
|
2019-12-09 20:00:13 +01:00
|
|
|
call BattleFrontier_BattleFactoryPreBattleRoom_EventScript_CommentOnOpponentType
|
|
|
|
call BattleFrontier_BattleFactoryPreBattleRoom_EventScript_CommentOnOpponentStyle
|
|
|
|
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_HoldMonsChooseFromSelection, MSGBOX_DEFAULT
|
2019-12-15 17:42:50 +01:00
|
|
|
fadescreen FADE_TO_BLACK
|
2019-12-02 14:44:34 +01:00
|
|
|
factory_setswapped
|
|
|
|
factory_rentmons
|
2017-11-10 02:21:31 +01:00
|
|
|
waitstate
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_EnterBattleRoom::
|
2019-12-09 20:00:13 +01:00
|
|
|
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_RightThisWay, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
closemessage
|
2019-11-24 22:58:40 +01:00
|
|
|
call BattleFrontier_EventScript_GetLvlMode
|
2019-12-02 14:44:34 +01:00
|
|
|
compare VAR_RESULT, FRONTIER_LVL_50
|
2019-12-09 20:00:13 +01:00
|
|
|
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_WalkToBattleRoomLv50
|
2019-12-02 14:44:34 +01:00
|
|
|
compare VAR_RESULT, FRONTIER_LVL_OPEN
|
2019-12-09 20:00:13 +01:00
|
|
|
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_WalkToBattleRoomLvOpen
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmovement 0
|
2018-06-15 05:00:09 +02:00
|
|
|
warp MAP_BATTLE_FRONTIER_BATTLE_FACTORY_BATTLE_ROOM, 255, 6, 11
|
2017-11-10 02:21:31 +01:00
|
|
|
waitstate
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_ReturnToRoomFromBattle::
|
2019-12-02 14:44:34 +01:00
|
|
|
factory_setopponentmons
|
|
|
|
factory_resethelditems
|
2019-12-09 20:00:13 +01:00
|
|
|
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_LetUsRestoreMons, MSGBOX_DEFAULT
|
2020-08-21 00:02:00 +02:00
|
|
|
playfanfare MUS_HEAL
|
2017-11-10 02:21:31 +01:00
|
|
|
waitfanfare
|
2017-12-16 00:08:23 +01:00
|
|
|
special HealPlayerParty
|
2019-11-21 03:46:29 +01:00
|
|
|
frontier_getbrainstatus
|
|
|
|
compare VAR_RESULT, FRONTIER_BRAIN_NOT_READY
|
2019-12-09 20:00:13 +01:00
|
|
|
goto_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskReadyForRegularOpponent
|
2020-08-21 00:02:00 +02:00
|
|
|
playse SE_POKENAV_CALL
|
2017-11-10 02:21:31 +01:00
|
|
|
waitse
|
2019-12-09 20:00:13 +01:00
|
|
|
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_WaitFewMoments, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
closemessage
|
2020-06-21 07:56:57 +02:00
|
|
|
applymovement LOCALID_ATTENDANT, BattleFrontier_BattleFactoryPreBattleRoom_Movement_AttendantMoveToReceiveCall
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmovement 0
|
2019-12-09 20:00:13 +01:00
|
|
|
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_UnderstoodSirWillDo, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
closemessage
|
2020-06-21 07:56:57 +02:00
|
|
|
applymovement LOCALID_ATTENDANT, BattleFrontier_BattleFactoryPreBattleRoom_Movement_AttendantReturnToPlayer
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmovement 0
|
2019-12-09 20:00:13 +01:00
|
|
|
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_MessageFromHeadComeRightNow, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
closemessage
|
|
|
|
delay 16
|
2019-12-09 20:00:13 +01:00
|
|
|
goto BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskReadyForHead
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskReadyForOpponent::
|
2019-11-21 03:46:29 +01:00
|
|
|
frontier_getbrainstatus
|
|
|
|
compare VAR_RESULT, FRONTIER_BRAIN_NOT_READY
|
2019-12-09 20:00:13 +01:00
|
|
|
goto_if_ne BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskReadyForHead
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskReadyForRegularOpponent::
|
2019-11-24 22:58:40 +01:00
|
|
|
frontier_get FRONTIER_DATA_BATTLE_NUM
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 1
|
2019-12-09 20:00:13 +01:00
|
|
|
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_ReadyFor2ndOpponent
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 2
|
2019-12-09 20:00:13 +01:00
|
|
|
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_ReadyFor3rdOpponent
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 3
|
2019-12-09 20:00:13 +01:00
|
|
|
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_ReadyFor4thOpponent
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 4
|
2019-12-09 20:00:13 +01:00
|
|
|
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_ReadyFor5thOpponent
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 5
|
2019-12-09 20:00:13 +01:00
|
|
|
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_ReadyFor6thOpponent
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 6
|
2019-12-09 20:00:13 +01:00
|
|
|
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_ReadyFor7thOpponent
|
2020-01-08 11:43:06 +01:00
|
|
|
call BattleFrontier_EventScript_GetCantRecordBattle
|
|
|
|
compare VAR_RESULT, TRUE
|
2019-12-09 20:00:13 +01:00
|
|
|
goto_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskReadyForOpponentNoRecord
|
2021-03-31 06:35:56 +02:00
|
|
|
multichoice 19, 4, MULTI_GO_ON_RECORD_REST_RETIRE, TRUE
|
2017-11-10 02:21:31 +01:00
|
|
|
switch VAR_RESULT
|
2019-12-09 20:00:13 +01:00
|
|
|
case 0, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskSwapMon
|
|
|
|
case 1, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskRecordBattle
|
|
|
|
case 2, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskPauseChallenge
|
|
|
|
case 3, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskRetireChallenge
|
|
|
|
case MULTI_B_PRESSED, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskReadyForOpponent
|
2017-11-10 02:21:31 +01:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskReadyForOpponentNoRecord::
|
2021-03-31 06:35:56 +02:00
|
|
|
multichoice 20, 6, MULTI_GO_ON_REST_RETIRE, TRUE
|
2017-11-10 02:21:31 +01:00
|
|
|
switch VAR_RESULT
|
2019-12-09 20:00:13 +01:00
|
|
|
case 0, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskSwapMon
|
|
|
|
case 1, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskPauseChallenge
|
|
|
|
case 2, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskRetireChallenge
|
|
|
|
case MULTI_B_PRESSED, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskReadyForOpponent
|
2017-11-10 02:21:31 +01:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskRecordBattle::
|
2019-12-09 20:00:13 +01:00
|
|
|
message BattleFrontier_BattleFactoryPreBattleRoom_Text_RecordLatestBattle
|
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-09 20:00:13 +01:00
|
|
|
case 1, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskReadyForOpponent
|
|
|
|
case 0, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_RecordBattle
|
|
|
|
case MULTI_B_PRESSED, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskReadyForOpponent
|
2017-11-10 02:21:31 +01:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_RecordBattle::
|
2019-11-24 22:58:40 +01:00
|
|
|
call BattleFrontier_EventScript_SaveBattle
|
2019-12-09 20:00:13 +01:00
|
|
|
goto BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskReadyForOpponent
|
2017-11-10 02:21:31 +01:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskPauseChallenge::
|
2019-12-09 20:00:13 +01:00
|
|
|
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_SaveAndQuitGame, MSGBOX_YESNO
|
2017-11-10 02:21:31 +01:00
|
|
|
switch VAR_RESULT
|
2019-12-09 20:00:13 +01:00
|
|
|
case NO, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskReadyForOpponent
|
|
|
|
case YES, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_PauseChallenge
|
|
|
|
case MULTI_B_PRESSED, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskReadyForOpponent
|
2017-11-10 02:21:31 +01:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskRetireChallenge::
|
2019-12-09 20:00:13 +01:00
|
|
|
message BattleFrontier_BattleFactoryPreBattleRoom_Text_RetireFromChallenge
|
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-09 20:00:13 +01:00
|
|
|
case 1, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskReadyForOpponent
|
|
|
|
case 0, BattleFrontier_BattleFactoryBattleRoom_EventScript_WarpToLobbyLost
|
|
|
|
case MULTI_B_PRESSED, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskReadyForOpponent
|
2017-11-10 02:21:31 +01:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskSwapMon::
|
2019-12-02 14:44:34 +01:00
|
|
|
factory_generateopponentmons
|
|
|
|
factory_getopponentmontype
|
2017-11-10 02:21:31 +01:00
|
|
|
setorcopyvar VAR_0x8005, VAR_RESULT
|
2019-12-02 14:44:34 +01:00
|
|
|
factory_getopponentstyle
|
2017-11-10 02:21:31 +01:00
|
|
|
setorcopyvar VAR_0x8006, VAR_RESULT
|
2019-12-09 20:00:13 +01:00
|
|
|
call BattleFrontier_BattleFactoryPreBattleRoom_EventScript_CommentOnOpponentType
|
|
|
|
call BattleFrontier_BattleFactoryPreBattleRoom_EventScript_CommentOnOpponentStyle
|
|
|
|
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_LikeToSwapMon, MSGBOX_YESNO
|
2017-11-10 02:21:31 +01:00
|
|
|
switch VAR_RESULT
|
2019-12-09 20:00:13 +01:00
|
|
|
case NO, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_EnterBattleRoom
|
|
|
|
case YES, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_SwapMons
|
|
|
|
case MULTI_B_PRESSED, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_EnterBattleRoom
|
2017-11-10 02:21:31 +01:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_SwapMons::
|
2019-12-15 17:42:50 +01:00
|
|
|
fadescreen FADE_TO_BLACK
|
2019-12-02 14:44:34 +01:00
|
|
|
factory_swapmons
|
2017-11-10 02:21:31 +01:00
|
|
|
waitstate
|
2020-08-31 19:36:48 +02:00
|
|
|
compare VAR_RESULT, TRUE @ Did player keep current pokemon
|
2019-12-09 20:00:13 +01:00
|
|
|
goto_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_EnterBattleRoom
|
2019-12-02 14:44:34 +01:00
|
|
|
factory_setswapped
|
2019-12-09 20:00:13 +01:00
|
|
|
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_YourSwapIsComplete, MSGBOX_DEFAULT
|
|
|
|
goto BattleFrontier_BattleFactoryPreBattleRoom_EventScript_EnterBattleRoom
|
2017-11-10 02:21:31 +01:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_ReadyFor2ndOpponent::
|
2019-12-09 20:00:13 +01:00
|
|
|
message BattleFrontier_BattleFactoryPreBattleRoom_Text_ReadyFor2ndOpponent
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmessage
|
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_ReadyFor3rdOpponent::
|
2019-12-09 20:00:13 +01:00
|
|
|
message BattleFrontier_BattleFactoryPreBattleRoom_Text_ReadyFor3rdOpponent
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmessage
|
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_ReadyFor4thOpponent::
|
2019-12-09 20:00:13 +01:00
|
|
|
message BattleFrontier_BattleFactoryPreBattleRoom_Text_ReadyFor4thOpponent
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmessage
|
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_ReadyFor5thOpponent::
|
2019-12-09 20:00:13 +01:00
|
|
|
message BattleFrontier_BattleFactoryPreBattleRoom_Text_ReadyFor5thOpponent
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmessage
|
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_ReadyFor6thOpponent::
|
2019-12-09 20:00:13 +01:00
|
|
|
message BattleFrontier_BattleFactoryPreBattleRoom_Text_ReadyFor6thOpponent
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmessage
|
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_ReadyFor7thOpponent::
|
2019-12-09 20:00:13 +01:00
|
|
|
message BattleFrontier_BattleFactoryPreBattleRoom_Text_ReadyFor7thOpponent
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmessage
|
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_PauseChallenge::
|
2019-12-09 20:00:13 +01:00
|
|
|
message BattleFrontier_BattleFactoryPreBattleRoom_Text_SavingDataPleaseWait
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmessage
|
2019-12-02 14:44:34 +01:00
|
|
|
factory_save CHALLENGE_STATUS_PAUSED
|
2017-11-10 02:21:31 +01:00
|
|
|
playse SE_SAVE
|
|
|
|
waitse
|
2019-12-15 17:42:50 +01:00
|
|
|
fadescreen FADE_TO_BLACK
|
2019-11-24 22:58:40 +01:00
|
|
|
frontier_reset
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_ResumeChallenge::
|
2018-04-29 14:21:59 +02:00
|
|
|
special SavePlayerParty
|
2019-12-02 14:44:34 +01:00
|
|
|
factory_setparties 0
|
2020-01-08 11:43:06 +01:00
|
|
|
frontier_set FRONTIER_DATA_RECORD_DISABLED, TRUE
|
2017-11-10 02:21:31 +01:00
|
|
|
special CalculatePlayerPartyCount
|
2019-12-09 20:00:13 +01:00
|
|
|
goto BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskReadyForOpponent
|
2017-11-10 02:21:31 +01:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_CommentOnOpponentType::
|
2019-12-09 20:00:13 +01:00
|
|
|
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_InvestigatedUpcomingOpponent, MSGBOX_DEFAULT
|
2019-12-02 14:44:34 +01:00
|
|
|
compare VAR_0x8005, TYPE_NORMAL
|
2019-12-09 20:00:13 +01:00
|
|
|
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesNormal
|
2019-12-02 14:44:34 +01:00
|
|
|
compare VAR_0x8005, TYPE_FIGHTING
|
2019-12-09 20:00:13 +01:00
|
|
|
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesFighting
|
2019-12-02 14:44:34 +01:00
|
|
|
compare VAR_0x8005, TYPE_FLYING
|
2019-12-09 20:00:13 +01:00
|
|
|
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesFlying
|
2019-12-02 14:44:34 +01:00
|
|
|
compare VAR_0x8005, TYPE_POISON
|
2019-12-09 20:00:13 +01:00
|
|
|
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesPoison
|
2019-12-02 14:44:34 +01:00
|
|
|
compare VAR_0x8005, TYPE_GROUND
|
2019-12-09 20:00:13 +01:00
|
|
|
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesGround
|
2019-12-02 14:44:34 +01:00
|
|
|
compare VAR_0x8005, TYPE_ROCK
|
2019-12-09 20:00:13 +01:00
|
|
|
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesRock
|
2019-12-02 14:44:34 +01:00
|
|
|
compare VAR_0x8005, TYPE_BUG
|
2019-12-09 20:00:13 +01:00
|
|
|
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesBug
|
2019-12-02 14:44:34 +01:00
|
|
|
compare VAR_0x8005, TYPE_GHOST
|
2019-12-09 20:00:13 +01:00
|
|
|
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesGhost
|
2019-12-02 14:44:34 +01:00
|
|
|
compare VAR_0x8005, TYPE_STEEL
|
2019-12-09 20:00:13 +01:00
|
|
|
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesSteel
|
2019-12-02 14:44:34 +01:00
|
|
|
compare VAR_0x8005, TYPE_FIRE
|
2019-12-09 20:00:13 +01:00
|
|
|
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesFire
|
2019-12-02 14:44:34 +01:00
|
|
|
compare VAR_0x8005, TYPE_WATER
|
2019-12-09 20:00:13 +01:00
|
|
|
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesWater
|
2019-12-02 14:44:34 +01:00
|
|
|
compare VAR_0x8005, TYPE_GRASS
|
2019-12-09 20:00:13 +01:00
|
|
|
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesGrass
|
2019-12-02 14:44:34 +01:00
|
|
|
compare VAR_0x8005, TYPE_ELECTRIC
|
2019-12-09 20:00:13 +01:00
|
|
|
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesElectric
|
2019-12-02 14:44:34 +01:00
|
|
|
compare VAR_0x8005, TYPE_PSYCHIC
|
2019-12-09 20:00:13 +01:00
|
|
|
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesPsychic
|
2019-12-02 14:44:34 +01:00
|
|
|
compare VAR_0x8005, TYPE_ICE
|
2019-12-09 20:00:13 +01:00
|
|
|
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesIce
|
2019-12-02 14:44:34 +01:00
|
|
|
compare VAR_0x8005, TYPE_DRAGON
|
2019-12-09 20:00:13 +01:00
|
|
|
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesDragon
|
2019-12-02 14:44:34 +01:00
|
|
|
compare VAR_0x8005, TYPE_DARK
|
2019-12-09 20:00:13 +01:00
|
|
|
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesDark
|
2019-12-02 14:44:34 +01:00
|
|
|
compare VAR_0x8005, NUMBER_OF_MON_TYPES
|
2019-12-09 20:00:13 +01:00
|
|
|
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentHasNoMostCommonType
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesNormal::
|
2019-12-09 20:00:13 +01:00
|
|
|
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInNormalType, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesFighting::
|
2019-12-09 20:00:13 +01:00
|
|
|
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInFightingType, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesFlying::
|
2019-12-09 20:00:13 +01:00
|
|
|
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInFlyingType, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesPoison::
|
2019-12-09 20:00:13 +01:00
|
|
|
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInPoisonType, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesGround::
|
2019-12-09 20:00:13 +01:00
|
|
|
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInGroundType, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesRock::
|
2019-12-09 20:00:13 +01:00
|
|
|
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInRockType, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesBug::
|
2019-12-09 20:00:13 +01:00
|
|
|
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInBugType, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesGhost::
|
2019-12-09 20:00:13 +01:00
|
|
|
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInGhostType, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesSteel::
|
2019-12-09 20:00:13 +01:00
|
|
|
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInSteelType, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesFire::
|
2019-12-09 20:00:13 +01:00
|
|
|
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInFireType, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesWater::
|
2019-12-09 20:00:13 +01:00
|
|
|
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInWaterType, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesGrass::
|
2019-12-09 20:00:13 +01:00
|
|
|
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInGrassType, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesElectric::
|
2019-12-09 20:00:13 +01:00
|
|
|
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInElectricType, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesPsychic::
|
2019-12-09 20:00:13 +01:00
|
|
|
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInPsychicType, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesIce::
|
2019-12-09 20:00:13 +01:00
|
|
|
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInIceType, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesDragon::
|
2019-12-09 20:00:13 +01:00
|
|
|
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInDragonType, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentUsesDark::
|
2019-12-09 20:00:13 +01:00
|
|
|
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInDarkType, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_OpponentHasNoMostCommonType::
|
2019-12-09 20:00:13 +01:00
|
|
|
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerHasNoClearFavorite, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_CommentOnOpponentStyle::
|
2019-12-02 14:44:34 +01:00
|
|
|
compare VAR_0x8006, FACTORY_STYLE_NONE
|
2019-12-09 20:00:13 +01:00
|
|
|
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_StyleUnrestrained
|
2019-12-02 14:44:34 +01:00
|
|
|
compare VAR_0x8006, FACTORY_STYLE_PREPARATION
|
2019-12-09 20:00:13 +01:00
|
|
|
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_StyleTotalPreparation
|
2019-12-02 14:44:34 +01:00
|
|
|
compare VAR_0x8006, FACTORY_STYLE_SLOW_STEADY
|
2019-12-09 20:00:13 +01:00
|
|
|
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_StyleSlowAndSteady
|
2019-12-02 14:44:34 +01:00
|
|
|
compare VAR_0x8006, FACTORY_STYLE_ENDURANCE
|
2019-12-09 20:00:13 +01:00
|
|
|
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_StyleEndurance
|
2019-12-02 14:44:34 +01:00
|
|
|
compare VAR_0x8006, FACTORY_STYLE_HIGH_RISK
|
2019-12-09 20:00:13 +01:00
|
|
|
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_StyleHighRisk
|
2019-12-02 14:44:34 +01:00
|
|
|
compare VAR_0x8006, FACTORY_STYLE_WEAKENING
|
2019-12-09 20:00:13 +01:00
|
|
|
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_StyleWeakenFoe
|
2019-12-02 14:44:34 +01:00
|
|
|
compare VAR_0x8006, FACTORY_STYLE_UNPREDICTABLE
|
2019-12-09 20:00:13 +01:00
|
|
|
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_StyleImpossibleToPredict
|
2019-12-02 14:44:34 +01:00
|
|
|
compare VAR_0x8006, FACTORY_STYLE_WEATHER
|
2019-12-09 20:00:13 +01:00
|
|
|
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_StyleDependsOnFlow
|
2019-12-02 14:44:34 +01:00
|
|
|
compare VAR_0x8006, FACTORY_NUM_STYLES
|
2019-12-09 20:00:13 +01:00
|
|
|
call_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_StyleFlexible
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_StyleUnrestrained::
|
2019-12-09 20:00:13 +01:00
|
|
|
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_StyleUnrestrained, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_StyleTotalPreparation::
|
2019-12-09 20:00:13 +01:00
|
|
|
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_StyleTotalPreparation, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_StyleSlowAndSteady::
|
2019-12-09 20:00:13 +01:00
|
|
|
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_StyleSlowAndSteady, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_StyleEndurance::
|
2019-12-09 20:00:13 +01:00
|
|
|
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_StyleEndurance, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_StyleHighRisk::
|
2019-12-09 20:00:13 +01:00
|
|
|
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_StyleHighRisk, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_StyleWeakenFoe::
|
2019-12-09 20:00:13 +01:00
|
|
|
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_StyleWeakenFoe, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_StyleImpossibleToPredict::
|
2019-12-09 20:00:13 +01:00
|
|
|
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_StyleImpossibleToPredict, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_StyleDependsOnFlow::
|
2019-12-09 20:00:13 +01:00
|
|
|
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_StyleDependsOnFlow, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_StyleFlexible::
|
2019-12-09 20:00:13 +01:00
|
|
|
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_StyleFlexible, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskReadyForHead::
|
2019-12-09 20:00:13 +01:00
|
|
|
message BattleFrontier_BattleFactoryPreBattleRoom_Text_PreparedToFaceHead
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmessage
|
2020-01-08 11:43:06 +01:00
|
|
|
call BattleFrontier_EventScript_GetCantRecordBattle
|
|
|
|
compare VAR_RESULT, TRUE
|
2019-12-09 20:00:13 +01:00
|
|
|
goto_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskReadyForHeadNoRecord
|
2021-03-31 06:35:56 +02:00
|
|
|
multichoice 19, 4, MULTI_GO_ON_RECORD_REST_RETIRE, TRUE
|
2017-11-10 02:21:31 +01:00
|
|
|
switch VAR_RESULT
|
2019-12-09 20:00:13 +01:00
|
|
|
case 0, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskSwapBeforeHead
|
|
|
|
case 1, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskRecordBattle
|
|
|
|
case 2, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskPauseChallenge
|
|
|
|
case 3, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskRetireChallenge
|
|
|
|
case MULTI_B_PRESSED, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskReadyForHead
|
2017-11-10 02:21:31 +01:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskReadyForHeadNoRecord::
|
2021-03-31 06:35:56 +02:00
|
|
|
multichoice 20, 6, MULTI_GO_ON_REST_RETIRE, TRUE
|
2017-11-10 02:21:31 +01:00
|
|
|
switch VAR_RESULT
|
2019-12-09 20:00:13 +01:00
|
|
|
case 0, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskSwapBeforeHead
|
|
|
|
case 1, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskPauseChallenge
|
|
|
|
case 2, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskRetireChallenge
|
|
|
|
case MULTI_B_PRESSED, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskReadyForHead
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskSwapBeforeHead::
|
2019-12-09 20:00:13 +01:00
|
|
|
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_CantTellAnythingAboutHead, MSGBOX_DEFAULT
|
|
|
|
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_LikeToSwapMon, MSGBOX_YESNO
|
2017-11-10 02:21:31 +01:00
|
|
|
switch VAR_RESULT
|
2019-12-09 20:00:13 +01:00
|
|
|
case NO, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_EnterBattleRoom
|
|
|
|
case YES, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_SwapMons
|
|
|
|
case MULTI_B_PRESSED, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_EnterBattleRoom
|
2017-11-10 02:21:31 +01:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_WalkToBattleRoomLv50::
|
2020-06-21 07:56:57 +02:00
|
|
|
applymovement LOCALID_ATTENDANT, BattleFrontier_BattleFactoryPreBattleRoom_Movement_GuideWalkToBattleRoomLv50
|
2019-12-15 08:00:00 +01:00
|
|
|
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleFactoryPreBattleRoom_Movement_PlayerWalkToBattleRoomLv50
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_WalkToBattleRoomLvOpen::
|
2020-06-21 07:56:57 +02:00
|
|
|
applymovement LOCALID_ATTENDANT, BattleFrontier_BattleFactoryPreBattleRoom_Movement_GuideWalkToBattleRoomLvOpen
|
2019-12-15 08:00:00 +01:00
|
|
|
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleFactoryPreBattleRoom_Movement_PlayerWalkToBattleRoomLvOpen
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Movement_PlayerEnterRoom:
|
2018-06-14 01:19:19 +02:00
|
|
|
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_BattleFactoryPreBattleRoom_Movement_PlayerWalkToBattleRoomLv50:
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_up
|
|
|
|
walk_left
|
|
|
|
walk_left
|
|
|
|
walk_up
|
|
|
|
walk_up
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Movement_PlayerWalkToBattleRoomLvOpen:
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_up
|
|
|
|
walk_right
|
|
|
|
walk_right
|
|
|
|
walk_up
|
|
|
|
walk_up
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Movement_AttendantEnterRoom:
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_up
|
|
|
|
walk_up
|
|
|
|
walk_up
|
|
|
|
walk_up
|
|
|
|
walk_up
|
|
|
|
face_down
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Movement_GuideWalkToBattleRoomLv50:
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_left
|
|
|
|
walk_left
|
|
|
|
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_BattleFactoryPreBattleRoom_Movement_GuideWalkToBattleRoomLvOpen:
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_right
|
|
|
|
walk_right
|
|
|
|
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_BattleFactoryPreBattleRoom_Movement_AttendantMoveToReceiveCall:
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_left
|
|
|
|
walk_left
|
|
|
|
walk_left
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Movement_AttendantReturnToPlayer:
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_right
|
|
|
|
walk_right
|
|
|
|
walk_right
|
|
|
|
face_down
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Text_HoldMonsChooseFromSelection:
|
2017-11-10 00:40:08 +01:00
|
|
|
.string "First, we will hold your POKéMON for\n"
|
|
|
|
.string "safekeeping.\p"
|
|
|
|
.string "You may then choose from our\n"
|
|
|
|
.string "selection of POKéMON.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Text_LetUsRestoreMons:
|
2017-11-10 00:40:08 +01:00
|
|
|
.string "Thank you for competing!\n"
|
|
|
|
.string "Let us restore your POKéMON!$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Text_ReadyFor2ndOpponent:
|
2017-11-10 00:40:08 +01:00
|
|
|
.string "The 2nd match is next!\n"
|
|
|
|
.string "Are you ready?$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Text_ReadyFor3rdOpponent:
|
2017-11-10 00:40:08 +01:00
|
|
|
.string "The 3rd match is next!\n"
|
|
|
|
.string "Are you ready?$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Text_ReadyFor4thOpponent:
|
2017-11-10 00:40:08 +01:00
|
|
|
.string "The 4th match is next!\n"
|
|
|
|
.string "Are you ready?$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Text_ReadyFor5thOpponent:
|
2017-11-10 00:40:08 +01:00
|
|
|
.string "The 5th match is next!\n"
|
|
|
|
.string "Are you ready?$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Text_ReadyFor6thOpponent:
|
2017-11-10 00:40:08 +01:00
|
|
|
.string "The 6th match is next!\n"
|
|
|
|
.string "Are you ready?$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Text_ReadyFor7thOpponent:
|
2017-11-10 00:40:08 +01:00
|
|
|
.string "Finally, the 7th match is next!\n"
|
|
|
|
.string "Are you ready?$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Text_SaveAndQuitGame:
|
2017-11-10 00:40:08 +01:00
|
|
|
.string "Would you like to save and quit\n"
|
|
|
|
.string "the game?$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Text_RetireFromChallenge:
|
2017-11-10 00:40:08 +01:00
|
|
|
.string "Would you like to retire from your\n"
|
|
|
|
.string "Battle Swap challenge?$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Text_InvestigatedUpcomingOpponent:
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "I've conducted a little investigation\n"
|
2017-11-10 00:40:08 +01:00
|
|
|
.string "about your upcoming opponent.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInNormalType:
|
2017-11-10 00:40:08 +01:00
|
|
|
.string "The TRAINER is apparently skilled\n"
|
|
|
|
.string "in the handling of the NORMAL type.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInFireType:
|
2017-11-10 00:40:08 +01:00
|
|
|
.string "The TRAINER is apparently skilled\n"
|
|
|
|
.string "in the handling of the FIRE type.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInWaterType:
|
2017-11-10 00:40:08 +01:00
|
|
|
.string "The TRAINER is apparently skilled\n"
|
|
|
|
.string "in the handling of the WATER type.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInElectricType:
|
2017-11-10 00:40:08 +01:00
|
|
|
.string "The TRAINER is apparently skilled\n"
|
|
|
|
.string "in the handling of the ELECTRIC type.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInGrassType:
|
2017-11-10 00:40:08 +01:00
|
|
|
.string "The TRAINER is apparently skilled\n"
|
|
|
|
.string "in the handling of the GRASS type.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInIceType:
|
2017-11-10 00:40:08 +01:00
|
|
|
.string "The TRAINER is apparently skilled\n"
|
|
|
|
.string "in the handling of the ICE type.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInFightingType:
|
2017-11-10 00:40:08 +01:00
|
|
|
.string "The TRAINER is apparently skilled\n"
|
|
|
|
.string "in the handling of the FIGHTING type.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInPoisonType:
|
2017-11-10 00:40:08 +01:00
|
|
|
.string "The TRAINER is apparently skilled\n"
|
|
|
|
.string "in the handling of the POISON type.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInGroundType:
|
2017-11-10 00:40:08 +01:00
|
|
|
.string "The TRAINER is apparently skilled\n"
|
|
|
|
.string "in the handling of the GROUND type.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInFlyingType:
|
2017-11-10 00:40:08 +01:00
|
|
|
.string "The TRAINER is apparently skilled\n"
|
|
|
|
.string "in the handling of the FLYING type.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInPsychicType:
|
2017-11-10 00:40:08 +01:00
|
|
|
.string "The TRAINER is apparently skilled\n"
|
|
|
|
.string "in the handling of the PSYCHIC type.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInBugType:
|
2017-11-10 00:40:08 +01:00
|
|
|
.string "The TRAINER is apparently skilled\n"
|
|
|
|
.string "in the handling of the BUG type.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInRockType:
|
2017-11-10 00:40:08 +01:00
|
|
|
.string "The TRAINER is apparently skilled\n"
|
|
|
|
.string "in the handling of the ROCK type.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInGhostType:
|
2017-11-10 00:40:08 +01:00
|
|
|
.string "The TRAINER is apparently skilled\n"
|
|
|
|
.string "in the handling of the GHOST type.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInDragonType:
|
2017-11-10 00:40:08 +01:00
|
|
|
.string "The TRAINER is apparently skilled\n"
|
|
|
|
.string "in the handling of the DRAGON type.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInDarkType:
|
2017-11-10 00:40:08 +01:00
|
|
|
.string "The TRAINER is apparently skilled\n"
|
|
|
|
.string "in the handling of the DARK type.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerSkilledInSteelType:
|
2017-11-10 00:40:08 +01:00
|
|
|
.string "The TRAINER is apparently skilled\n"
|
|
|
|
.string "in the handling of the STEEL type.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Text_TrainerHasNoClearFavorite:
|
2017-11-10 00:40:08 +01:00
|
|
|
.string "The TRAINER appears to have no clear\n"
|
|
|
|
.string "favorites when it comes to type.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Text_StyleSlowAndSteady:
|
2017-11-10 00:40:08 +01:00
|
|
|
.string "The favorite battle style appears to\n"
|
|
|
|
.string "be slow and steady.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Text_StyleEndurance:
|
2017-11-10 00:40:08 +01:00
|
|
|
.string "The favorite battle style appears to\n"
|
|
|
|
.string "be one of endurance.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Text_StyleHighRisk:
|
2017-11-10 00:40:08 +01:00
|
|
|
.string "The favorite battle style appears to\n"
|
|
|
|
.string "be high risk, high return.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Text_StyleDependsOnFlow:
|
2017-11-10 00:40:08 +01:00
|
|
|
.string "The favorite battle style appears to\n"
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "depend on the battle's flow.$"
|
2017-11-10 00:40:08 +01:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Text_StyleTotalPreparation:
|
2017-11-10 00:40:08 +01:00
|
|
|
.string "The favorite battle style appears to\n"
|
|
|
|
.string "be one based on total preparation.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Text_StyleWeakenFoe:
|
2017-11-10 00:40:08 +01:00
|
|
|
.string "The favorite battle style appears\n"
|
|
|
|
.string "to be weakening the foe to start.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Text_StyleFlexible:
|
2017-11-10 00:40:08 +01:00
|
|
|
.string "The favorite battle style appears to\n"
|
|
|
|
.string "be flexibly adaptable to the situation.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Text_StyleImpossibleToPredict:
|
2017-11-10 00:40:08 +01:00
|
|
|
.string "The favorite battle style appears to\n"
|
|
|
|
.string "be impossible to predict.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Text_StyleUnrestrained:
|
2017-11-10 00:40:08 +01:00
|
|
|
.string "The favorite battle style appears to\n"
|
|
|
|
.string "be free-spirited and unrestrained.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Text_LikeToSwapMon:
|
2017-11-10 00:40:08 +01:00
|
|
|
.string "Before starting the battle, would you\n"
|
|
|
|
.string "like to swap a POKéMON?$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Text_YourSwapIsComplete:
|
2017-11-10 00:40:08 +01:00
|
|
|
.string "Thank you!\n"
|
|
|
|
.string "Your POKéMON swap is complete.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Text_RightThisWay:
|
2017-11-10 00:40:08 +01:00
|
|
|
.string "Right this way, please!$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Text_SavingDataPleaseWait:
|
2017-11-10 00:40:08 +01:00
|
|
|
.string "I am saving your data.\n"
|
|
|
|
.string "Please wait.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Text_RecordLatestBattle:
|
2017-11-10 00:40:08 +01:00
|
|
|
.string "Would you like to record your latest\n"
|
|
|
|
.string "battle on your FRONTIER PASS?$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Text_WaitFewMoments:
|
2017-11-10 00:40:08 +01:00
|
|
|
.string "Excuse me! Excuse me, please!\n"
|
|
|
|
.string "May I get you to wait a few moments?$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Text_UnderstoodSirWillDo:
|
2017-11-10 00:40:08 +01:00
|
|
|
.string "…Uh-huh? What?! …Whoa!\n"
|
|
|
|
.string "Understood, sir! Will do!$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Text_MessageFromHeadComeRightNow:
|
2017-11-10 00:40:08 +01:00
|
|
|
.string "Oh, my…\n"
|
|
|
|
.string "Sorry to keep you waiting!\p"
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "I have a message from this facility's\n"
|
2017-11-10 00:40:08 +01:00
|
|
|
.string "boss, the FACTORY HEAD.\p"
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "He says, “We're going to do it!\n"
|
2017-11-10 00:40:08 +01:00
|
|
|
.string "Come here right now!”$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Text_PreparedToFaceHead:
|
2017-11-10 00:40:08 +01:00
|
|
|
.string "The FACTORY HEAD is demanding you.\n"
|
|
|
|
.string "Are you prepared to face him?$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleFactoryPreBattleRoom_Text_CantTellAnythingAboutHead:
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "I'm terribly sorry, but I can't tell you\n"
|
2017-11-10 00:40:08 +01:00
|
|
|
.string "anything about the FACTORY HEAD.$"
|