mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-09-09 09:51:34 -07:00
67 lines
1.4 KiB
NASM
67 lines
1.4 KiB
NASM
const_value set 2
|
|
const BATTLETOWERELEVATOR_RECEPTIONIST
|
|
|
|
BattleTowerElevator_MapScriptHeader:
|
|
.MapTriggers:
|
|
db 2
|
|
|
|
; triggers
|
|
maptrigger .Trigger0
|
|
maptrigger .Trigger1
|
|
|
|
.MapCallbacks:
|
|
db 0
|
|
|
|
.Trigger0:
|
|
priorityjump .RideElevator
|
|
dotrigger $1
|
|
|
|
.Trigger1:
|
|
end
|
|
|
|
.RideElevator:
|
|
follow BATTLETOWERELEVATOR_RECEPTIONIST, PLAYER
|
|
applymovement BATTLETOWERELEVATOR_RECEPTIONIST, MovementData_BattleTowerElevatorReceptionistWalksIn
|
|
applymovement PLAYER, MovementData_BattleTowerElevatorPlayerWalksIn
|
|
writebyte BATTLETOWERACTION_0A
|
|
special BattleTowerAction
|
|
playsound SFX_ELEVATOR
|
|
earthquake 60
|
|
waitsfx
|
|
follow BATTLETOWERELEVATOR_RECEPTIONIST, PLAYER
|
|
applymovement BATTLETOWERELEVATOR_RECEPTIONIST, MovementData_BattleTowerElevatorExitElevator
|
|
stopfollow
|
|
warpsound
|
|
disappear BATTLETOWERELEVATOR_RECEPTIONIST
|
|
applymovement PLAYER, MovementData_BattleTowerElevatorExitElevator
|
|
warpcheck
|
|
end
|
|
|
|
MovementData_BattleTowerElevatorReceptionistWalksIn:
|
|
step RIGHT
|
|
turn_head DOWN
|
|
step_end
|
|
|
|
MovementData_BattleTowerElevatorPlayerWalksIn:
|
|
turn_head DOWN
|
|
step_end
|
|
|
|
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
|
|
person_event SPRITE_RECEPTIONIST, 2, 1, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, MovementData_BattleTowerElevatorReceptionistWalksIn, -1
|