2020-06-21 07:56:57 +02:00
|
|
|
.set LOCALID_ATTENDANT, 1
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattlePikeRoomFinal_MapScripts::
|
2019-11-21 03:46:29 +01:00
|
|
|
map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattlePikeRoomFinal_OnFrame
|
|
|
|
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattlePikeRoomFinal_OnWarp
|
|
|
|
.byte 0
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattlePikeRoomFinal_OnFrame:
|
2019-12-09 08:10:42 +01:00
|
|
|
map_script_2 VAR_TEMP_0, 0, BattleFrontier_BattlePikeRoomFinal_EventScript_EnterRoom
|
2019-11-21 03:46:29 +01:00
|
|
|
.2byte 0
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattlePikeRoomFinal_EventScript_EnterRoom::
|
2019-11-21 03:46:29 +01:00
|
|
|
delay 16
|
2020-06-21 07:56:57 +02:00
|
|
|
applymovement LOCALID_ATTENDANT, BattleFrontier_BattlePikeRoomFinal_Movement_AttendantApproachPlayer
|
2019-11-21 03:46:29 +01:00
|
|
|
waitmovement 0
|
2019-11-24 22:58:40 +01:00
|
|
|
frontier_set FRONTIER_DATA_CHALLENGE_STATUS, CHALLENGE_STATUS_WON
|
2019-11-21 03:46:29 +01:00
|
|
|
lockall
|
|
|
|
msgbox BattleFrontier_BattlePikeRoomFinal_Text_CongratsThisWayPlease, MSGBOX_DEFAULT
|
|
|
|
closemessage
|
|
|
|
releaseall
|
2021-11-15 18:04:54 +01:00
|
|
|
warp MAP_BATTLE_FRONTIER_BATTLE_PIKE_LOBBY, 5, 6
|
2019-11-21 03:46:29 +01:00
|
|
|
waitstate
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattlePikeRoomFinal_Movement_AttendantApproachPlayer:
|
2019-11-21 03:46:29 +01:00
|
|
|
walk_down
|
|
|
|
walk_down
|
|
|
|
step_end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattlePikeRoomFinal_OnWarp:
|
2019-11-21 03:46:29 +01:00
|
|
|
map_script_2 VAR_TEMP_4, 0, BattleFrontier_BattlePikeRoomFinal_EventScript_TurnPlayerNorth
|
|
|
|
.2byte 0
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattlePikeRoomFinal_EventScript_TurnPlayerNorth::
|
2019-11-21 03:46:29 +01:00
|
|
|
setvar VAR_TEMP_4, 1
|
2019-11-26 02:00:04 +01:00
|
|
|
turnobject OBJ_EVENT_ID_PLAYER, DIR_NORTH
|
2019-11-21 03:46:29 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattlePikeRoomFinal_Text_CongratsThisWayPlease:
|
2019-11-21 03:46:29 +01:00
|
|
|
.string "Congratulations…\n"
|
|
|
|
.string "Now, this way, please…$"
|
|
|
|
|