2020-06-21 07:56:57 +02:00
|
|
|
.set LOCALID_ATTENDANT, 1
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattlePikeCorridor_MapScripts::
|
2019-12-09 08:10:42 +01:00
|
|
|
map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattlePikeCorridor_OnFrame
|
|
|
|
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattlePikeCorridor_OnWarp
|
2017-11-10 02:21:31 +01:00
|
|
|
.byte 0
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattlePikeCorridor_OnFrame:
|
2019-12-09 08:10:42 +01:00
|
|
|
map_script_2 VAR_TEMP_0, 0, BattleFrontier_BattlePikeCorridor_EventScript_EnterCorridor
|
2017-11-10 02:21:31 +01:00
|
|
|
.2byte 0
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattlePikeCorridor_EventScript_EnterCorridor::
|
2017-11-10 02:21:31 +01:00
|
|
|
delay 16
|
2019-11-24 22:58:40 +01:00
|
|
|
frontier_set FRONTIER_DATA_BATTLE_NUM, 1
|
2019-11-29 08:00:19 +01:00
|
|
|
pike_cleartrainerids
|
|
|
|
pike_nohealing TRUE
|
2019-12-11 07:09:06 +01:00
|
|
|
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattlePikeCorridor_Movement_PlayerEnterCorridor
|
2020-06-21 07:56:57 +02:00
|
|
|
applymovement LOCALID_ATTENDANT, BattleFrontier_BattlePikeCorridor_Movement_AttendantEnterCorridor
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmovement 0
|
|
|
|
lockall
|
2019-11-21 03:46:29 +01:00
|
|
|
msgbox BattleFrontier_BattlePikeCorridor_Text_YourChallengeHasBegun, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
closemessage
|
|
|
|
releaseall
|
2019-12-11 07:09:06 +01:00
|
|
|
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattlePikeCorridor_Movement_PlayerExitCorridor
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmovement 0
|
2019-11-24 22:58:40 +01:00
|
|
|
frontier_set FRONTIER_DATA_CHALLENGE_STATUS, 99
|
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
|
2017-11-10 02:21:31 +01:00
|
|
|
waitstate
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattlePikeCorridor_OnWarp:
|
2019-12-09 08:10:42 +01:00
|
|
|
map_script_2 VAR_TEMP_1, 0, BattleFrontier_BattlePikeCorridor_EventScript_TurnPlayerNorth
|
2017-11-10 02:21:31 +01:00
|
|
|
.2byte 0
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattlePikeCorridor_EventScript_TurnPlayerNorth::
|
2018-05-19 18:02:43 +02:00
|
|
|
setvar VAR_TEMP_1, 1
|
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_BattlePikeCorridor_Movement_PlayerEnterCorridor:
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_up
|
|
|
|
walk_up
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattlePikeCorridor_Movement_PlayerExitCorridor:
|
2018-06-14 01:19:19 +02:00
|
|
|
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_BattlePikeCorridor_Movement_AttendantEnterCorridor:
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_up
|
|
|
|
walk_up
|
|
|
|
walk_left
|
|
|
|
face_down
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattlePikeCorridor_Text_YourChallengeHasBegun:
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "Your Battle Choice challenge\n"
|
|
|
|
.string "has now begun…$"
|
|
|
|
|