function mainevent_ending() local Event=EventClass.Event; Event:SetStatusVisible(0); Event:ResetDash(); Event:LockPlayer(); Event:playerDefaultState() coroutine.yield(); Event:SetPlayerPosition(10,5,0); Event:SetPlayerDirection(0); Event:WaitMain(); coroutine.yield(); Event:PlayEnvironmental(soundList.SoundID.SE_surround_altar,2); Event:createTimerEffect(61, 0.1, 16.76, 2.67, -20); Event:StartHailItem(77,1); --光のオーブ掲げる Event:SetPlayerDirection(0); Event:switchDofPointGaze(); Event:SetDofApaerture(0.70,0); Event:PlayScene(15,15.4,0); --ムービー開始、エフェクト開始 Event:Wait(3.2); coroutine.yield(); Event:PlayEnvironmental(soundList.SoundID.SE_last_dead,1); Event:Wait(11.2); coroutine.yield(); Event:StopEnvironmental(soundList.SoundID.SE_last_dead,1); --ムービー終了 エフェクト終了 15.4秒間 Event:resetDofPointGaze(); Event:WhiteOut(); coroutine.yield(); Event:SetEventFlag(EventFlag.scene_maou,1) Event:SetMap("D_7_2_9","-gDebug"); Event:EndHailItem(); Event:UnlockPlayer(); end function mainevent_ending2() local Event=EventClass.Event; Event:ResetDash(); Event:LockPlayer(); Event:SetPlayerPosition(12,6,0); Event:SetPlayerDirection(0); Event:SetStatusVisible(0); Event:PlayEnvironmental(soundList.SoundID.SE_fall_ed,0.1); Event:PlayScene(12,2,1); Event:WaitScene(); if(Event:GetEventFlag(EventFlag.item_humanprincess)==1) then Event:CreateNpc(1.6,0.0,0.0,"Princess"); Event:SetNpcDirection("Princess",2); else Event:CreateNpc(1.6,0.0,0.0,"PrincessBugSP"); Event:SetNpcDirection("PrincessBugSP",2); end Event:PlayEnvironmental(soundList.SoundID.SE_quake,0.1); Event:createTimerEffect(62, 0.1, 16, 1, -22); if(Event:GetEventFlag(EventFlag.item_humanprincess)==1) then Event:Print("/vhIris: The Dark King is/rgone and the curse is/r"); Event:Print("lifted!/b/cl"); Event:Print("/vhMaster "..Event:GetPlayerName().."! The/rtower is going to fall!/rWe must escape quickly!/vn/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:MovePlayer(0.0,-4.8,6.4); Event:SetAnimationId("Princess", 2); Event:MoveNpc("Princess",0.0,-4.8,6.4); coroutine.yield(); Event:SetAnimationId("Princess", 1); else Event:PlayEnvironmental(soundList.SoundID.SE_tinker_bell,0.1); Event:Print("/vhLee: Master! The tower/rcould fall any moment!/rWe must escape quickly!/vn/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:MovePlayer(0.0,-4.8,6.4); Event:MoveNpc("PrincessBugSP",0.0,-4.8,6.4); coroutine.yield(); end -- Event:StopScene(); Event:SetEventFlag(EventFlag.scene_maou,0) Event:PlaySe(soundList.SoundID.SE_stair); Event:SetMap("Field_90","-gtf3_1"); Event:UnlockPlayer(); end