2020-06-21 07:56:57 +02:00
|
|
|
.set LOCALID_ATTENDANT, 1
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleTowerCorridor_MapScripts::
|
2020-01-08 11:43:06 +01:00
|
|
|
map_script MAP_SCRIPT_ON_LOAD, BattleFrontier_BattleTowerCorridor_OnLoad
|
|
|
|
map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattleTowerCorridor_OnFrame
|
2017-11-10 02:21:31 +01:00
|
|
|
.byte 0
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleTowerCorridor_OnLoad:
|
2021-11-19 05:06:30 +01:00
|
|
|
goto_if_eq VAR_0x8006, 1, BattleFrontier_BattleTowerCorridor_EventScript_OpenFarDoor
|
2021-11-16 23:12:16 +01:00
|
|
|
setmetatile 12, 0, METATILE_BattleFrontier_CorridorOpenDoor_Top, FALSE
|
|
|
|
setmetatile 12, 1, METATILE_BattleFrontier_CorridorOpenDoor_Bottom, FALSE
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleTowerCorridor_EventScript_OpenFarDoor::
|
2021-11-16 23:12:16 +01:00
|
|
|
setmetatile 15, 0, METATILE_BattleFrontier_CorridorOpenDoor_Top, FALSE
|
|
|
|
setmetatile 15, 1, METATILE_BattleFrontier_CorridorOpenDoor_Bottom, FALSE
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleTowerCorridor_OnFrame:
|
2020-01-08 11:43:06 +01:00
|
|
|
map_script_2 VAR_TEMP_0, 0, BattleFrontier_BattleTowerCorridor_EventScript_EnterCorridor
|
2017-11-10 02:21:31 +01:00
|
|
|
.2byte 0
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleTowerCorridor_EventScript_EnterCorridor::
|
2018-05-19 18:02:43 +02:00
|
|
|
setvar VAR_TEMP_0, 1
|
2021-11-19 05:06:30 +01:00
|
|
|
goto_if_eq VAR_0x8006, 1, BattleFrontier_BattleTowerCorridor_EventScript_WalkToFarDoor
|
2020-06-21 07:56:57 +02:00
|
|
|
applymovement LOCALID_ATTENDANT, BattleFrontier_BattleTowerCorridor_Movement_AttendantWalkToDoor
|
2020-01-08 11:43:06 +01:00
|
|
|
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleTowerCorridor_Movement_PlayerWalkToDoor
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmovement 0
|
2020-01-08 11:43:06 +01:00
|
|
|
goto BattleFrontier_BattleTowerCorridor_EventScript_WarpToBattleRoom
|
2017-11-10 02:21:31 +01:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleTowerCorridor_EventScript_WalkToFarDoor::
|
2020-06-21 07:56:57 +02:00
|
|
|
applymovement LOCALID_ATTENDANT, BattleFrontier_BattleTowerCorridor_Movement_AttendantWalkToFarDoor
|
2020-01-08 11:43:06 +01:00
|
|
|
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleTowerCorridor_Movement_PlayerWalkToFarDoor
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmovement 0
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleTowerCorridor_EventScript_WarpToBattleRoom::
|
2018-05-19 18:02:43 +02:00
|
|
|
setvar VAR_TEMP_0, 0
|
2021-11-15 18:04:54 +01:00
|
|
|
warp MAP_BATTLE_FRONTIER_BATTLE_TOWER_BATTLE_ROOM, 4, 8
|
2017-11-10 02:21:31 +01:00
|
|
|
waitstate
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleTowerCorridor_Movement_PlayerWalkToFarDoor:
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_right
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleTowerCorridor_Movement_AttendantWalkToFarDoor:
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_right
|
|
|
|
walk_right
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleTowerCorridor_Movement_PlayerWalkToDoor:
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_right
|
2021-07-20 21:18:31 +02:00
|
|
|
BattleFrontier_BattleTowerCorridor_Movement_AttendantWalkToDoor:
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_right
|
|
|
|
walk_right
|
|
|
|
walk_right
|
|
|
|
walk_up
|
|
|
|
set_invisible
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|