pokeplatinum/res/field/scripts/scripts_route_202.s
2024-08-18 08:57:35 -04:00

589 lines
8.5 KiB
ArmAsm

#include "macros/scrcmd.inc"
.data
ScriptEntry _001E
ScriptEntry _0071
ScriptEntry _0084
ScriptEntry _009B
ScriptEntry _00B2
ScriptEntry _00C7
ScriptEntry _04C4
.short 0xFD13
_001E:
CallIfGe 0x4087, 2, _005B
GetPlayerGender 0x4000
GoToIfEq 0x4000, 0, _004B
GoToIfEq 0x4000, 1, _0053
End
_004B:
SetVar 0x4020, 97
End
_0053:
SetVar 0x4020, 0
End
_005B:
ScrCmd_186 3, 186, 0x331
ScrCmd_189 3, 1
ScrCmd_188 3, 15
Return
_0071:
PlayFanfare SEQ_SE_CONFIRM
LockAll
FacePlayer
Message 10
WaitABXPadPress
CloseMessage
ReleaseAll
End
_0084:
ScrCmd_036 11, 1, 0, 0x800C
ScrCmd_038 3
ScrCmd_039
ScrCmd_03B 0x800C
CallCommonScript 0x7D0
End
_009B:
ScrCmd_036 12, 1, 0, 0x800C
ScrCmd_038 3
ScrCmd_039
ScrCmd_03B 0x800C
CallCommonScript 0x7D0
End
_00B2:
ScrCmd_037 3, 0
ScrCmd_038 3
ScrCmd_039
ScrCmd_03A 13, 0x800C
CallCommonScript 0x7D0
End
_00C7:
LockAll
ApplyMovement 3, _03C4
ApplyMovement 0xFF, _04A0
WaitMovement
GetPlayerMapPos 0x8004, 0x8005
GoToIfEq 0x8005, 0x339, _0124
GoToIfEq 0x8005, 0x33A, _0134
GoToIfEq 0x8005, 0x33B, _0144
GoToIfEq 0x8005, 0x33C, _0154
GoToIfEq 0x8005, 0x33D, _0164
End
_0124:
ApplyMovement 3, _03D4
WaitMovement
GoTo _0174
_0134:
ApplyMovement 3, _03E4
WaitMovement
GoTo _0174
_0144:
ApplyMovement 3, _03F4
WaitMovement
GoTo _0174
_0154:
ApplyMovement 3, _0400
WaitMovement
GoTo _0174
_0164:
ApplyMovement 3, _0410
WaitMovement
GoTo _0174
_0174:
GoToIfUnset 143, _027C
GetPlayerGender 0x800C
GoToIfEq 0x800C, 0, _019F
GoToIfEq 0x800C, 1, _01B2
End
_019F:
CallCommonScript 0x7F8
BufferCounterpartName 0
BufferPlayerName 1
Message 2
GoTo _01C5
_01B2:
CallCommonScript 0x7F8
BufferCounterpartName 0
BufferPlayerName 1
Message 7
GoTo _01C5
_01C5:
CloseMessage
ApplyMovement 3, _0488
ApplyMovement 0xFF, _04BC
WaitMovement
ScrCmd_126
ApplyMovement 3, _0490
WaitMovement
GetPlayerGender 0x800C
GoToIfEq 0x800C, 0, _0205
GoToIfEq 0x800C, 1, _0211
End
_0205:
BufferPlayerName 0
Message 3
GoTo _021D
_0211:
BufferPlayerName 0
Message 8
GoTo _021D
_021D:
SetVar 0x8004, 4
SetVar 0x8005, 5
CallCommonScript 0x7FC
GetPlayerGender 0x800C
GoToIfEq 0x800C, 0, _024D
GoToIfEq 0x800C, 1, _0259
End
_024D:
BufferPlayerName 0
Message 4
GoTo _0262
_0259:
Message 9
GoTo _0262
_0262:
CloseMessage
ApplyMovement 3, _0498
WaitMovement
ScrCmd_065 3
SetVar 0x4087, 1
ReleaseAll
End
_027C:
GetPlayerGender 0x800C
GoToIfEq 0x800C, 0, _029C
GoToIfEq 0x800C, 1, _02C8
End
_029C:
BufferCounterpartName 0
BufferPlayerName 1
CallIfUnset 0x115, _02BE
CallIfSet 0x115, _02C3
GoTo _02F4
_02BE:
Message 0
Return
_02C3:
Message 1
Return
_02C8:
BufferCounterpartName 0
BufferPlayerName 1
CallIfUnset 0x115, _02EA
CallIfSet 0x115, _02EF
GoTo _02F4
_02EA:
Message 5
Return
_02EF:
Message 6
Return
_02F4:
CloseMessage
GoToIfEq 0x8005, 0x339, _0339
GoToIfEq 0x8005, 0x33A, _0351
GoToIfEq 0x8005, 0x33B, _0369
GoToIfEq 0x8005, 0x33C, _0381
GoToIfEq 0x8005, 0x33D, _0399
End
_0339:
ApplyMovement 3, _0420
ApplyMovement 0xFF, _04AC
WaitMovement
GoTo _03B1
_0351:
ApplyMovement 3, _0434
ApplyMovement 0xFF, _04AC
WaitMovement
GoTo _03B1
_0369:
ApplyMovement 3, _0448
ApplyMovement 0xFF, _04AC
WaitMovement
GoTo _03B1
_0381:
ApplyMovement 3, _0458
ApplyMovement 0xFF, _04AC
WaitMovement
GoTo _03B1
_0399:
ApplyMovement 3, _046C
ApplyMovement 0xFF, _04AC
WaitMovement
GoTo _03B1
_03B1:
ApplyMovement 3, _0480
WaitMovement
SetFlag 0x115
ReleaseAll
End
.balign 4, 0
_03C4:
MoveAction_023
MoveAction_04B
MoveAction_041
EndMovement
.balign 4, 0
_03D4:
MoveAction_00F 4
MoveAction_00C 2
MoveAction_00F
EndMovement
.balign 4, 0
_03E4:
MoveAction_00F 4
MoveAction_00C
MoveAction_00F
EndMovement
.balign 4, 0
_03F4:
MoveAction_00F 4
MoveAction_00F
EndMovement
.balign 4, 0
_0400:
MoveAction_00F 4
MoveAction_00D
MoveAction_00F
EndMovement
.balign 4, 0
_0410:
MoveAction_00F 4
MoveAction_00D 2
MoveAction_00F
EndMovement
.balign 4, 0
_0420:
MoveAction_00F
MoveAction_00E 4
MoveAction_00E 2
MoveAction_00D 2
EndMovement
.balign 4, 0
_0434:
MoveAction_00F
MoveAction_00E 4
MoveAction_00E 2
MoveAction_00D
EndMovement
.balign 4, 0
_0448:
MoveAction_00F
MoveAction_00E 4
MoveAction_00E 2
EndMovement
.balign 4, 0
_0458:
MoveAction_00F
MoveAction_00E 4
MoveAction_00E 2
MoveAction_00C
EndMovement
.balign 4, 0
_046C:
MoveAction_00F
MoveAction_00E 4
MoveAction_00E 2
MoveAction_00C 2
EndMovement
.balign 4, 0
_0480:
MoveAction_023
EndMovement
.balign 4, 0
_0488:
MoveAction_00E 2
EndMovement
.balign 4, 0
_0490:
MoveAction_023
EndMovement
.balign 4, 0
_0498:
MoveAction_00E 12
EndMovement
.balign 4, 0
_04A0:
MoveAction_03F
MoveAction_002
EndMovement
.balign 4, 0
_04AC:
MoveAction_047
MoveAction_00F
MoveAction_048
EndMovement
.balign 4, 0
_04BC:
MoveAction_00E 2
EndMovement
_04C4:
PlayFanfare SEQ_SE_CONFIRM
LockAll
FacePlayer
BufferPlayerName 0
ScrCmd_1BD 0x8002
GetPlayerGender 0x8000
CallIfEq 0x8000, 0, _0653
CallIfEq 0x8000, 1, _0658
CloseMessage
PlayMusic SEQ_POKERADAR
ScrCmd_308 189, 0x332
ApplyMovement 241, _06F8
WaitMovement
ScrCmd_309
ApplyMovement 3, _0690
ApplyMovement 0xFF, _06D0
WaitMovement
WaitTime 15, 0x800C
CallIfEq 0x8000, 0, _065D
CallIfEq 0x8000, 1, _0662
CloseMessage
WaitTime 15, 0x800C
PlayDefaultMusic
CallIfEq 0x8002, 0, _05D1
CallIfEq 0x8002, 1, _05E5
CallIfEq 0x8002, 2, _05F9
CallIfEq 0x8002, 3, _0605
CallIfEq 0x8000, 0, _0667
CallIfEq 0x8000, 1, _066C
CloseMessage
CallIfEq 0x8002, 0, _0611
CallIfEq 0x8002, 1, _061D
CallIfEq 0x8002, 2, _0629
CallIfEq 0x8002, 3, _0635
GoTo _0641
End
_05D1:
ApplyMovement 3, _0698
ApplyMovement 0xFF, _06D8
WaitMovement
Return
_05E5:
ApplyMovement 3, _06A0
ApplyMovement 0xFF, _06E0
WaitMovement
Return
_05F9:
ApplyMovement 0xFF, _06E8
WaitMovement
Return
_0605:
ApplyMovement 3, _06B0
WaitMovement
Return
_0611:
ApplyMovement 3, _0674
WaitMovement
Return
_061D:
ApplyMovement 3, _0684
WaitMovement
Return
_0629:
ApplyMovement 3, _0684
WaitMovement
Return
_0635:
ApplyMovement 3, _0684
WaitMovement
Return
_0641:
ScrCmd_065 3
ClearFlag 0x177
SetVar 0x4087, 3
ReleaseAll
End
_0653:
Message 14
Return
_0658:
Message 17
Return
_065D:
Message 15
Return
_0662:
Message 18
Return
_0667:
Message 16
Return
_066C:
Message 19
Return
.balign 4, 0
_0674:
MoveAction_00E
MoveAction_00D 3
MoveAction_00E 10
EndMovement
.balign 4, 0
_0684:
MoveAction_00D 3
MoveAction_00E 10
EndMovement
.balign 4, 0
_0690:
MoveAction_003
EndMovement
.balign 4, 0
_0698:
MoveAction_021
EndMovement
.balign 4, 0
_06A0:
MoveAction_020
EndMovement
.byte 35
.byte 0
.byte 1
.byte 0
.byte 254
.byte 0
.byte 0
.byte 0
.balign 4, 0
_06B0:
MoveAction_022
EndMovement
.byte 63
.byte 0
.byte 1
.byte 0
.byte 34
.byte 0
.byte 1
.byte 0
.byte 254
.byte 0
.byte 0
.byte 0
.byte 63
.byte 0
.byte 1
.byte 0
.byte 33
.byte 0
.byte 1
.byte 0
.byte 254
.byte 0
.byte 0
.byte 0
.balign 4, 0
_06D0:
MoveAction_003
EndMovement
.balign 4, 0
_06D8:
MoveAction_020
EndMovement
.balign 4, 0
_06E0:
MoveAction_021
EndMovement
.balign 4, 0
_06E8:
MoveAction_022
EndMovement
.byte 35
.byte 0
.byte 1
.byte 0
.byte 254
.byte 0
.byte 0
.byte 0
.balign 4, 0
_06F8:
MoveAction_00F
EndMovement