function mainevent_greenorb() local Event=EventClass.Event; Event:LockPlayer(); Event:BackupCamera(); Event:BackupDof(); Event:SetStatusVisible(0); -- Event:SetCamera(14.46,22.7,8.31) Event:SetPlayerPosition(8,1,0) Event:SetPlayerDirection(0); coroutine.yield(); Event:Wait(1.0); coroutine.yield(); Event:MovePlayer(0.0,9.6,0.0); coroutine.yield(); Event:Wait(1.0); coroutine.yield(); Event:PlaySe(soundList.SoundID.SE_tinker_bell); Event:CreateNpc(1.6,0.0,0.0,"PrincessBugSP"); Event:SetNpcDirection("PrincessBugSP",0); Event:Wait(1.0); coroutine.yield(); Event:SavePlayerAngle(); --BGMを下げる Event:SetupBGMInProportion(0.1,0.3) coroutine.yield(); Event:SetNpcDirection("PrincessBugSP",2); Event:PlaySe(soundList.SoundID.SE_important_item_get); Event:PauseNpc() Event:SetNpcNode("OrbAltar02",0); Event:StartHailItem(71,1); Event:PlayCamera(0.0,2.0,1); coroutine.yield(); Event:PlayNpc() Event:AddItem2(71); --BGMを戻す Event:SetupBGMOutProportion(0.5) Event:Print("/vn> Got the Green Orb!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); endgetspecialitem2F() setorbcountup(); Event:SetNpcDirection("PrincessBugSP",2); coroutine.yield(); Event:Wait(1.0); coroutine.yield(); --修正0907 -- Event:SetCamera(0.10,15.28,229.07,8.53,2.32,-5.02) -- Event:SetParamDepthofField(0.97,0.72,0.0); Event:SetCamera(0.10,8.46,310.15,9.24,2.32,-15.27) Event:SetParamDepthofField(0.71,0.80,0.0); Event:SetPlayerDirection(3); Event:PlaySe(soundList.SoundID.SE_tinker_bell); if ( Event:IsSpelunker() )--スペランカーモードの時 then Event:Print("/vhLee: Wow! You really did/rit, Master Spelunker!/b/cl"); Event:Print("You didn’t take a single/rhit from that huge bee!/rYou’re so brave!/b/cl"); else Event:Print("/vhLee: You did it, Master/r"..Event:GetPlayerName().."!/b/cl"); Event:Print("You fought that huge bee/roff without the/rslightest hesitation!/b/cl"); end Event:Print("Master, I believe you/rare the hero who can/rsave our kingdom!/b/cl"); Event:Print("That’s why... I have a/rfavour to ask of you!/b/cl"); Event:Print("My friends were captured/rby the man who calls/rhimself the Dark Bishop./b/cl"); Event:Print("I don’t know where they/rare, but they’re out/rthere! Please help them!/vn/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); if(Event:GetEventFlag(EventFlag.scene_greenorbirai)==1) --インディゴにグリーンオーブをとってくるよう依頼を受けた時 then Event:Print("/vh/clNow, let’s bring the orb/rback to Sage Indigo in/rthe Forest of No Return!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); else --インディゴにグリーンオーブをとってくるよう依頼を受けなかった時 Event:Print("/vh/clNow if we could only/rfind the sage to give us/rthe orb’s magic.../b/cl"); Event:Print("Say, did the old man in/rthe Forest of No Return/rlook suspicious to you?/vn/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); end if(Event:GetEventFlag(EventFlag.item_yelloworb)==1 and Event:GetEventFlag(EventFlag.item_greenorb)==1 and Event:GetEventFlag(EventFlag.item_grayorb)==1 and Event:GetEventFlag(EventFlag.item_blueorb)==1 and Event:GetEventFlag(EventFlag.item_redorb)==1 and Event:GetEventFlag(EventFlag.item_whiteorb)==1 and Event:GetEventFlag(EventFlag.item_redorb)==1 and Event:GetEventFlag(EventFlag.item_whiteorb)==1) --オーブを全てとった時。 then if ( Event:IsSpelunker() ) then Event:Print("/vh/clLee: Wow! Now we have/rall the orbs in hand!/b/cl"); Event:Print("We may have gone out of/rorder a bit, but.../b/cl"); Event:Print("I’m sure it was all part/rof your brilliant plan,/rMaster Spelunker!/b/cl"); --スペランカーモード Event:WaitContinue(); else Event:Print("/vh/clLee: Wow! Now we have/rall the orbs in hand!/b/cl"); Event:Print("We may have gone out of/rorder a bit, but.../b/cl"); Event:Print("I’m sure it was all part/rof your brilliant plan,/rMaster "..Event:GetPlayerName().."!/b/cl"); Event:WaitContinue(); end Event:Print("The final battle draws/rnear! Let us go ahead/rdauntlessly, Master!/vn/b/co"); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); end Event:SetNpcVisible("PrincessBugSP",0); Event:SetStatusVisible(1); Event:SetPlayerDirection(1); Event:RestoreCamera(); Event:RestoreDof(); Event:UnlockPlayer(); end