function DragonEvent() local Event=EventClass.Event; if(Event:GetEventFlag(EventFlag.scene_dragon)==1) -- --ボスを倒した場合 then return; end if(Event:GetEventFlag(318)==1) --塔のフラグが立ってたら切るよ then Event:SetEventFlag(318,0); --切る end Event:SetStatusVisible(0); -- ドラゴン登場時のライト設定 Event:SetSunLightAngle(-180.0, 71.53); -- yaw, pitch Event:SetParallelLight(0.11,0.11,0.16, 0.1,0.08,0.11); -- sun r,g,b ambient r,g,b Event:StopBgm(); Event:PlayBgm(soundList.SoundID.BGM_boss01); Event:SetPlayerPosition(12,4,0) Event:SetPlayerDirection(0); Event:LockPlayer(); Event:WaitMain(); coroutine.yield(); Event:createTimerEffect(40,6.4,20.8,0.0,-8.7); -- 40番のエフェクトを5秒後に発生させる。 Event:switchDofPointGaze(); Event:SetDofApaerture(1.5,0); Event:PlayScene(1); Event:Wait(2.0); coroutine.yield(); if(Event:IsSceneSkip()==1)then DragonCreate() return; end Event:PlaySe(soundList.SoundID.SE_boss_attack03); Event:Wait(1.0); coroutine.yield(); if(Event:IsSceneSkip()==1)then DragonCreate() return; end Event:PlaySe(soundList.SoundID.SE_boss_attack03); Event:Wait(1.0); coroutine.yield(); if(Event:IsSceneSkip()==1)then DragonCreate() return; end Event:PlaySe(soundList.SoundID.SE_boss_attack03); Event:Wait(1.0); coroutine.yield(); if(Event:IsSceneSkip()==1)then DragonCreate() return; end Event:PlaySe(soundList.SoundID.SE_boss_attack03); Event:Wait(1.0); coroutine.yield(); if(Event:IsSceneSkip()==1)then DragonCreate() return; end Event:PlaySe(soundList.SoundID.SE_bom); Event:Wait(2.0); coroutine.yield(); if(Event:IsSceneSkip()==1)then DragonCreate() return; end Event:PlaySe(soundList.SoundID.SE_menace_dragon); Event:WaitScene(); coroutine.yield(); DragonCreate() end function DragonCreate() local Event=EventClass.Event; Event:deleteTimerEffect(40) Event:RestoreParallelLight(); Event:RestoreSunLightAngle(); Event:resetDofPointGaze(); Event:CreateDragon(12,14,0); Event:SetStatusVisible(1); Event:UnlockPlayer(); end function DragonEvent2() local Event=EventClass.Event; if(Event:GetEventFlag(319)==1) --ボスを倒して蘇生していない場合 then return; end Event:StopBgm(); Event:PlayBgm(soundList.SoundID.BGM_boss01); Event:SetEventFlag(318,1); --塔のドラゴンに来た Event:LockPlayer(); Event:CreateDragon(12,14,0); Event:UnlockPlayer(); end