function gimmick_dessert1() local Event=EventClass.Event; if(Event:GetEventFlag(182)==1 and Event:GetEventFlag(item_reflection)==0) --妖精姫が既にいて、かつこのイベントを既にみた場合 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,"PrincessBugSP"); Event:SetNpcDirection("PrincessBugSP",0); Event:SetEventFlag(182,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: Master "..Event:GetPlayerName().."!/rThat hole seems quite/rdeep! Do be careful!/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 function gimmick_dessert2() local Event=EventClass.Event; if(Event:GetEventFlag(183)==1 and Event:GetEventFlag(item_reflection) ==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,"PrincessBugSP1"); Event:SetNpcDirection("PrincessBugSP1",2); Event:SetEventFlag(183,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: Master! Look at the/rcentre floor! I wonder/rwhat’s there.../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_dessert3() local Event=EventClass.Event; if(Event:GetEventFlag(184)==1) --妖精姫が既にいて、かつこのイベントを既にみた場合 then Event:setItemMenuOpenFlag( 0 ); return; end Event:ResetDash(); Event:PauseEnemy(); Event:LockPlayer(); Event:Wait(1.0); coroutine.yield(); Event:SetPlayerDirection(2); Event:CreateNpc(-1.6,0.0,-1.6,"PrincessBugSP2"); Event:SetNpcDirection("PrincessBugSP2",2); Event:SetEventFlag(184,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("/vhリー「見なれない物が ありますよ!/r あのぼうに 何か ひっかけて/r わたれそうですね!/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 --追加0903 function gimmick_dessert4() local Event=EventClass.Event; if(Event:GetEventFlag(263)==1) --妖精姫が既にいて、かつこのイベントを既にみた場合 then Event:setItemMenuOpenFlag( 0 ); return; end Event:ResetDash(); Event:PauseEnemy(); Event:LockPlayer(); Event:Wait(1.0); coroutine.yield(); Event:SetPlayerDirection(0); Event:PlaySe(soundList.SoundID.SE_tinker_bell); Event:CreateNpc(0.0,0.0,1.6,"PrincessBugSP3"); Event:SetNpcDirection("PrincessBugSP3",0); Event:SetEventFlag(263,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); if(Event:GetEventFlag(EventFlag.item_reflection) == 1) --リフレクション持ってない then Event:Print("/vhLee: Those guys are magi,/rservants of Fuelle! Sword/rattacks won’t work!/b/cl"); Event:Print("Use the magic that the/rsage gave you to deflect/rtheir spells!/vn/b/co"); else Event:Print("/vhLee: Those guys are magi,/rservants of Fuelle! Sword/rattacks won’t work!/b/cl"); Event:Print("Master, we can’t beat it/rright now! Do we have/reverything we need?/vn/b/co"); end Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); -- Event:MoveNpc("PrincessBugSP2",4.8,0.0,3.2,0); -- coroutine.yield(); Event:SetNpcVisible("PrincessBugSP3",0); Event:UnlockPlayer(); Event:PlayEnemy(); Event:setItemMenuOpenFlag( 0 ); end --追加0903 function gimmick_dessert5() local Event=EventClass.Event; if(Event:GetEventFlag(263)==1) --妖精姫が既にいて、かつこのイベントを既にみた場合 then Event:setItemMenuOpenFlag( 0 ); return; end Event:ResetDash(); Event:PauseEnemy(); Event:LockPlayer(); Event:Wait(1.0); coroutine.yield(); Event:SetPlayerDirection(2); Event:PlaySe(soundList.SoundID.SE_tinker_bell); -- Event:CreateNpc(-1.6,0.0,-1.6,"PrincessBugSP4"); Event:CreateNpc(-1.6,0.0,0.0,"PrincessBugSP4"); Event:SetNpcDirection("PrincessBugSP4",2); Event:SetEventFlag(263,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); if(Event:GetEventFlag(EventFlag.item_reflection) == 1) --リフレクション持ってない then Event:Print("/vhLee: Those guys are magi,/rservants of Fuelle! Sword/rattacks won’t work!/b/cl"); Event:Print("Use the magic that the/rsage gave you to deflect/rtheir spells!/vn/b/co"); else Event:Print("/vhLee: Those guys are magi,/rservants of Fuelle! Sword/rattacks won’t work!/b/cl"); Event:Print("Master, we can’t beat it/rright now! Do we have/reverything we need?/vn/b/co"); end Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); -- Event:MoveNpc("PrincessBugSP2",4.8,0.0,3.2,0); -- coroutine.yield(); Event:SetNpcVisible("PrincessBugSP4",0); Event:UnlockPlayer(); Event:PlayEnemy(); Event:setItemMenuOpenFlag( 0 ); end function gimmick_dessert6() local Event=EventClass.Event; if(Event:GetEventFlag(263)==1) --妖精姫が既にいて、かつこのイベントを既にみた場合 then Event:setItemMenuOpenFlag( 0 ); return; end Event:ResetDash(); Event:PauseEnemy(); Event:LockPlayer(); Event:Wait(1.0); coroutine.yield(); Event:SetPlayerDirection(3); Event:PlaySe(soundList.SoundID.SE_tinker_bell); Event:CreateNpc(1.6,0.0,0.0,"PrincessBugSP4"); Event:SetNpcDirection("PrincessBugSP4",3); Event:SetEventFlag(263,1); --このイベントを見たフラグ coroutine.yield(); Event:Wait(1.0); coroutine.yield(); if(Event:GetEventFlag(EventFlag.item_reflection) == 1) --リフレクション持ってない then Event:Print("/vhLee: Those guys are magi,/rservants of Fuelle! Sword/rattacks won’t work!/b/cl"); Event:Print("Use the magic that the/rsage gave you to deflect/rtheir spells!/vn/b/co"); else Event:Print("/vhLee: Those guys are magi,/rservants of Fuelle! Sword/rattacks won’t work!/b/cl"); Event:Print("Master, we can’t beat it/rright now! Do we have/reverything we need?/vn/b/co"); end Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:SetNpcVisible("PrincessBugSP4",0); Event:UnlockPlayer(); Event:PlayEnemy(); Event:setItemMenuOpenFlag( 0 ); end