function BlockDefenceExtraGetItem() local Event = EventClass.Event; Event:LockPlayer(); coroutine.yield(); Event:Wait(0.5) coroutine.yield(); if ( Event:IsBDPerfectClear() ) then Event:Print("A Perfect clear deserves/r"); Event:Print("a great reward!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); Event:AddItem2(item.Item.IL_MINI_MEDAL); Event:AddItem2(item.Item.IL_MINI_MEDAL); geteventitem(); Event:Print("> Got 2 Small Blocks!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); endgeteventitem(); else Event:Print("For clearing the game,/r"); Event:Print("you get an award!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); Event:AddItem2(item.Item.IL_MINI_MEDAL); geteventitem(); Event:Print("> Got a Small Block!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); endgeteventitem(); end Event:Wait(0.5) coroutine.yield(); Event:FadeOut(); Event:Wait(1.0) coroutine.yield(); Event:SetPlayerDirection(0); coroutine.yield(); Event:ResetBDPlayerSword(); Event:DestroyMiniGame(); Event:UnlockPlayer(); coroutine.yield(); Event:SetMap("Field_50","-gtf50_1"); end