do -- local変数有効範囲 local playerSpeed = 1.00; -- プレイヤーの移動速度 function BlockDefence1Start() local Event = EventClass.Event; Event:LockPlayer(); Event:SetPlayerDirection(1); coroutine.yield(); Event:Print("/vn¥¥¥¥ *Block Defense*/r"); Event:Print("¥¥¥¥ *Road to Dotnia*/co"); Event:WaitContinue(); coroutine.yield(); Event:Wait(1.0); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); -- ブロック・ディフェンスを開始する Event:StartMiniGame(2); Event:SetMiniGameStage(1); Event:SetPlayerSpeed(playerSpeed); -- ブロック・ディフェンスの説明 Event:Print("Would you like to hear/r"); Event:Print("the Block Defense rules?/b/co"); Event:WaitContinue(); coroutine.yield(); Event:Select(); coroutine.yield(); if ( Event:GetSelect() == 0 ) then Event:CloseMessage(); coroutine.yield(); Event:UnlockPlayer(); Event:StartBDTutorial() Event:RestartMiniGame(); return; end Event:CloseMessage(); coroutine.yield(); Event:RestartMiniGame(); Event:UnlockPlayer(); end end -- local変数有効範囲