function GolemEvent() local Event=EventClass.Event; if(Event:GetEventFlag(EventFlag.scene_golem)==1) --ボスを倒した場合 then return; end if(Event:GetEventFlag(314)==1) --塔のフラグが立ってたら切るよ then Event:SetEventFlag(314,0); --切る end Event:SetStatusVisible(0); Event:SetSunLightAngle(31.48, 62.20); -- yaw, pitch Event:StopBgm(); Event:PlayBgm(soundList.SoundID.BGM_boss01); Event:SetPlayerPosition(10,4,1) Event:SetPlayerDirection(0); Event:LockPlayer(); Event:WaitMain(); coroutine.yield(); Event:switchDofPointGaze(); Event:SetDofApaerture(0.70,0); Event:createTimerEffect(28,5.9,14.5,0,-12.4); Event:createTimerEffect(28,8.0,20,0,-12.5); Event:PlayScene(1); Event:Wait(1.8); coroutine.yield(); if(Event:IsSceneSkip()==1)then GolemCreate() return; end Event:PlayEnvironmental(soundList.SoundID.SE_quake,0.1); Event:Wait(2.6); coroutine.yield(); if(Event:IsSceneSkip()==1)then GolemCreate() return; end Event:StopEnvironmental(soundList.SoundID.SE_quake,0.1); Event:PlaySe(soundList.SoundID.SE_boss_attack03); Event:Wait(0.85); coroutine.yield(); if(Event:IsSceneSkip()==1)then GolemCreate() return; end Event:PlaySe(soundList.SoundID.SE_bom); Event:Wait(0.2); coroutine.yield(); if(Event:IsSceneSkip()==1)then GolemCreate() return; end Event:PlayEnvironmental(soundList.SoundID.SE_quake,0.1); Event:Wait(2.4); coroutine.yield(); if(Event:IsSceneSkip()==1)then GolemCreate() return; end Event:StopEnvironmental(soundList.SoundID.SE_quake,0.1); Event:PlaySe(soundList.SoundID.SE_bom); Event:Wait(0.4); coroutine.yield(); if(Event:IsSceneSkip()==1)then GolemCreate() return; end Event:PlayEnvironmental(soundList.SoundID.SE_quake,0.1); Event:WaitScene(); coroutine.yield(); GolemCreate() end function GolemCreate() local Event=EventClass.Event; Event:deleteTimerEffect(28) Event:StopEnvironmental(soundList.SoundID.SE_quake,0.1); Event:RestoreSunLightAngle(); Event:resetDofPointGaze(); Event:CreateGolem(11,10,1); Event:SetStatusVisible(1); Event:UnlockPlayer(); end function GolemEvent2() local Event=EventClass.Event; if(Event:GetEventFlag(315)==1) --ボスを倒して蘇生していない場合 then return; end Event:StopBgm(); Event:PlayBgm(soundList.SoundID.BGM_boss01); Event:SetEventFlag(314,1); --塔のゴーレムに来た Event:LockPlayer(); Event:CreateGolem(11,10,1); Event:UnlockPlayer(); end