pokeplatinum/res/field/scripts/scripts_route_217.s
2024-07-22 13:38:35 -04:00

133 lines
2.0 KiB
ArmAsm

#include "macros/scrcmd.inc"
.data
ScriptEntry _0012
ScriptEntry _0023
ScriptEntry _003A
ScriptEntry _004D
.short 0xFD13
_0012:
PlayFanfare SEQ_SE_CONFIRM
LockAll
Message 3
WaitABXPadPress
CloseMessage
ReleaseAll
End
_0023:
ScrCmd_036 4, 1, 0, 0x800C
ScrCmd_038 3
ScrCmd_039
ScrCmd_03B 0x800C
CallCommonScript 0x7D0
End
_003A:
PlayFanfare SEQ_SE_CONFIRM
LockAll
FacePlayer
Message 2
WaitABXPadPress
CloseMessage
ReleaseAll
End
_004D:
LockAll
ClearFlag 0x297
ScrCmd_064 15
GetPlayerMapPos 0x8004, 0x8005
CallIfEq 0x8004, 0x12E, _00CA
CallIfEq 0x8004, 0x12F, _00D6
BufferPlayerName 0
Message 0
CloseMessage
ApplyMovement 0xFF, _010C
WaitMovement
ApplyMovement 15, _014C
WaitMovement
Message 1
CloseMessage
GetPlayerMapPos 0x8004, 0x8005
CallIfEq 0x8004, 0x12E, _00E2
CallIfEq 0x8004, 0x12F, _00F6
ScrCmd_065 15
SetVar 0x40A8, 1
SetFlag 0x298
ReleaseAll
End
_00CA:
ApplyMovement 15, _0124
WaitMovement
Return
_00D6:
ApplyMovement 15, _0138
WaitMovement
Return
_00E2:
ApplyMovement 0xFF, _0114
ApplyMovement 15, _0154
WaitMovement
Return
_00F6:
ApplyMovement 0xFF, _0114
ApplyMovement 15, _0168
WaitMovement
Return
.balign 4, 0
_010C:
MoveAction_021
EndMovement
.balign 4, 0
_0114:
MoveAction_03F 2
MoveAction_03E
MoveAction_020
EndMovement
.balign 4, 0
_0124:
MoveAction_00C 4
MoveAction_00E 3
MoveAction_00C
MoveAction_04B
EndMovement
.balign 4, 0
_0138:
MoveAction_00C 4
MoveAction_00E 2
MoveAction_00C
MoveAction_04B
EndMovement
.balign 4, 0
_014C:
MoveAction_00C
EndMovement
.balign 4, 0
_0154:
MoveAction_00F
MoveAction_00C 3
MoveAction_00F 2
MoveAction_00C 9
EndMovement
.balign 4, 0
_0168:
MoveAction_00E
MoveAction_00C 3
MoveAction_00F 3
MoveAction_00C 9
EndMovement