2020-06-21 07:56:57 +02:00
|
|
|
.set LOCALID_ATTENDANT, 1
|
|
|
|
|
2017-11-10 02:21:31 +01:00
|
|
|
BattleFrontier_BattleTowerElevator_MapScripts:: @ 82419DB
|
2020-01-08 11:43:06 +01:00
|
|
|
map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattleTowerElevator_OnFrame
|
|
|
|
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattleTowerElevator_OnWarp
|
2017-11-10 02:21:31 +01:00
|
|
|
.byte 0
|
|
|
|
|
2020-01-08 11:43:06 +01:00
|
|
|
BattleFrontier_BattleTowerElevator_OnFrame: @ 82419E6
|
|
|
|
map_script_2 VAR_TEMP_0, 0, BattleFrontier_BattleTowerElevator_EventScript_EnterElevator
|
2017-11-10 02:21:31 +01:00
|
|
|
.2byte 0
|
|
|
|
|
2020-01-08 11:43:06 +01:00
|
|
|
BattleFrontier_BattleTowerElevator_EventScript_EnterElevator:: @ 82419F0
|
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_BattleTowerElevator_Movement_AttendantEnter
|
2020-01-08 11:43:06 +01:00
|
|
|
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleTowerElevator_Movement_PlayerEnter
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmovement 0
|
2019-09-14 02:22:09 +02:00
|
|
|
special BufferBattleTowerElevatorFloors
|
2017-11-10 02:21:31 +01:00
|
|
|
waitse
|
2019-09-14 02:22:09 +02:00
|
|
|
special MoveElevator
|
2017-11-10 02:21:31 +01:00
|
|
|
waitstate
|
|
|
|
delay 48
|
2020-06-21 07:56:57 +02:00
|
|
|
applymovement LOCALID_ATTENDANT, BattleFrontier_BattleTowerElevator_Movement_AttendantExit
|
2020-01-08 11:43:06 +01:00
|
|
|
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleTowerElevator_Movement_PlayerExit
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmovement 0
|
2020-01-08 11:43:06 +01:00
|
|
|
call BattleFrontier_BattleTowerElevator_EventScript_WarpToNextRoom
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2020-01-08 11:43:06 +01:00
|
|
|
BattleFrontier_BattleTowerElevator_EventScript_WarpToNextRoom:: @ 8241A28
|
2019-11-24 22:58:40 +01:00
|
|
|
compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_SINGLES
|
2020-01-08 11:43:06 +01:00
|
|
|
call_if_eq BattleFrontier_BattleTowerElevator_EventScript_WarpToCorridor
|
2019-11-24 22:58:40 +01:00
|
|
|
compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_DOUBLES
|
2020-01-08 11:43:06 +01:00
|
|
|
call_if_eq BattleFrontier_BattleTowerElevator_EventScript_WarpToCorridor
|
2019-11-24 22:58:40 +01:00
|
|
|
compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_MULTIS
|
2020-01-08 11:43:06 +01:00
|
|
|
call_if_eq BattleFrontier_BattleTowerElevator_EventScript_WarpToNextRoomMulti
|
2019-11-24 22:58:40 +01:00
|
|
|
compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_LINK_MULTIS
|
2020-01-08 11:43:06 +01:00
|
|
|
call_if_eq BattleFrontier_BattleTowerElevator_EventScript_WarpToCorridorMulti
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2020-01-08 11:43:06 +01:00
|
|
|
BattleFrontier_BattleTowerElevator_EventScript_WarpToCorridor:: @ 8241A55
|
2018-06-15 05:00:09 +02:00
|
|
|
warp MAP_BATTLE_FRONTIER_BATTLE_TOWER_CORRIDOR, 255, 8, 1
|
2017-11-10 02:21:31 +01:00
|
|
|
waitstate
|
|
|
|
return
|
|
|
|
|
2020-01-08 11:43:06 +01:00
|
|
|
BattleFrontier_BattleTowerElevator_EventScript_WarpToNextRoomMulti:: @ 8241A5F
|
|
|
|
goto_if_unset FLAG_CHOSEN_MULTI_BATTLE_NPC_PARTNER, BattleFrontier_BattleTowerElevator_EventScript_WarpToPartnerRoom
|
|
|
|
warp MAP_BATTLE_FRONTIER_BATTLE_TOWER_MULTI_CORRIDOR, 255, 7, 2
|
2017-11-10 02:21:31 +01:00
|
|
|
waitstate
|
|
|
|
return
|
|
|
|
|
2020-01-08 11:43:06 +01:00
|
|
|
BattleFrontier_BattleTowerElevator_EventScript_WarpToCorridorMulti:: @ 8241A72
|
|
|
|
warp MAP_BATTLE_FRONTIER_BATTLE_TOWER_MULTI_CORRIDOR, 255, 7, 2
|
2017-11-10 02:21:31 +01:00
|
|
|
waitstate
|
|
|
|
return
|
|
|
|
|
2020-01-08 11:43:06 +01:00
|
|
|
BattleFrontier_BattleTowerElevator_EventScript_WarpToPartnerRoom:: @ 8241A7C
|
|
|
|
warp MAP_BATTLE_FRONTIER_BATTLE_TOWER_MULTI_PARTNER_ROOM, 255, 10, 1
|
2017-11-10 02:21:31 +01:00
|
|
|
waitstate
|
|
|
|
return
|
|
|
|
|
2020-01-08 11:43:06 +01:00
|
|
|
BattleFrontier_BattleTowerElevator_Movement_AttendantEnter: @ 8241A86
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_up
|
|
|
|
walk_right
|
|
|
|
face_down
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
2020-01-08 11:43:06 +01:00
|
|
|
BattleFrontier_BattleTowerElevator_Movement_PlayerEnter: @ 8241A8A
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_up
|
|
|
|
walk_up
|
|
|
|
face_down
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
2020-01-08 11:43:06 +01:00
|
|
|
BattleFrontier_BattleTowerElevator_Movement_AttendantExit: @ 8241A8E
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_down
|
|
|
|
walk_down
|
|
|
|
set_invisible
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
2020-01-08 11:43:06 +01:00
|
|
|
BattleFrontier_BattleTowerElevator_Movement_PlayerExit: @ 8241A92
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_right
|
|
|
|
walk_down
|
|
|
|
walk_down
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
2020-01-08 11:43:06 +01:00
|
|
|
BattleFrontier_BattleTowerElevator_OnWarp: @ 8241A96
|
|
|
|
map_script_2 VAR_TEMP_1, 0, BattleFrontier_BattleTowerElevator_EventScript_TurnPlayerNorth
|
2017-11-10 02:21:31 +01:00
|
|
|
.2byte 0
|
|
|
|
|
2020-01-08 11:43:06 +01:00
|
|
|
BattleFrontier_BattleTowerElevator_EventScript_TurnPlayerNorth:: @ 8241AA0
|
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
|
|
|
|
|