mirror of
https://github.com/pret/pokeplatinum.git
synced 2026-08-15 13:54:02 -05:00
Some checks are pending
build / build (push) Waiting to run
* ScrCmd_IsSequencePlaying * ScrCmd_SetSpecialBGM * `sub_02055554` -> `Sound_TryFadeOutToBGM` also `sub_020555CC` -> `Sound_GetBGMFadeOutAndWaitFrames` * ScrCmd_FadeInBGM * FadeOutMusic -> FadeOutBGM for consistency * ScrCmd_SetBGMPlayerPaused * ScrCmd_SetBGMFixed * Constant uses * ScrCmd_CheckRecordedChatotCryIsPlayable * ScrCmd_TryRecordChatotCry * ScrCmd_StopRecordingChatotCry * ScrCmd_StopFanfare * sdatID -> seqID * ScrCmd_StoreRecordedChatotCry * ScrCmd_SetSubScene63 * ScrCmd_SetInitialVolumeForSequence * ScrCmd_SetScene22 * ScrCmd_SetFieldScene, ScrCmd_GetCurrentBGM * ScrCmd_057 seqID * Rename file * Format
66 lines
1.2 KiB
ArmAsm
66 lines
1.2 KiB
ArmAsm
#include "macros/scrcmd.inc"
|
|
#include "res/text/bank/unk_0431.h"
|
|
|
|
.data
|
|
|
|
ScriptEntry _0006
|
|
ScriptEntryEnd
|
|
|
|
_0006:
|
|
LockAll
|
|
WaitTime 1, VAR_RESULT
|
|
SetVar VAR_0x8005, VAR_0x8000
|
|
DrawPokemonPreviewFromPartySlot VAR_0x8000
|
|
CheckRecordedChatotCryIsPlayable VAR_RESULT
|
|
GoToIfEq VAR_RESULT, 1, _0031
|
|
GoTo _0054
|
|
End
|
|
|
|
_0031:
|
|
Message 0
|
|
ShowYesNoMenu VAR_RESULT
|
|
GoToIfEq VAR_RESULT, MENU_YES, _0054
|
|
GoToIfEq VAR_RESULT, MENU_NO, _00B2
|
|
End
|
|
|
|
_0054:
|
|
FadeOutBGM 42, 10
|
|
Message 1
|
|
TryRecordChatotCry VAR_RESULT
|
|
SetVar VAR_0x8004, VAR_RESULT
|
|
WaitTime 30, VAR_RESULT
|
|
FadeInBGM 10
|
|
WaitTime 10, VAR_RESULT
|
|
GoToIfEq VAR_0x8004, 0, _00BA
|
|
StopRecordingChatotCry
|
|
WaitTime 1, VAR_RESULT
|
|
StoreRecordedChatotCry
|
|
WaitTime 1, VAR_RESULT
|
|
ScrCmd_28D
|
|
BufferPartyMonNickname 0, VAR_0x8005
|
|
Message 2
|
|
ScrCmd_28E VAR_RESULT
|
|
PlayCry SPECIES_CHATOT
|
|
WaitCry
|
|
GoTo _00B2
|
|
End
|
|
|
|
_00B2:
|
|
ScrCmd_209
|
|
CloseMessage
|
|
ReleaseAll
|
|
End
|
|
|
|
_00BA:
|
|
BufferPartyMonNickname 0, VAR_0x8005
|
|
Message 3
|
|
Message 4
|
|
ShowYesNoMenu VAR_RESULT
|
|
GoToIfEq VAR_RESULT, MENU_YES, _0054
|
|
GoToIfEq VAR_RESULT, MENU_NO, _00B2
|
|
End
|
|
|
|
.byte 0
|
|
.byte 0
|
|
.byte 0
|