pokeplatinum/res/field/scripts/scripts_flower_paradise.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

72 lines
1.1 KiB
ArmAsm

#include "macros/scrcmd.inc"
#include "res/text/bank/flower_paradise.h"
.data
ScriptEntry _000E
ScriptEntry _0062
ScriptEntry _007D
.short 0xFD13
_000E:
SetFlag 0x9D5
ScrCmd_22D 2, 0x4000
GoToIfEq 0x4000, 0, _005C
CheckItem ITEM_OAKS_LETTER, 1, 0x4000
GoToIfEq 0x4000, 0, _005C
ScrCmd_28B 1, 0x4000
GoToIfEq 0x4000, 0, _005C
GoToIfSet 0x123, _005C
ClearFlag 0x251
End
_005C:
SetFlag 0x251
End
_0062:
GoToIfSet 142, _006F
End
_006F:
SetFlag 0x251
RemoveObject 0
ClearFlag 142
End
_007D:
PlayFanfare SEQ_SE_CONFIRM
LockAll
FacePlayer
ScrCmd_04C 0x1EC, 0
Message 0
CloseMessage
SetFlag 142
StartFatefulEncounter SPECIES_SHAYMIN, 30
ClearFlag 142
CheckWonBattle 0x800C
GoToIfEq 0x800C, 0, _00D7
CheckDidNotCapture 0x800C
GoToIfEq 0x800C, 1, _00C8
SetFlag 0x123
ReleaseAll
End
_00C8:
Message 1
WaitABXPadPress
CloseMessage
ClearFlag 0x251
ReleaseAll
End
_00D7:
ScrCmd_0EB
ClearFlag 0x251
ReleaseAll
End
.byte 0
.byte 0
.byte 0