#include "macros/scrcmd.inc" .data ScriptEntry _0008 .short 0xFD13 End _0008: PlayFanfare SEQ_SE_CONFIRM LockAll FacePlayer Message 0 GoTo _001B End _001B: Message 1 ScrCmd_041 1, 1, 0, 1, 0x800C ScrCmd_042 9, 0 ScrCmd_042 10, 1 ScrCmd_042 11, 2 ScrCmd_042 12, 3 ScrCmd_043 SetVar 0x8008, 0x800C GoToIfEq 0x8008, 0, _00D0 GoToIfEq 0x8008, 1, _0121 GoToIfEq 0x8008, 2, _0078 GoTo _006D End _006D: Message 33 WaitABXPadPress CloseMessage ReleaseAll End _0078: Message 32 WaitABXPadPress GoTo _001B End _0085: FadeScreen 6, 1, 0, 0 WaitFadeScreen CloseMessage ReleaseAll Return _0097: ScrCmd_0A1 PlayFanfare SEQ_SE_CONFIRM LockAll FacePlayer FadeScreen 6, 1, 1, 0 WaitFadeScreen Return _00AF: Message 8 WaitABXPadPress CloseMessage ReleaseAll End _00BA: Message 6 GoTo _006D End _00C5: Message 7 GoTo _006D End _00D0: CheckItem ITEM_POFFIN_CASE, 1, 0x800C GoToIfEq 0x800C, 0, _00AF ScrCmd_1D8 0x800C GoToIfEq 0x800C, 1, _00BA GoToIfEq 0x800C, 2, _00C5 WaitTime 30, 0x800C Call _0085 ScrCmd_1D7 0 Call _0097 GoTo _006D End _0121: CheckItem ITEM_POFFIN_CASE, 1, 0x800C GoToIfEq 0x800C, 0, _00AF ScrCmd_1D8 0x800C GoToIfEq 0x800C, 1, _00BA GoToIfEq 0x800C, 2, _00C5 CallCommonScript 0x7D6 SetVar 0x800C, 0x4000 GoToIfEq 0x800C, 1, _0173 GoTo _006D End _0173: Message 13 ScrCmd_040 30, 1, 0, 1, 0x800C ScrCmd_33A 1 ScrCmd_042 13, 0 ScrCmd_042 14, 1 ScrCmd_042 5, 2 ScrCmd_043 SetVar 0x8008, 0x800C GoToIfEq 0x8008, 0, _01B7 GoToIfEq 0x8008, 1, _020D GoTo _006D End _01B7: Message 2 ScrCmd_03E 0x800C GoToIfEq 0x800C, 1, _0173 CloseMessage ScrCmd_0F2 6, 0, 0, 0x800C GoToIfEq 0x800C, 1, _01F9 GoToIfEq 0x800C, 3, _0203 GoTo _0263 End _01F9: ScrCmd_150 GoTo _0173 End _0203: ScrCmd_150 GoTo _0173 End _020D: Message 2 ScrCmd_03E 0x800C GoToIfEq 0x800C, 1, _0173 CloseMessage ScrCmd_0F3 6, 0, 0, 0x800C GoToIfEq 0x800C, 1, _024F GoToIfEq 0x800C, 3, _0259 GoTo _0263 End _024F: ScrCmd_150 GoTo _0173 End _0259: ScrCmd_150 GoTo _0173 End _0263: FadeScreen 6, 1, 0, 0 WaitFadeScreen ReleaseAll ScrCmd_1D7 1 ScrCmd_150 Call _0097 GoTo _006D .byte 2 .byte 0 .byte 0 .byte 0 .byte 0