pokeplatinum/res/field/scripts/scripts_acuity_cavern.s
TheSylphIsIn ac987dd9c1 Document ScrCmds 065, 0B4, 0B5, 0A1, 0DE, 096, 097
I did these commands together because they're all used in the script for choosing your starter.
2025-02-08 14:58:43 -05:00

56 lines
807 B
ArmAsm

#include "macros/scrcmd.inc"
#include "res/text/bank/acuity_cavern.h"
.data
ScriptEntry _000E
ScriptEntry _0014
ScriptEntry _002F
.short 0xFD13
_000E:
SetFlag 0x9E3
End
_0014:
GoToIfSet 142, _0021
End
_0021:
SetFlag 0x1E1
RemoveObject 0
ClearFlag 142
End
_002F:
PlayFanfare SEQ_SE_CONFIRM
LockAll
FacePlayer
ScrCmd_04C 0x1E0, 0
Message 0
CloseMessage
SetFlag 142
StartLegendaryBattle SPECIES_UXIE, 50
ClearFlag 142
CheckWonBattle 0x800C
GoToIfEq 0x800C, 0, _0085
CheckDidNotCapture 0x800C
GoToIfEq 0x800C, 1, _007A
SetFlag 0x127
ReleaseAll
End
_007A:
Message 1
WaitABXPadPress
CloseMessage
ReleaseAll
End
_0085:
ScrCmd_0EB
ReleaseAll
End
.byte 0