mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
62f5913943
.MapTriggers and .MapCallbacks lists are formatted consistently with .Warps, .XYTriggers, .Signposts, and .PersonEvents
65 lines
1.4 KiB
NASM
65 lines
1.4 KiB
NASM
const_value set 2
|
|
const BATTLETOWERELEVATOR_RECEPTIONIST
|
|
|
|
BattleTowerElevator_MapScriptHeader:
|
|
.MapTriggers:
|
|
db 2
|
|
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
|