pokecrystal/maps/BattleTowerElevator.asm

67 lines
1.4 KiB
NASM
Raw Normal View History

2015-11-27 05:22:14 +00:00
const_value set 2
const BATTLETOWERELEVATOR_RECEPTIONIST
2015-07-10 08:45:35 +00:00
BattleTowerElevator_MapScriptHeader:
.MapTriggers:
db 2
; triggers
2016-01-05 13:46:37 +00:00
maptrigger .Trigger0
maptrigger .Trigger1
.MapCallbacks:
db 0
2015-11-27 02:05:32 +00:00
.Trigger0:
priorityjump .RideElevator
dotrigger $1
2015-11-27 02:05:32 +00:00
.Trigger1:
end
2015-11-27 02:05:32 +00:00
.RideElevator:
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
writebyte BATTLETOWERACTION_0A
2015-11-03 20:05:19 +00:00
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:
step_right
turn_head_down
step_end
2015-11-27 02:05:32 +00:00
MovementData_BattleTowerElevatorPlayerWalksIn:
turn_head_down
step_end
2015-07-10 08:45:35 +00:00
BattleTowerElevator_MapEventHeader:
; filler
db 0, 0
.Warps:
db 2
warp_def $3, $1, 1, BATTLE_TOWER_HALLWAY
warp_def $3, $2, 1, BATTLE_TOWER_HALLWAY
.XYTriggers:
db 0
.Signposts:
db 0
.PersonEvents:
db 1
2015-11-27 02:05:32 +00:00
person_event SPRITE_RECEPTIONIST, 2, 1, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, MovementData_BattleTowerElevatorReceptionistWalksIn, -1