2020-06-21 07:56:57 +02:00
|
|
|
@ Note: LOCALIDs shared with BattleFrontier_BattlePikeRoomNormal
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattlePikeRoom_MapScripts:
|
2019-11-21 03:46:29 +01:00
|
|
|
map_script MAP_SCRIPT_ON_TRANSITION, BattleFrontier_BattlePikeRoom_OnTransition
|
|
|
|
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattlePikeRoom_OnWarp
|
2019-09-27 18:22:58 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattlePikeRoom_OnTransition:
|
2019-11-29 08:00:19 +01:00
|
|
|
pike_setroomobjects
|
|
|
|
pike_getroomtype
|
2019-10-05 16:52:48 +02:00
|
|
|
switch VAR_RESULT
|
2019-12-09 08:10:42 +01:00
|
|
|
case PIKE_ROOM_SINGLE_BATTLE, BattleFrontier_BattlePikeRoomNormal_EventScript_SetOneObjectRoomPos
|
|
|
|
case PIKE_ROOM_HEAL_FULL, BattleFrontier_BattlePikeRoomNormal_EventScript_SetOneObjectRoomPos
|
|
|
|
case PIKE_ROOM_NPC, BattleFrontier_BattlePikeRoomNormal_EventScript_SetNPCRoomObjPos
|
|
|
|
case PIKE_ROOM_STATUS, BattleFrontier_BattlePikeRoomNormal_EventScript_SetTwoObjectRoomPos
|
|
|
|
case PIKE_ROOM_HEAL_PART, BattleFrontier_BattlePikeRoomNormal_EventScript_SetOneObjectRoomPos
|
|
|
|
case PIKE_ROOM_DOUBLE_BATTLE, BattleFrontier_BattlePikeRoomNormal_EventScript_SetDoubleBattleObjPos
|
|
|
|
case PIKE_ROOM_HARD_BATTLE, BattleFrontier_BattlePikeRoomNormal_EventScript_SetTwoObjectRoomPos
|
|
|
|
case PIKE_ROOM_BRAIN, BattleFrontier_BattlePikeRoomNormal_EventScript_SetBrainRoomObjPos
|
2019-10-05 16:52:48 +02:00
|
|
|
end
|
2019-09-27 18:22:58 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattlePikeRoomNormal_EventScript_SetDoubleBattleObjPos::
|
2020-06-21 07:56:57 +02:00
|
|
|
setobjectxyperm LOCALID_OBJ_0, 2, 5
|
|
|
|
setobjectxyperm LOCALID_OBJ_1, 6, 5
|
2019-10-05 16:52:48 +02:00
|
|
|
end
|
2019-09-27 18:22:58 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattlePikeRoomNormal_EventScript_SetTwoObjectRoomPos::
|
2020-06-21 07:56:57 +02:00
|
|
|
setobjectxyperm LOCALID_OBJ_0, 4, 4
|
|
|
|
setobjectxyperm LOCALID_OBJ_1, 3, 4
|
2019-10-05 16:52:48 +02:00
|
|
|
end
|
2019-09-27 18:22:58 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattlePikeRoomNormal_EventScript_SetOneObjectRoomPos::
|
2020-06-21 07:56:57 +02:00
|
|
|
setobjectxyperm LOCALID_OBJ_0, 4, 4
|
|
|
|
setobjectxyperm LOCALID_OBJ_1, 0, 0
|
2019-10-05 16:52:48 +02:00
|
|
|
end
|
2019-09-27 18:22:58 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattlePikeRoomNormal_EventScript_SetNPCRoomObjPos::
|
2020-06-21 07:56:57 +02:00
|
|
|
setobjectxyperm LOCALID_OBJ_0, 5, 5
|
|
|
|
setobjectxyperm LOCALID_OBJ_1, 0, 0
|
2019-10-05 16:52:48 +02:00
|
|
|
end
|
2019-09-27 18:22:58 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattlePikeRoomNormal_EventScript_SetBrainRoomObjPos::
|
2020-06-21 07:56:57 +02:00
|
|
|
setobjectxyperm LOCALID_OBJ_0, 4, 3
|
|
|
|
setobjectxyperm LOCALID_OBJ_1, 4, 4
|
2019-10-05 16:52:48 +02:00
|
|
|
end
|
2019-09-27 18:22:58 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattlePikeRoom_OnWarp:
|
2019-12-09 08:10:42 +01:00
|
|
|
map_script_2 VAR_TEMP_4, 0, BattleFrontier_BattlePikeRoomNormal_EventScript_InitRoomObjects
|
2019-10-05 16:52:48 +02:00
|
|
|
.2byte 0
|
2019-09-27 18:22:58 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattlePikeRoomNormal_EventScript_InitRoomObjects::
|
2019-11-21 05:12:51 +01:00
|
|
|
setvar VAR_OBJ_GFX_ID_1, OBJ_EVENT_GFX_LINK_RECEPTIONIST
|
|
|
|
setvar VAR_OBJ_GFX_ID_0, OBJ_EVENT_GFX_LINK_RECEPTIONIST
|
2019-11-29 08:00:19 +01:00
|
|
|
pike_getroomtype
|
2019-11-21 03:46:29 +01:00
|
|
|
compare VAR_RESULT, PIKE_ROOM_STATUS
|
2019-12-09 08:10:42 +01:00
|
|
|
goto_if_eq BattleFrontier_BattlePikeRoomNormal_EventScript_InitTwoObjectRoom
|
2019-11-21 03:46:29 +01:00
|
|
|
compare VAR_RESULT, PIKE_ROOM_HARD_BATTLE
|
2019-12-09 08:10:42 +01:00
|
|
|
goto_if_eq BattleFrontier_BattlePikeRoomNormal_EventScript_InitTwoObjectRoom
|
2019-11-21 03:46:29 +01:00
|
|
|
compare VAR_RESULT, PIKE_ROOM_DOUBLE_BATTLE
|
2019-12-09 08:10:42 +01:00
|
|
|
goto_if_eq BattleFrontier_BattlePikeRoomNormal_EventScript_InitTwoObjectRoom
|
2019-11-21 03:46:29 +01:00
|
|
|
compare VAR_RESULT, PIKE_ROOM_BRAIN
|
2019-12-09 08:10:42 +01:00
|
|
|
goto_if_eq BattleFrontier_BattlePikeRoomNormal_EventScript_InitBrainRoomObjects
|
2020-06-21 07:56:57 +02:00
|
|
|
hideobjectat LOCALID_OBJ_1, MAP_BATTLE_FRONTIER_BATTLE_PIKE_ROOM_NORMAL
|
2019-10-05 16:52:48 +02:00
|
|
|
setvar VAR_TEMP_4, 1
|
2019-11-21 05:12:51 +01:00
|
|
|
turnobject OBJ_EVENT_ID_PLAYER, DIR_NORTH
|
2019-10-05 16:52:48 +02:00
|
|
|
end
|
2019-09-27 18:22:58 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattlePikeRoomNormal_EventScript_InitTwoObjectRoom::
|
2019-10-05 16:52:48 +02:00
|
|
|
setvar VAR_TEMP_4, 1
|
2019-11-21 05:12:51 +01:00
|
|
|
turnobject OBJ_EVENT_ID_PLAYER, DIR_NORTH
|
2019-10-05 16:52:48 +02:00
|
|
|
end
|
2019-09-27 18:22:58 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattlePikeRoomNormal_EventScript_InitBrainRoomObjects::
|
2019-10-05 16:52:48 +02:00
|
|
|
setvar VAR_TEMP_4, 1
|
2019-11-21 05:12:51 +01:00
|
|
|
turnobject OBJ_EVENT_ID_PLAYER, DIR_NORTH
|
2020-06-21 07:56:57 +02:00
|
|
|
hideobjectat LOCALID_OBJ_0, MAP_BATTLE_FRONTIER_BATTLE_PIKE_ROOM_NORMAL @ Pike Queen hidden initially
|
2019-10-05 16:52:48 +02:00
|
|
|
end
|
2019-09-27 18:22:58 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattlePikeThreePathRoom_EventScript_LeftRoomWarp::
|
2019-11-21 03:46:29 +01:00
|
|
|
setvar VAR_0x8007, PIKE_ROOM_LEFT
|
|
|
|
goto BattleFrontier_BattlePikeThreePathRoom_EventScript_RoomWarp
|
2019-10-05 16:52:48 +02:00
|
|
|
end
|
2019-09-27 18:22:58 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattlePikeThreePathRoom_EventScript_CenterRoomWarp::
|
2019-11-21 03:46:29 +01:00
|
|
|
setvar VAR_0x8007, PIKE_ROOM_CENTER
|
|
|
|
goto BattleFrontier_BattlePikeThreePathRoom_EventScript_RoomWarp
|
2019-10-05 16:52:48 +02:00
|
|
|
end
|
2019-09-27 18:22:58 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattlePikeThreePathRoom_EventScript_RightRoomWarp::
|
2019-11-21 03:46:29 +01:00
|
|
|
setvar VAR_0x8007, PIKE_ROOM_RIGHT
|
|
|
|
goto BattleFrontier_BattlePikeThreePathRoom_EventScript_RoomWarp
|
2019-10-05 16:52:48 +02:00
|
|
|
end
|
2019-09-27 18:22:58 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattlePikeThreePathRoom_EventScript_RoomWarp::
|
2019-11-29 08:00:19 +01:00
|
|
|
pike_get PIKE_DATA_WIN_STREAK
|
2019-10-05 16:52:48 +02:00
|
|
|
addvar VAR_RESULT, 1
|
2019-11-29 08:00:19 +01:00
|
|
|
pike_set PIKE_DATA_WIN_STREAK, VAR_RESULT
|
2019-11-24 22:58:40 +01:00
|
|
|
frontier_get FRONTIER_DATA_BATTLE_NUM
|
2019-10-05 16:52:48 +02:00
|
|
|
addvar VAR_RESULT, 1
|
2019-11-24 22:58:40 +01:00
|
|
|
frontier_set FRONTIER_DATA_BATTLE_NUM, VAR_RESULT
|
2019-11-29 08:00:19 +01:00
|
|
|
pike_setnextroom
|
|
|
|
pike_getroomtype
|
2019-10-05 16:52:48 +02:00
|
|
|
switch VAR_RESULT
|
2019-11-21 03:46:29 +01:00
|
|
|
case PIKE_ROOM_SINGLE_BATTLE, BattleFrontier_BattlePikeThreePathRoom_EventScript_WarpNPCRoom
|
|
|
|
case PIKE_ROOM_HEAL_FULL, BattleFrontier_BattlePikeThreePathRoom_EventScript_WarpNPCRoom
|
|
|
|
case PIKE_ROOM_NPC, BattleFrontier_BattlePikeThreePathRoom_EventScript_WarpNPCRoom
|
|
|
|
case PIKE_ROOM_STATUS, BattleFrontier_BattlePikeThreePathRoom_EventScript_WarpNPCRoom
|
|
|
|
case PIKE_ROOM_HEAL_PART, BattleFrontier_BattlePikeThreePathRoom_EventScript_WarpNPCRoom
|
|
|
|
case PIKE_ROOM_WILD_MONS, BattleFrontier_BattlePikeThreePathRoom_EventScript_WarpWildMonRoom
|
|
|
|
case PIKE_ROOM_HARD_BATTLE, BattleFrontier_BattlePikeThreePathRoom_EventScript_WarpNPCRoom
|
|
|
|
case PIKE_ROOM_DOUBLE_BATTLE, BattleFrontier_BattlePikeThreePathRoom_EventScript_WarpNPCRoom
|
|
|
|
case PIKE_ROOM_BRAIN, BattleFrontier_BattlePikeThreePathRoom_EventScript_WarpNPCRoom
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattlePikeThreePathRoom_EventScript_WarpNPCRoom::
|
2019-11-26 02:00:04 +01:00
|
|
|
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattlePikeRoom_Movement_HidePlayer
|
2019-10-05 16:52:48 +02:00
|
|
|
waitmovement 0
|
2019-11-21 03:46:29 +01:00
|
|
|
call BattleFrontier_BattlePike_EventScript_CloseCurtain
|
2021-11-15 18:04:54 +01:00
|
|
|
warpsilent MAP_BATTLE_FRONTIER_BATTLE_PIKE_ROOM_NORMAL, 4, 7
|
2019-10-05 16:52:48 +02:00
|
|
|
waitstate
|
|
|
|
end
|
2019-09-27 18:22:58 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattlePikeThreePathRoom_EventScript_WarpWildMonRoom::
|
2019-11-26 02:00:04 +01:00
|
|
|
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattlePikeRoom_Movement_HidePlayer
|
2019-10-05 16:52:48 +02:00
|
|
|
waitmovement 0
|
2019-11-21 03:46:29 +01:00
|
|
|
call BattleFrontier_BattlePike_EventScript_CloseCurtain
|
2021-11-15 18:04:54 +01:00
|
|
|
warpsilent MAP_BATTLE_FRONTIER_BATTLE_PIKE_ROOM_WILD_MONS, 4, 19
|
2019-10-05 16:52:48 +02:00
|
|
|
waitstate
|
|
|
|
end
|
2019-09-27 18:22:58 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattlePikeThreePathRoom_EventScript_SetEnteredRoom::
|
2019-10-05 16:52:48 +02:00
|
|
|
setvar VAR_TEMP_3, 1
|
|
|
|
setvar VAR_TEMP_2, 1
|
|
|
|
end
|
2019-09-27 18:22:58 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattlePikeThreePathRoom_EventScript_NoTurningBack::
|
2019-10-05 16:52:48 +02:00
|
|
|
setvar VAR_TEMP_3, 0
|
|
|
|
setvar VAR_TEMP_2, 0
|
|
|
|
lockall
|
2019-11-21 03:46:29 +01:00
|
|
|
msgbox BattleFrontier_BattlePike_Text_PathBlockedNoTurningBack, MSGBOX_DEFAULT
|
2019-10-05 16:52:48 +02:00
|
|
|
closemessage
|
|
|
|
end
|
2019-09-27 18:22:58 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattlePikeRoomNormal_EventScript_SetEnteredRoom::
|
2019-10-05 16:52:48 +02:00
|
|
|
setvar VAR_TEMP_3, 1
|
|
|
|
setvar VAR_TEMP_2, 1
|
|
|
|
end
|
2019-09-27 18:22:58 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattlePikeRoomNormal_EventScript_NoTurningBack::
|
2019-10-05 16:52:48 +02:00
|
|
|
setvar VAR_TEMP_3, 0
|
|
|
|
setvar VAR_TEMP_2, 0
|
|
|
|
lockall
|
2019-11-21 03:46:29 +01:00
|
|
|
msgbox BattleFrontier_BattlePike_Text_PathBlockedNoTurningBack, MSGBOX_DEFAULT
|
2019-10-05 16:52:48 +02:00
|
|
|
closemessage
|
|
|
|
end
|
2019-09-27 18:22:58 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattlePikeRoomNormal_EventScript_Exit::
|
2019-11-29 08:00:19 +01:00
|
|
|
pike_ispartyfullhealth
|
2019-11-21 03:46:29 +01:00
|
|
|
compare VAR_RESULT, TRUE
|
|
|
|
call_if_eq BattleFrontier_BattlePikeRoom_EventScript_DisableHealing
|
|
|
|
compare VAR_RESULT, TRUE
|
|
|
|
call_if_ne BattleFrontier_BattlePikeRoom_EventScript_EnableHealing
|
2019-11-29 08:00:19 +01:00
|
|
|
pike_get PIKE_DATA_WIN_STREAK
|
2019-10-05 16:52:48 +02:00
|
|
|
addvar VAR_RESULT, 1
|
2019-11-29 08:00:19 +01:00
|
|
|
pike_set PIKE_DATA_WIN_STREAK, VAR_RESULT
|
2019-11-24 22:58:40 +01:00
|
|
|
frontier_get FRONTIER_DATA_BATTLE_NUM
|
2019-10-05 16:52:48 +02:00
|
|
|
addvar VAR_RESULT, 1
|
2019-11-24 22:58:40 +01:00
|
|
|
frontier_set FRONTIER_DATA_BATTLE_NUM, VAR_RESULT
|
2019-11-29 08:00:19 +01:00
|
|
|
pike_isfinalroom
|
2019-11-21 03:46:29 +01:00
|
|
|
compare VAR_RESULT, TRUE
|
|
|
|
call_if_eq BattleFrontier_BattlePikeRoom_EventScript_WarpToFinalRoom
|
|
|
|
compare VAR_RESULT, FALSE
|
|
|
|
call_if_eq BattleFrontier_BattlePikeRoom_EventScript_WarpToThreePathRoom
|
2019-10-05 16:52:48 +02:00
|
|
|
waitstate
|
|
|
|
end
|
2019-09-27 18:22:58 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattlePikeRoom_EventScript_DisableHealing::
|
2019-11-29 08:00:19 +01:00
|
|
|
pike_nohealing TRUE
|
2019-10-05 16:52:48 +02:00
|
|
|
return
|
2019-09-27 18:22:58 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattlePikeRoom_EventScript_EnableHealing::
|
2019-11-29 08:00:19 +01:00
|
|
|
pike_nohealing FALSE
|
2019-10-05 16:52:48 +02:00
|
|
|
return
|
2019-09-27 18:22:58 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattlePikeRoom_EventScript_WarpToFinalRoom::
|
2019-11-26 02:00:04 +01:00
|
|
|
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattlePikeRoom_Movement_HidePlayer
|
2019-10-05 16:52:48 +02:00
|
|
|
waitmovement 0
|
2019-11-21 03:46:29 +01:00
|
|
|
call BattleFrontier_BattlePike_EventScript_CloseCurtain
|
2021-11-15 18:04:54 +01:00
|
|
|
warpsilent MAP_BATTLE_FRONTIER_BATTLE_PIKE_ROOM_FINAL, 2, 7
|
2019-10-05 16:52:48 +02:00
|
|
|
return
|
2019-09-27 18:22:58 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattlePikeRoom_EventScript_WarpToThreePathRoom::
|
2019-11-26 02:00:04 +01:00
|
|
|
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattlePikeRoom_Movement_HidePlayer
|
2019-10-05 16:52:48 +02:00
|
|
|
waitmovement 0
|
2019-11-21 03:46:29 +01:00
|
|
|
call BattleFrontier_BattlePike_EventScript_CloseCurtain
|
2021-11-15 18:04:54 +01:00
|
|
|
warpsilent MAP_BATTLE_FRONTIER_BATTLE_PIKE_THREE_PATH_ROOM, 6, 10
|
2019-10-05 16:52:48 +02:00
|
|
|
return
|
2019-09-27 18:22:58 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattlePikeRoomWildMons_EventScript_Exit::
|
2019-11-29 08:00:19 +01:00
|
|
|
pike_exitwildmonroom
|
|
|
|
pike_ispartyfullhealth
|
2019-11-21 03:46:29 +01:00
|
|
|
compare VAR_RESULT, TRUE
|
|
|
|
call_if_eq BattleFrontier_BattlePikeRoom_EventScript_DisableHealing
|
|
|
|
compare VAR_RESULT, TRUE
|
|
|
|
call_if_ne BattleFrontier_BattlePikeRoom_EventScript_EnableHealing
|
2019-11-29 08:00:19 +01:00
|
|
|
pike_get PIKE_DATA_WIN_STREAK
|
2019-10-05 16:52:48 +02:00
|
|
|
addvar VAR_RESULT, 1
|
2019-11-29 08:00:19 +01:00
|
|
|
pike_set PIKE_DATA_WIN_STREAK, VAR_RESULT
|
2019-11-24 22:58:40 +01:00
|
|
|
frontier_get FRONTIER_DATA_BATTLE_NUM
|
2019-10-05 16:52:48 +02:00
|
|
|
addvar VAR_RESULT, 1
|
2019-11-24 22:58:40 +01:00
|
|
|
frontier_set FRONTIER_DATA_BATTLE_NUM, VAR_RESULT
|
2019-11-29 08:00:19 +01:00
|
|
|
pike_isfinalroom
|
2019-11-21 03:46:29 +01:00
|
|
|
compare VAR_RESULT, TRUE
|
|
|
|
call_if_eq BattleFrontier_BattlePikeRoom_EventScript_WarpToFinalRoom
|
|
|
|
compare VAR_RESULT, FALSE
|
|
|
|
call_if_eq BattleFrontier_BattlePikeRoom_EventScript_WarpToThreePathRoom
|
2019-10-05 16:52:48 +02:00
|
|
|
waitstate
|
|
|
|
end
|
2019-09-27 18:22:58 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattlePikeRoomWildMons_EventScript_SetEnteredRoom::
|
2019-10-05 16:52:48 +02:00
|
|
|
setvar VAR_TEMP_3, 1
|
|
|
|
setvar VAR_TEMP_2, 1
|
|
|
|
end
|
2019-09-27 18:22:58 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattlePikeRoomWildMons_EventScript_NoTurningBack::
|
2019-10-05 16:52:48 +02:00
|
|
|
setvar VAR_TEMP_3, 0
|
|
|
|
setvar VAR_TEMP_2, 0
|
|
|
|
lockall
|
2019-11-21 03:46:29 +01:00
|
|
|
msgbox BattleFrontier_BattlePike_Text_PathBlockedNoTurningBack, MSGBOX_DEFAULT
|
2019-10-05 16:52:48 +02:00
|
|
|
closemessage
|
|
|
|
end
|
2019-09-27 18:22:58 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattlePike_EventScript_Retire::
|
2019-11-24 22:58:40 +01:00
|
|
|
frontier_set FRONTIER_DATA_CHALLENGE_STATUS CHALLENGE_STATUS_LOST
|
2021-11-15 18:04:54 +01:00
|
|
|
warp MAP_BATTLE_FRONTIER_BATTLE_PIKE_LOBBY, 5, 6
|
2019-10-05 16:52:48 +02:00
|
|
|
waitstate
|
|
|
|
end
|
2019-09-27 18:22:58 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattlePikeRoom_OnResume:
|
2019-12-09 08:10:42 +01:00
|
|
|
setorcopyvar VAR_0x8006, VAR_RESULT @ Save VAR_RESULT from being overwritten
|
2019-11-24 22:58:40 +01:00
|
|
|
frontier_get FRONTIER_DATA_CHALLENGE_STATUS
|
|
|
|
compare VAR_RESULT, CHALLENGE_STATUS_PAUSED
|
2019-12-09 08:10:42 +01:00
|
|
|
goto_if_eq BattleFrontier_BattlePikeThreePathRoom_EventScript_EndOnResume
|
2019-11-24 22:58:40 +01:00
|
|
|
compare VAR_RESULT, CHALLENGE_STATUS_SAVING
|
2019-12-09 08:10:42 +01:00
|
|
|
goto_if_eq BattleFrontier_BattlePikeThreePathRoom_EventScript_EndOnResume
|
2019-11-21 03:46:29 +01:00
|
|
|
call BattleFrontier_BattlePikeRoom_EventScript_ResetSketchedMoves
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattlePikeThreePathRoom_EventScript_EndOnResume::
|
2019-10-05 16:52:48 +02:00
|
|
|
setorcopyvar VAR_RESULT, VAR_0x8006
|
|
|
|
end
|
2019-09-27 18:22:58 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattlePikeRoom_EventScript_ResetSketchedMoves::
|
2019-11-21 03:46:29 +01:00
|
|
|
frontier_resetsketch
|
2019-10-05 16:52:48 +02:00
|
|
|
return
|
2019-09-27 18:22:58 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattlePikeRoom_Movement_HidePlayer:
|
2019-10-05 16:52:48 +02:00
|
|
|
set_invisible
|
|
|
|
step_end
|