function BreakOutClear() local Event = EventClass.Event; Event:LockPlayer(); coroutine.yield(); local stage = Event:GetMiniGameStage(); Event:SetStage(stage); Event:PlaySe(soundList.SoundID.SE_special_item_get); Event:Print("/vnStage "..Event:GetStage().." cleared!/b/cl"); -- 次のステージに進む if ( stage == Event:GetMiniGameMaxStage() ) then -- クリア処理 Event:Print("Congratulations!/b/cl"); Event:Print("You beat Blockout!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); -- 初クリアの場合は「ライフのかけら」GET if ( Event:GetEventFlag(243) < 1 ) then Event:Print("You’ve won a prize!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); -- ライフのかけら入手 geteventitem(); Event:Print("> Got a LIFE Shard!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); endgeteventitem(); local heartFlg = 0; if ( Event:GetItem(item.Item.IL_FRAGMENT_HEART) == 3 ) then heartFlg = 1; end Event:AddItem2(item.Item.IL_FRAGMENT_HEART); if ( heartFlg == 1 ) then Event:Print("/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); end Event:SetEventFlag(243, 1); end if ( Event:IsBONoMissClear() ) then -- 初ノーミスクリアの場合は「うちでの小槌」GET if ( Event:GetEventFlag(243) < 2 ) then Event:Print("This is a special prize/r"); Event:Print("for clearing it with 0/r"); Event:Print("misses!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); getspecialitem2(item.Item.IL_PLENTY_HORN); --うちでの小槌入手 Event:Print("> Got the Luck Mallet!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); endgetspecialitem2(); Event:SetEventFlag(243, 2); end end -- コーメー KomeMessage(); Event:Wait(1.0) coroutine.yield(); Event:FadeOut(); Event:Wait(1.0) coroutine.yield(); Event:SetPlayerDirection(0); coroutine.yield(); Event:DestroyMiniGame(); Event:UnlockPlayer(); Event:SetMap("D_23_2","-gDebug"); coroutine.yield(); return; else Event:SetStage(stage + 1); Event:Print("Stage "..Event:GetStage().."     /b/cl"); Event:Print("Start!!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:SetMiniGameStage(stage + 1); end Event:UnlockPlayer(); coroutine.yield(); end