pokeemerald/data/maps/BattleFrontier_BattleTowerElevator/scripts.inc

91 lines
2.9 KiB
PHP
Raw Normal View History

2017-11-10 02:21:31 +01:00
BattleFrontier_BattleTowerElevator_MapScripts:: @ 82419DB
2019-02-22 08:28:32 +01:00
map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattleTowerElevator_MapScript2_2419E6
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattleTowerElevator_MapScript2_241A96
2017-11-10 02:21:31 +01:00
.byte 0
BattleFrontier_BattleTowerElevator_MapScript2_2419E6: @ 82419E6
2018-05-19 18:02:43 +02:00
map_script_2 VAR_TEMP_0, 0, BattleFrontier_BattleTowerElevator_EventScript_2419F0
2017-11-10 02:21:31 +01:00
.2byte 0
BattleFrontier_BattleTowerElevator_EventScript_2419F0:: @ 82419F0
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_0, 1
2017-11-10 02:21:31 +01:00
applymovement 1, BattleFrontier_BattleTowerElevator_Movement_241A86
applymovement EVENT_OBJ_ID_PLAYER, BattleFrontier_BattleTowerElevator_Movement_241A8A
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
applymovement 1, BattleFrontier_BattleTowerElevator_Movement_241A8E
applymovement EVENT_OBJ_ID_PLAYER, BattleFrontier_BattleTowerElevator_Movement_241A92
2017-11-10 02:21:31 +01:00
waitmovement 0
call BattleFrontier_BattleTowerElevator_EventScript_241A28
end
BattleFrontier_BattleTowerElevator_EventScript_241A28:: @ 8241A28
2019-11-24 22:58:40 +01:00
compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_SINGLES
2018-12-22 03:32:45 +01:00
call_if_eq BattleFrontier_BattleTowerElevator_EventScript_241A55
2019-11-24 22:58:40 +01:00
compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_DOUBLES
2018-12-22 03:32:45 +01:00
call_if_eq BattleFrontier_BattleTowerElevator_EventScript_241A55
2019-11-24 22:58:40 +01:00
compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_MULTIS
2018-12-22 03:32:45 +01:00
call_if_eq BattleFrontier_BattleTowerElevator_EventScript_241A5F
2019-11-24 22:58:40 +01:00
compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_LINK_MULTIS
2018-12-22 03:32:45 +01:00
call_if_eq BattleFrontier_BattleTowerElevator_EventScript_241A72
2017-11-10 02:21:31 +01:00
return
BattleFrontier_BattleTowerElevator_EventScript_241A55:: @ 8241A55
warp MAP_BATTLE_FRONTIER_BATTLE_TOWER_CORRIDOR, 255, 8, 1
2017-11-10 02:21:31 +01:00
waitstate
return
BattleFrontier_BattleTowerElevator_EventScript_241A5F:: @ 8241A5F
2019-01-02 22:12:43 +01:00
goto_if_unset FLAG_CHOSEN_MULTI_BATTLE_NPC_PARTNER, BattleFrontier_BattleTowerElevator_EventScript_241A7C
warp MAP_BATTLE_FRONTIER_BATTLE_TOWER_CORRIDOR2, 255, 7, 2
2017-11-10 02:21:31 +01:00
waitstate
return
BattleFrontier_BattleTowerElevator_EventScript_241A72:: @ 8241A72
warp MAP_BATTLE_FRONTIER_BATTLE_TOWER_CORRIDOR2, 255, 7, 2
2017-11-10 02:21:31 +01:00
waitstate
return
BattleFrontier_BattleTowerElevator_EventScript_241A7C:: @ 8241A7C
warp MAP_BATTLE_FRONTIER_BATTLE_TOWER_MULTI_BATTLE_ROOM, 255, 10, 1
2017-11-10 02:21:31 +01:00
waitstate
return
BattleFrontier_BattleTowerElevator_Movement_241A86: @ 8241A86
walk_up
walk_right
face_down
2017-11-10 02:21:31 +01:00
step_end
BattleFrontier_BattleTowerElevator_Movement_241A8A: @ 8241A8A
walk_up
walk_up
face_down
2017-11-10 02:21:31 +01:00
step_end
BattleFrontier_BattleTowerElevator_Movement_241A8E: @ 8241A8E
walk_down
walk_down
set_invisible
2017-11-10 02:21:31 +01:00
step_end
BattleFrontier_BattleTowerElevator_Movement_241A92: @ 8241A92
walk_right
walk_down
walk_down
2017-11-10 02:21:31 +01:00
step_end
BattleFrontier_BattleTowerElevator_MapScript2_241A96: @ 8241A96
2018-05-19 18:02:43 +02:00
map_script_2 VAR_TEMP_1, 0, BattleFrontier_BattleTowerElevator_EventScript_241AA0
2017-11-10 02:21:31 +01:00
.2byte 0
BattleFrontier_BattleTowerElevator_EventScript_241AA0:: @ 8241AA0
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 1
2019-09-16 05:47:07 +02:00
turnobject EVENT_OBJ_ID_PLAYER, DIR_NORTH
2017-11-10 02:21:31 +01:00
end