function gimmick_wind1() local Event=EventClass.Event; if(Event:GetEventFlag(191)==1) --妖精姫が既にいて、かつこのイベントを既にみた場合 then Event:setItemMenuOpenFlag( 0 ); return; end Event:PauseEnemy(); Event:LockPlayer(); Event:SetPlayerDirection(0); Event:PlaySe(soundList.SoundID.SE_tinker_bell); Event:CreateNpc(-1.6,0.0,1.6,"PrincessBugSP"); Event:SetNpcDirection("PrincessBugSP",0); Event:SetEventFlag(191,1); --このイベントを見たフラグ coroutine.yield(); Event:Wait(1.0); coroutine.yield(); -- Event:MoveNpc("PrincessBugSP",-4.8,0.0,3.2,0); -- coroutine.yield(); -- Event:SetNpcDirection("PrincessBugSP",3); Event:Print("/vhLee: There’s a strong/rwind coming from the/rwall! Use your shield!/vn/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); -- Event:MoveNpc("PrincessBugSP",4.8,0.0,3.2,0); -- coroutine.yield(); Event:SetNpcVisible("PrincessBugSP",0); Event:UnlockPlayer(); Event:PlayEnemy(); Event:setItemMenuOpenFlag( 0 ); end