function gimmick_grass1() local Event=EventClass.Event; if(Event:GetEventFlag(167)==1) --妖精姫が既にいて、かつこのイベントを既にみた場合 then Event:setItemMenuOpenFlag( 0 ); return; end Event:ResetDash(); Event:PauseEnemy(); Event:LockPlayer(); Event:SetPlayerDirection(3); Event:PlaySe(soundList.SoundID.SE_tinker_bell); Event:CreateNpc(1.6,0.0,1.6,"PrincessBugSP5"); Event:SetNpcDirection("PrincessBugSP5",3); Event:SetEventFlag(167,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: Hm? I see a switch/ron the other side, but/rhow do we push it?/b/cl"); Event:Print("Lee: If only we had/rsomething that could/rhit that button.../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("PrincessBugSP5",0); Event:UnlockPlayer(); Event:PlayEnemy(); Event:setItemMenuOpenFlag( 0 ); end function gimmick_grass2() local Event=EventClass.Event; if(Event:GetEventFlag(167)==1) --妖精姫が既にいて、かつこのイベントを既にみた場合 then Event:setItemMenuOpenFlag( 0 ); return; end Event:ResetDash(); Event:PauseEnemy(); Event:LockPlayer(); Event:SetPlayerDirection(0); Event:PlaySe(soundList.SoundID.SE_tinker_bell); Event:CreateNpc(0.0,0.0,1.6,"PrincessBugSP1"); Event:SetNpcDirection("PrincessBugSP1",0); Event:SetEventFlag(167,1); --このイベントを見たフラグ coroutine.yield(); Event:Wait(1.0); coroutine.yield(); -- Event:MoveNpc("PrincessBugSP1",-4.8,0.0,3.2,0); -- coroutine.yield(); -- Event:SetNpcDirection("PrincessBugSP1",3); Event:Print("/vhLee: Hm? I see a switch/ron the other side, but/rhow do we push it?/b/cl"); Event:Print("Lee: If only we had/rsomething that could/rhit that button.../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("PrincessBugSP1",0); Event:UnlockPlayer(); Event:PlayEnemy(); Event:setItemMenuOpenFlag( 0 ); end function gimmick_grass3() local Event=EventClass.Event; if(Event:GetEventFlag(169)==1) --妖精姫が既にいて、かつこのイベントを既にみた場合 then Event:setItemMenuOpenFlag( 0 ); return; end Event:ResetDash(); Event:PauseEnemy(); Event:LockPlayer(); Event:SetPlayerDirection(2); Event:PlaySe(soundList.SoundID.SE_tinker_bell); Event:CreateNpc(-1.6,0.0,1.6,"PrincessBugSP2"); Event:SetNpcDirection("PrincessBugSP2",2); Event:SetEventFlag(169,1); --このイベントを見たフラグ coroutine.yield(); Event:Wait(1.0); coroutine.yield(); -- Event:MoveNpc("PrincessBugSP2",-4.8,0.0,3.2,0); -- coroutine.yield(); -- Event:SetNpcDirection("PrincessBugSP1",3); Event:Print("/vhLee: Those blocks are/rblocking the chest.../b/cl"); -- Event:Print("リー「ねんりきで うごかせとでも/r いうのでしょうか?/b/co"); Event:Print("Lee: Master! Perhaps we/rcan push the blocks out/rof the way!/vn/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); -- Event:MoveNpc("PrincessBugSP2",4.8,0.0,3.2,0); -- coroutine.yield(); Event:SetNpcVisible("PrincessBugSP2",0); Event:UnlockPlayer(); Event:PlayEnemy(); Event:setItemMenuOpenFlag( 0 ); end function gimmick_grass4() local Event=EventClass.Event; if(Event:GetEventFlag(170)==1) --妖精姫が既にいて、かつこのイベントを既にみた場合 then Event:setItemMenuOpenFlag( 0 ); return; end Event:ResetDash(); Event:PauseEnemy(); Event:LockPlayer(); Event:SetPlayerDirection(2); Event:PlaySe(soundList.SoundID.SE_tinker_bell); Event:CreateNpc(-1.6,0.0,-1.6,"PrincessBugSP3"); Event:SetNpcDirection("PrincessBugSP3",2); Event:SetEventFlag(170,1); --このイベントを見たフラグ coroutine.yield(); Event:Wait(1.0); coroutine.yield(); -- Event:MoveNpc("PrincessBugSP3",-4.8,0.0,3.2,0); -- coroutine.yield(); -- Event:SetNpcDirection("PrincessBugSP1",3); Event:Print("/vhLee: Master! Listen!/b/cl"); Event:Print("That switch looks a/rlittle different.../rShould we push it?/vn/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); -- Event:MoveNpc("PrincessBugSP3",4.8,0.0,3.2,0); -- coroutine.yield(); Event:SetNpcVisible("PrincessBugSP3",0); Event:UnlockPlayer(); Event:PlayEnemy(); Event:setItemMenuOpenFlag( 0 ); end function gimmick_grass5() local Event=EventClass.Event; if(Event:GetEventFlag(171)==1) --妖精姫が既にいて、かつこのイベントを既にみた場合 then Event:setItemMenuOpenFlag( 0 ); return; end Event:ResetDash(); Event:PauseEnemy(); Event:LockPlayer(); Event:SetPlayerDirection(3); Event:PlaySe(soundList.SoundID.SE_tinker_bell); Event:CreateNpc(1.6,0.0,1.6,"PrincessBugSP4"); Event:SetNpcDirection("PrincessBugSP4",3); Event:SetEventFlag(171,1); --このイベントを見たフラグ coroutine.yield(); Event:Wait(1.0); coroutine.yield(); -- Event:MoveNpc("PrincessBugSP3",-4.8,0.0,3.2,0); -- coroutine.yield(); -- Event:SetNpcDirection("PrincessBugSP1",3); Event:Print("/vhLee: Master "..Event:GetPlayerName().."!/rCheck it out!/b/cl"); Event:Print("Lee: There’s a switch/ron the wall. Why don’t/rwe try to press it?/vn/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); -- Event:MoveNpc("PrincessBugSP4",4.8,0.0,3.2,0); -- coroutine.yield(); Event:SetNpcVisible("PrincessBugSP4",0); Event:UnlockPlayer(); Event:PlayEnemy(); Event:setItemMenuOpenFlag( 0 ); end function gimmick_grass6() local Event=EventClass.Event; if(Event:GetEventFlag(168)==1) --妖精姫が既にいて、かつこのイベントを既にみた場合 then return; end Event:ResetDash(); Event:PauseEnemy(); Event:LockPlayer(); Event:SetPlayerDirection(2); Event:PlaySe(soundList.SoundID.SE_tinker_bell); Event:CreateNpc(-1.6,0.0,-1.6,"PrincessBugSP6"); Event:SetNpcDirection("PrincessBugSP6",2); Event:SetEventFlag(168,1); --このイベントを見たフラグ coroutine.yield(); Event:Wait(1.0); coroutine.yield(); Event:Print("/vhLee: The floor panel/rchanged! Remember the one/rlike it at the entrance?/vn/b/co"); -- Event:Print("Lee: Remember the one/rlike it at the entrance?/vn/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); -- Event:MoveNpc("PrincessBugSP6",4.8,0.0,3.2,0); -- coroutine.yield(); Event:SetNpcVisible("PrincessBugSP6",0); Event:UnlockPlayer(); Event:PlayEnemy(); end ----------------------------------------------------------------- function gimmick_grass7() local Event=EventClass.Event; if(Event:GetEventFlag(264)==1) --妖精姫が既にいて、かつこのイベントを既にみた場合 then Event:setItemMenuOpenFlag( 0 ); return; end Event:ResetDash(); Event:PauseEnemy(); Event:LockPlayer(); Event:SetPlayerDirection(0); Event:PlaySe(soundList.SoundID.SE_tinker_bell); Event:CreateNpc(1.6,0.0,1.6,"PrincessBugSP7"); Event:SetNpcDirection("PrincessBugSP7",0); Event:SetEventFlag(264,1); --このイベントを見たフラグ coroutine.yield(); Event:Wait(1.0); coroutine.yield(); -- Event:MoveNpc("PrincessBugSP",-4.8,0.0,3.2,0); -- coroutine.yield(); -- Event:SetNpcDirection("PrincessBugSP",0); Event:Print("/vhLee: Master! You can’t/rexpect some cheap shield/rto block magic beams!/b/cl"); Event:Print("You must use your/ramazing evasion skills/rto dodge them!/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("PrincessBugSP7",0); Event:UnlockPlayer(); Event:PlayEnemy(); Event:setItemMenuOpenFlag( 0 ); end