mirror of
https://github.com/pret/pokeplatinum.git
synced 2026-04-23 07:28:11 -05:00
409 lines
6.2 KiB
ArmAsm
409 lines
6.2 KiB
ArmAsm
#include "macros/scrcmd.inc"
|
|
|
|
.data
|
|
|
|
ScriptEntry _0016
|
|
ScriptEntry _0101
|
|
ScriptEntry _012C
|
|
ScriptEntry _0058
|
|
ScriptEntry _0037
|
|
.short 0xFD13
|
|
|
|
_0016:
|
|
GoToIfEq 0x40D9, 0, _0035
|
|
SetFlag 0x1CB
|
|
ScrCmd_1DD 55, 0, 0x4000
|
|
SetVar 0x4020, 0x4000
|
|
_0035:
|
|
End
|
|
|
|
_0037:
|
|
ScrCmd_1B2 0xFF
|
|
GoToIfEq 0x40D9, 3, _004A
|
|
End
|
|
|
|
_004A:
|
|
ScrCmd_187 2, 5, 0, 6, 3
|
|
End
|
|
|
|
_0058:
|
|
SetVar 0x40D9, 0
|
|
PlayFanfare SEQ_SE_CONFIRM
|
|
LockAll
|
|
FacePlayer
|
|
Call _015D
|
|
ReleaseAll
|
|
End
|
|
|
|
_0070:
|
|
Message 0
|
|
PlaySound SEQ_ASA
|
|
WaitSound
|
|
HealParty
|
|
Return
|
|
|
|
_007D:
|
|
WaitTime 30, 0x800C
|
|
SetVar 0x40D8, 1
|
|
ScrCmd_1DD 43, 0, 0x800C
|
|
SetVar 0x8008, 0x800C
|
|
GoToIfEq 0x8008, 4, _00D9
|
|
GoToIfEq 0x8008, 5, _00D9
|
|
FadeScreen 6, 1, 0, 0
|
|
WaitFadeScreen
|
|
Warp MAP_HEADER_BATTLE_TOWER, 0, 11, 6, 0
|
|
FadeScreen 6, 1, 1, 0
|
|
WaitFadeScreen
|
|
ReleaseAll
|
|
End
|
|
|
|
_00D9:
|
|
FadeScreen 6, 1, 0, 0
|
|
WaitFadeScreen
|
|
Warp MAP_HEADER_BATTLE_TOWER, 0, 15, 6, 0
|
|
FadeScreen 6, 1, 1, 0
|
|
WaitFadeScreen
|
|
ReleaseAll
|
|
End
|
|
|
|
_0101:
|
|
LockAll
|
|
SetVar 0x40D9, 3
|
|
ScrCmd_1DD 100, 0, 0x800C
|
|
GoToIfEq 0x800C, 1, _007D
|
|
Call _043C
|
|
GoTo _0201
|
|
End
|
|
|
|
_012C:
|
|
LockAll
|
|
SetVar 0x40D9, 3
|
|
ScrCmd_1DD 100, 0, 0x800C
|
|
GoToIfEq 0x800C, 1, _007D
|
|
Call _043C
|
|
Call _0448
|
|
GoTo _02F7
|
|
End
|
|
|
|
_015D:
|
|
ScrCmd_1DD 40, 0, 0
|
|
Call _045C
|
|
ScrCmd_1FE 0
|
|
WaitABPress
|
|
CloseMessage
|
|
Call _047E
|
|
ScrCmd_1DD 42, 0, 0
|
|
CheckWonBattle 0x800C
|
|
SetVar 0x8004, 0x800C
|
|
Return
|
|
|
|
_018C:
|
|
ScrCmd_1DD 37, 0, 0
|
|
GoTo _007D
|
|
End
|
|
|
|
_019C:
|
|
ScrCmd_1DD 38, 0, 0
|
|
GoTo _007D
|
|
End
|
|
|
|
_01AC:
|
|
SetVar 0x40D8, 2
|
|
ScrCmd_1DD 39, 0, 0
|
|
ScrCmd_1DC
|
|
Message 4
|
|
ScrCmd_18D
|
|
ScrCmd_12D 0x800C
|
|
ScrCmd_18E
|
|
PlayFanfare SEQ_SE_DP_SAVE
|
|
WaitFanfare SEQ_SE_DP_SAVE
|
|
FadeScreen 6, 1, 0, 0
|
|
WaitFadeScreen
|
|
CloseMessage
|
|
ScrCmd_1DD 2, 0, 0
|
|
End
|
|
|
|
_01E7:
|
|
GoTo _018C
|
|
End
|
|
|
|
_01EF:
|
|
ScrCmd_1DD 34, 0, 0x800C
|
|
ScrCmd_1DD 35, 0, 0x800C
|
|
Return
|
|
|
|
_0201:
|
|
Call _015D
|
|
GoToIfEq 0x8004, 0, _018C
|
|
Call _01EF
|
|
GoToIfEq 0x800C, 1, _019C
|
|
Call _0492
|
|
Call _04A6
|
|
Call _0070
|
|
GoTo _02F7
|
|
End
|
|
|
|
_0241:
|
|
ScrCmd_1DD 33, 0, 0x8004
|
|
BufferNumber 0, 0x8004
|
|
Message 1
|
|
ScrCmd_044 31, 11, 0, 0, 0x800C
|
|
ScrCmd_33A 1
|
|
ScrCmd_046 146, 0xFF, 0
|
|
ScrCmd_046 147, 0xFF, 1
|
|
ScrCmd_046 148, 0xFF, 2
|
|
ScrCmd_047
|
|
CloseMessage
|
|
SetVar 0x8008, 0x800C
|
|
GoToIfEq 0x8008, 0, _02AD
|
|
GoToIfEq 0x8008, 1, _02BB
|
|
GoToIfEq 0x8008, 2, _02D9
|
|
GoTo _02AD
|
|
End
|
|
|
|
_02AD:
|
|
Call _04BA
|
|
GoTo _0201
|
|
End
|
|
|
|
_02BB:
|
|
Message 2
|
|
ScrCmd_03E 0x800C
|
|
CloseMessage
|
|
GoToIfEq 0x800C, 0, _01AC
|
|
GoTo _0241
|
|
End
|
|
|
|
_02D9:
|
|
Message 3
|
|
ScrCmd_03E 0x800C
|
|
CloseMessage
|
|
GoToIfEq 0x800C, 0, _01E7
|
|
GoTo _0241
|
|
End
|
|
|
|
_02F7:
|
|
ScrCmd_1DD 43, 0, 0x800C
|
|
GoToIfNe 0x800C, 0, _0241
|
|
ScrCmd_1DD 36, 0, 0x800C
|
|
GoToIfEq 0x800C, 20, _0336
|
|
GoToIfEq 0x800C, 48, _0336
|
|
GoTo _0241
|
|
End
|
|
|
|
_0336:
|
|
Message 14
|
|
ScrCmd_044 31, 11, 0, 0, 0x800C
|
|
ScrCmd_33A 1
|
|
ScrCmd_046 146, 0xFF, 0
|
|
ScrCmd_046 147, 0xFF, 1
|
|
ScrCmd_046 148, 0xFF, 2
|
|
ScrCmd_047
|
|
CloseMessage
|
|
SetVar 0x8008, 0x800C
|
|
GoToIfEq 0x8008, 0, _0395
|
|
GoToIfEq 0x8008, 1, _02BB
|
|
GoToIfEq 0x8008, 2, _02D9
|
|
GoTo _0395
|
|
End
|
|
|
|
_0395:
|
|
Call _04BA
|
|
ScrCmd_1DD 40, 0, 0
|
|
Call _04CE
|
|
ScrCmd_1DD 36, 0, 0x800C
|
|
GoToIfEq 0x800C, 48, _041E
|
|
BufferPlayerName 0
|
|
BufferRivalName 1
|
|
Message 15
|
|
_03C7:
|
|
CloseMessage
|
|
Call _047E
|
|
ScrCmd_1DD 42, 0, 0
|
|
CheckWonBattle 0x800C
|
|
SetVar 0x8004, 0x800C
|
|
GoToIfEq 0x8004, 0, _018C
|
|
ScrCmd_1DD 36, 0, 0x800C
|
|
GoToIfEq 0x800C, 48, _0429
|
|
Message 17
|
|
ScrCmd_1DD 44, 1, 0
|
|
_040E:
|
|
CloseMessage
|
|
Call _01EF
|
|
GoTo _019C
|
|
End
|
|
|
|
_041E:
|
|
Message 16
|
|
GoTo _03C7
|
|
End
|
|
|
|
_0429:
|
|
Message 18
|
|
ScrCmd_1DD 44, 2, 0
|
|
GoTo _040E
|
|
End
|
|
|
|
_043C:
|
|
ApplyMovement 2, _0504
|
|
WaitMovement
|
|
Return
|
|
|
|
_0448:
|
|
ApplyMovement 0, _0580
|
|
ApplyMovement 2, _05A0
|
|
WaitMovement
|
|
Return
|
|
|
|
_045C:
|
|
ScrCmd_1DD 41, 0, 0x800C
|
|
SetVar 0x4021, 0x800C
|
|
ClearFlag 0x1CB
|
|
ScrCmd_064 1
|
|
ApplyMovement 1, _0524
|
|
WaitMovement
|
|
Return
|
|
|
|
_047E:
|
|
ApplyMovement 2, _0540
|
|
ApplyMovement 1, _0548
|
|
WaitMovement
|
|
Return
|
|
|
|
_0492:
|
|
ApplyMovement 1, _0550
|
|
WaitMovement
|
|
SetFlag 0x1CB
|
|
ScrCmd_065 1
|
|
Return
|
|
|
|
_04A6:
|
|
ApplyMovement 2, _0574
|
|
ApplyMovement 0, _0580
|
|
WaitMovement
|
|
Return
|
|
|
|
_04BA:
|
|
ApplyMovement 2, _0588
|
|
ApplyMovement 0, _0590
|
|
WaitMovement
|
|
Return
|
|
|
|
_04CE:
|
|
SetVar 0x4021, 169
|
|
ClearFlag 0x1CB
|
|
ScrCmd_064 1
|
|
ApplyMovement 1, _05A8
|
|
WaitMovement
|
|
Return
|
|
|
|
.byte 62
|
|
.byte 0
|
|
.byte 1
|
|
.byte 0
|
|
.byte 2
|
|
.byte 0
|
|
.byte 1
|
|
.byte 0
|
|
.byte 14
|
|
.byte 0
|
|
.byte 5
|
|
.byte 0
|
|
.byte 0
|
|
.byte 0
|
|
.byte 1
|
|
.byte 0
|
|
.byte 12
|
|
.byte 0
|
|
.byte 3
|
|
.byte 0
|
|
.byte 3
|
|
.byte 0
|
|
.byte 1
|
|
.byte 0
|
|
.byte 254
|
|
.byte 0
|
|
.byte 0
|
|
.byte 0
|
|
|
|
.balign 4, 0
|
|
_0504:
|
|
MoveAction_03E
|
|
MoveAction_00C
|
|
MoveAction_002
|
|
MoveAction_00E 3
|
|
MoveAction_000
|
|
MoveAction_00C 3
|
|
MoveAction_003
|
|
EndMovement
|
|
|
|
.balign 4, 0
|
|
_0524:
|
|
MoveAction_00D
|
|
MoveAction_003
|
|
MoveAction_00F 3
|
|
MoveAction_001
|
|
MoveAction_00D 3
|
|
MoveAction_002
|
|
EndMovement
|
|
|
|
.balign 4, 0
|
|
_0540:
|
|
MoveAction_00F
|
|
EndMovement
|
|
|
|
.balign 4, 0
|
|
_0548:
|
|
MoveAction_00E
|
|
EndMovement
|
|
|
|
.balign 4, 0
|
|
_0550:
|
|
MoveAction_003
|
|
MoveAction_00F
|
|
MoveAction_000
|
|
MoveAction_00C 3
|
|
MoveAction_002
|
|
MoveAction_00E 3
|
|
MoveAction_000
|
|
MoveAction_00C
|
|
EndMovement
|
|
|
|
.balign 4, 0
|
|
_0574:
|
|
MoveAction_00E
|
|
MoveAction_002
|
|
EndMovement
|
|
|
|
.balign 4, 0
|
|
_0580:
|
|
MoveAction_00F
|
|
EndMovement
|
|
|
|
.balign 4, 0
|
|
_0588:
|
|
MoveAction_003
|
|
EndMovement
|
|
|
|
.balign 4, 0
|
|
_0590:
|
|
MoveAction_002
|
|
MoveAction_00E
|
|
MoveAction_003
|
|
EndMovement
|
|
|
|
.balign 4, 0
|
|
_05A0:
|
|
MoveAction_002
|
|
EndMovement
|
|
|
|
.balign 4, 0
|
|
_05A8:
|
|
MoveAction_009
|
|
MoveAction_003
|
|
MoveAction_00B 3
|
|
MoveAction_001
|
|
MoveAction_009 3
|
|
MoveAction_002
|
|
EndMovement
|