pokecrystal/maps/BattleTowerElevator.asm

58 lines
1.6 KiB
NASM
Raw Normal View History

object_const_def
2015-11-27 05:22:14 +00:00
const BATTLETOWERELEVATOR_RECEPTIONIST
BattleTowerElevator_MapScripts:
def_scene_scripts
scene_script BattleTowerElevatorEnterScene, SCENE_BATTLETOWERELEVATOR_ENTER
scene_script BattleTowerElevatorNoopScene, SCENE_BATTLETOWERELEVATOR_NOOP
def_callbacks
BattleTowerElevatorEnterScene:
sdefer BattleTowerElevatorRideElevatorScript
setscene SCENE_BATTLETOWERELEVATOR_NOOP
; fallthrough
BattleTowerElevatorNoopScene:
end
BattleTowerElevatorRideElevatorScript:
2015-11-27 05:22:14 +00:00
follow BATTLETOWERELEVATOR_RECEPTIONIST, PLAYER
applymovement BATTLETOWERELEVATOR_RECEPTIONIST, MovementData_BattleTowerElevatorReceptionistWalksIn
2015-11-27 02:05:32 +00:00
applymovement PLAYER, MovementData_BattleTowerElevatorPlayerWalksIn
setval BATTLETOWERACTION_0A
special BattleTowerAction
playsound SFX_ELEVATOR
earthquake 60
2015-11-25 15:16:29 +00:00
waitsfx
2015-11-27 05:22:14 +00:00
follow BATTLETOWERELEVATOR_RECEPTIONIST, PLAYER
applymovement BATTLETOWERELEVATOR_RECEPTIONIST, MovementData_BattleTowerElevatorExitElevator
stopfollow
warpsound
2015-11-27 05:22:14 +00:00
disappear BATTLETOWERELEVATOR_RECEPTIONIST
2015-11-27 02:05:32 +00:00
applymovement PLAYER, MovementData_BattleTowerElevatorExitElevator
warpcheck
end
2015-11-27 02:05:32 +00:00
MovementData_BattleTowerElevatorReceptionistWalksIn:
2016-05-14 17:46:14 +00:00
step RIGHT
turn_head DOWN
step_end
2015-11-27 02:05:32 +00:00
MovementData_BattleTowerElevatorPlayerWalksIn:
2016-05-14 17:46:14 +00:00
turn_head DOWN
step_end
BattleTowerElevator_MapEvents:
db 0, 0 ; filler
def_warp_events
2018-02-02 03:22:07 +00:00
warp_event 1, 3, BATTLE_TOWER_HALLWAY, 1
warp_event 2, 3, BATTLE_TOWER_HALLWAY, 1
def_coord_events
def_bg_events
def_object_events
2018-02-02 03:22:07 +00:00
object_event 1, 2, SPRITE_RECEPTIONIST, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, MovementData_BattleTowerElevatorReceptionistWalksIn, -1