pokecrystal-board/maps/BattleTowerElevator.asm

57 lines
1.5 KiB
NASM
Raw Normal View History

2018-01-31 08:38:45 -08:00
const_def 2 ; object constants
2015-11-26 21:22:14 -08:00
const BATTLETOWERELEVATOR_RECEPTIONIST
BattleTowerElevator_MapScripts:
db 2 ; scene scripts
scene_script .Scene0 ; SCENE_DEFAULT
scene_script .Scene1 ; SCENE_FINISHED
db 0 ; callbacks
.Scene0:
2015-11-26 18:05:32 -08:00
priorityjump .RideElevator
setscene SCENE_FINISHED
.Scene1:
end
2015-11-26 18:05:32 -08:00
.RideElevator:
2015-11-26 21:22:14 -08:00
follow BATTLETOWERELEVATOR_RECEPTIONIST, PLAYER
applymovement BATTLETOWERELEVATOR_RECEPTIONIST, MovementData_BattleTowerElevatorReceptionistWalksIn
2015-11-26 18:05:32 -08:00
applymovement PLAYER, MovementData_BattleTowerElevatorPlayerWalksIn
writebyte BATTLETOWERACTION_0A
special BattleTowerAction
playsound SFX_ELEVATOR
earthquake 60
2015-11-25 07:16:29 -08:00
waitsfx
2015-11-26 21:22:14 -08:00
follow BATTLETOWERELEVATOR_RECEPTIONIST, PLAYER
applymovement BATTLETOWERELEVATOR_RECEPTIONIST, MovementData_BattleTowerElevatorExitElevator
stopfollow
warpsound
2015-11-26 21:22:14 -08:00
disappear BATTLETOWERELEVATOR_RECEPTIONIST
2015-11-26 18:05:32 -08:00
applymovement PLAYER, MovementData_BattleTowerElevatorExitElevator
warpcheck
end
2015-11-26 18:05:32 -08:00
MovementData_BattleTowerElevatorReceptionistWalksIn:
2016-05-14 10:46:14 -07:00
step RIGHT
turn_head DOWN
step_end
2015-11-26 18:05:32 -08:00
MovementData_BattleTowerElevatorPlayerWalksIn:
2016-05-14 10:46:14 -07:00
turn_head DOWN
step_end
BattleTowerElevator_MapEvents:
db 0, 0 ; filler
db 2 ; warp events
2018-02-01 19:22:07 -08:00
warp_event 1, 3, BATTLE_TOWER_HALLWAY, 1
warp_event 2, 3, BATTLE_TOWER_HALLWAY, 1
db 0 ; coord events
db 0 ; bg events
db 1 ; object events
2018-02-01 19:22:07 -08:00
object_event 1, 2, SPRITE_RECEPTIONIST, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, MovementData_BattleTowerElevatorReceptionistWalksIn, -1