function mainevent_herodream1() local Event=EventClass.Event; if(Event:GetEventFlag(EventFlag.scene_herodream1)==1) then return; end Event:SetFieldResurrectionPoint(map_manager.MS_FIELD_18); Event:SetEventFlag(EventFlag.scene_herodream1,1) Event:FadeBlack() Event:SetPlayerDirection(1); Event:Pause() Event:Print("...... ...... ....../b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:Wait(1.0) coroutine.yield(); Event:FadeIn() coroutine.yield(); Event:Print("/vnThe Dark King is sealed/rbut not slain./b/cl"); Event:Print("Calamity may strike our/rkingdom again one day.../b/cl"); Event:Print("I must leave this sword/rin the Sacred Forest, in/rcase that comes to pass./b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:Play() end function mainevent_herodream2() local Event=EventClass.Event; if(Event:GetEventFlag(EventFlag.scene_herodream2)==0) then Event:ResetDash(); Event:PauseEnemy() Event:LockPlayer() --Event:SetPlayerPosition(48,33,0) Event:SetPlayerDirection(0); --Event:MovePlayer(0.0,14.4,3.2); Event:DestinationPlayer( 48, 44, 4.8 ); coroutine.yield(); Event:SetPlayerDirection(0); Event:Wait(0.5) coroutine.yield(); Event:SavePlayerAngle(); Event:StartPlayerMotion(3); Event:PlaySe(soundList.SoundID.SE_surround_thunder); --SEを1回流す Event:PlayFlash(2,0.2) coroutine.yield(); Event:PlaySe(soundList.SoundID.SE_enemy_appear); Event:CreateGuard( 44, 48, 0, 0 ); Event:CreateGuard( 51, 48, 0, 0 ); --0907 SE -- Event:SetupBGMOutProportion(0.5) --下げたBGMをX秒で元に戻す 削除0908 Event:Wait(0.5) coroutine.yield(); Event:playerDefaultState(); Event:RestorPlayerAngle(); --修正0902 Event:Print("/vnI know that one day, a/rbrave soul will claim it/rand overcome all evil.../b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:MovePlayer(0.0,28.8,4.8); coroutine.yield(); Event:Wait(1.0) coroutine.yield(); Event:SetStatusVisible(0); -- Event:SetCamera(0.10,2.83,41.67,80.24,1.07,-106.16) 修正0907 -- Event:SetParamDepthofField(0.41,1.00,0.0); Event:SetCamera(0.10,8.55,39.62,80.75,1.49,-106.88) Event:SetParamDepthofField(0.48,1.50,0.0); Event:playerDefaultState() Event:Wait(1.0) coroutine.yield(); Event:PlaySe(soundList.SoundID.SE_toge); Event:SetNpcNode("SwordPedestal",1); Event:Print("/vnLong live Dotnia.../b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield() Event:PlaySe(soundList.SoundID.SE_special_item_used); Event:WhiteOut(); coroutine.yield(); Event:Wait(1.0) coroutine.yield(); Event:SetEventFlag(EventFlag.scene_herodream2,1); Event:PlayEnemy(); Event:SetMap("D_21_1","-gDebug"); return; end if(Event:GetEventFlag(EventFlag.item_swordlv1_2)==0) then mainevent_swordlv1_2() return; end end function mainevent_herodreams() local Event=EventClass.Event; if(Event:GetEventFlag(EventFlag.scene_herodream2)==1) then return; end Event:setHeroGetBackFlag(1); Event:ResetDash(); Event:PauseEnemy() Event:LockPlayer() Event:Print("/vnIn the forest, north of/rthe castle, the sword/rwill be preserved.../b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:MovePlayer(0.0,1.6,3.2); coroutine.yield(); Event:UnlockPlayer() Event:PlayEnemy() Event:setHeroGetBackFlag(0); end function mainevent_herodreame() local Event=EventClass.Event; if(Event:GetEventFlag(EventFlag.scene_herodream2)==1) then return; end Event:setHeroGetBackFlag(1); Event:ResetDash(); Event:PauseEnemy() Event:LockPlayer() Event:Print("/vnIn the forest, north of/rthe castle, the sword/rwill be preserved.../b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:MovePlayer(-1.6,0.0,3.2); coroutine.yield(); Event:UnlockPlayer() Event:PlayEnemy() Event:setHeroGetBackFlag(0); end function mainevent_herodreamn() local Event=EventClass.Event; if(Event:GetEventFlag(EventFlag.scene_herodream2)==1) then return; end Event:setHeroGetBackFlag(1); Event:ResetDash(); Event:PauseEnemy() Event:LockPlayer() Event:Print("/vnIn the forest, north of/rthe castle, the sword/rwill be preserved.../b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:MovePlayer(0.0,-1.6,3.2); coroutine.yield(); Event:UnlockPlayer() Event:PlayEnemy() Event:setHeroGetBackFlag(0); end function mainevent_herodreamw() local Event=EventClass.Event; if(Event:GetEventFlag(EventFlag.scene_herodream2)==1) then return; end Event:setHeroGetBackFlag(1); Event:ResetDash(); Event:PauseEnemy() Event:LockPlayer() Event:Print("/vnIn the forest, north of/rthe castle, the sword/rwill be preserved.../b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:MovePlayer(1.6,0.0,3.2); coroutine.yield(); Event:UnlockPlayer() Event:PlayEnemy() Event:setHeroGetBackFlag(0); end