do -- local変数有効範囲 function BlockDefenceExtraStart() local Event = EventClass.Event; Event:LockPlayer(); Event:SetPlayerDirection(1); coroutine.yield(); local mapID = Event:GetMapState(); local stageId = 0; -- 各マップ毎のイベント振り分けはここでする if ( mapID == map_manager.MS_DUNGEON_80_4_1 ) then stageId = 11; elseif ( mapID == map_manager.MS_DUNGEON_80_4_2 ) then stageId = 12; elseif ( mapID == map_manager.MS_DUNGEON_80_4_3 ) then stageId = 13; elseif ( mapID == map_manager.MS_DUNGEON_80_4_4 ) then stageId = 14; elseif ( mapID == map_manager.MS_DUNGEON_80_4_5 ) then stageId = 15; elseif ( mapID == map_manager.MS_DUNGEON_80_4_6 ) then stageId = 16; elseif ( mapID == map_manager.MS_DUNGEON_80_4_7 ) then stageId = 17; elseif ( mapID == map_manager.MS_DUNGEON_80_4_8 ) then stageId = 18; elseif ( mapID == map_manager.MS_DUNGEON_80_4_9 ) then stageId = 19; elseif ( mapID == map_manager.MS_DUNGEON_80_4_10 ) then stageId = 20; end -- ブロック・ディフェンスを開始する Event:StartMiniGame(3, stageId); Event:SetMiniGameStage(stageId); coroutine.yield(); -- メッセージ if ( mapID == map_manager.MS_DUNGEON_80_4_1 ) then Event:Print("/vn¥¥¥~Block Defense Plus~/r"); Event:Print("¥¥¥ *Path to Perdition*/co"); elseif ( mapID == map_manager.MS_DUNGEON_80_4_2 ) then Event:Print("/vn¥¥¥~Block Defense Plus~/r"); Event:Print("¥¥¥¥¥¥*Gold Rush*/co"); elseif ( mapID == map_manager.MS_DUNGEON_80_4_3 ) then Event:Print("/vn¥¥¥~Block Defense Plus~/r"); Event:Print("¥¥¥¥*Tirnaco’s Errand*/co"); elseif ( mapID == map_manager.MS_DUNGEON_80_4_4 ) then Event:Print("/vn¥¥¥~Block Defense Plus~/r"); Event:Print("¥¥¥ *Tirnaco’s Training*/co"); elseif ( mapID == map_manager.MS_DUNGEON_80_4_5 ) then Event:Print("/vn¥¥¥~Block Defense Plus~/r"); Event:Print("¥¥¥¥ *Tirnaco’s Trial*/co"); elseif ( mapID == map_manager.MS_DUNGEON_80_4_6 ) then Event:Print("/vn¥¥ ~Block Defense Plus~/r"); Event:Print("¥¥*Forest of No Return*/co"); elseif ( mapID == map_manager.MS_DUNGEON_80_4_7 ) then Event:Print("/vn¥¥¥~Block Defense Plus~/r"); Event:Print("¥¥¥*Sukaboko Highlands*/co"); elseif ( mapID == map_manager.MS_DUNGEON_80_4_8 ) then Event:Print("/vn¥¥¥~Block Defense Plus~/r"); Event:Print("¥¥¥¥ *Dottano Valley*/co"); elseif ( mapID == map_manager.MS_DUNGEON_80_4_9 ) then Event:Print("/vn¥¥¥~Block Defense Plus~/r"); Event:Print("¥¥¥  *Tower Warriors*/co"); elseif ( mapID == map_manager.MS_DUNGEON_80_4_10 ) then Event:Print("/vn¥¥¥~Block Defense Plus~/r"); Event:Print("¥¥¥¥*Gilgamesh Beach*/co"); end Event:WaitContinue(); coroutine.yield(); Event:Wait(1.0); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); -- ブロック・ディフェンスの説明 Event:Print("Would you like to hear/r"); Event:Print("the Block Defense rules?/r"); Event:Print("(Special rules also apply.)/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変数有効範囲