function mapevent_f90() local Event=EventClass.Event; Event:SetStatusVisible(0); Event:LockPlayer(); Event:SetPlayerDirection(1); Event:PlayEnvironmental(soundList.SoundID.SE_quake,0.1); if(Event:GetEventFlag(EventFlag.item_humanprincess)==1) then Event:CreateNpc(-1.6,0.0,0.0,"Princess"); Event:SetNpcDirection("Princess",1); else Event:CreateNpc(-1.6,0.0,0.0,"PrincessBugSP"); Event:SetNpcDirection("PrincessBugSP",1); end Event:BackupDof(); Event:BackupCamera(); Event:SetCamera(0.10,51.88,140.53,36.24,22.77,-40.09); Event:SetParamDepthofField(1.81,0.35,0); -- Event:SetCamera(0.10,34.72,138.47,40.24,21.93,-32.37); -- Event:SetParamDepthofField(1.72,0.20,0); Event:SetCamera(0.2) Event:Wait(2.0); coroutine.yield(); Event:MovePlayer(0.0,-16.0,6.4); if(Event:GetEventFlag(EventFlag.item_humanprincess)==1) then Event:SetAnimationId("Princess", 2); Event:MoveNpc("Princess",0.0,-16.0,6.4); else Event:MoveNpc("PrincessBugSP",0.0,-16.0,6.4); end coroutine.yield(); Event:FadeOut(); coroutine.yield(); if(Event:GetEventFlag(EventFlag.item_humanprincess)==1) then Event:SetNpcVisible("Princess",0); else Event:SetNpcVisible("PrincessBugSP",0); end Event:SetPlayerPosition(54,83,1); --ジャンプ Event:resetFieldCamera() Event:setPlayerAngle(125); if(Event:GetEventFlag(EventFlag.item_humanprincess)==1) then Event:CreateNpc(0.0,0.0,-1.6,"Princess1"); Event:setAngle("Princess1",125); else Event:CreateNpc(0.0,0.0,-1.6,"PrincessBugSP1"); Event:setAngle("PrincessBugSP1",125); end Event:createDarkTowerEffect(24,9,-24); Event:setEndingPointLigh(0,87.5,1.51,-69.5); Event:SetCamera(0.10,-17.72,47.81,95.53,1.87,-75.62); Event:SetParamDepthofField(2.65,0.60,0); Event:Wait(1.0); coroutine.yield(); Event:SetCamera(0.1) Event:FadeIn(); Event:Wait(1.0); Event:PlaySe(soundList.SoundID.SE_tower_collapse); Event:PlaySceneScriptCamera(0,-1,0); Event:WaitScene(); coroutine.yield(); Event:StopEnvironmental(soundList.SoundID.SE_quake,0.1) Event:SetCamera(0.10,-17.72,47.81,95.53,1.87,-75.62); Event:SetParamDepthofField(2.65,0.60,0); Event:CreateNpc(8.0,0.0,3.2,"WiseMan3"); Event:SetAnimationId("WiseMan3", 2); Event:MoveNpc("WiseMan3",-8.0,0.0,3.2); coroutine.yield(); if(Event:GetEventFlag(EventFlag.item_humanprincess)==1) then Event:SetNpcDirection("Princess1",0); else Event:SetNpcDirection("PrincessBugSP1",0); end Event:SetAnimationId("WiseMan3", 1); Event:SetPlayerDirection(0); Event:SetNpcDirection("WiseMan3",1); Event:Wait(0.5); coroutine.yield(); Event:SetCamera(0.10,55.32,270.35,81.24,10.28,-72.38); Event:SetParamDepthofField(0.99,0.37,0); Event:Wait(0.5); coroutine.yield(); Event:Print("Origin: You’ve done it!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:CreateNpc(9.6,0.0,3.2,"Wiseman5e"); Event:CreateNpc(9.6,0.0,1.6,"OldWomana6_010"); Event:CreateNpc(9.6,0.0,0.0,"WiseMan2b8_010"); Event:CreateNpc(9.6,0.0,-1.6,"YoungWomana4_010"); Event:CreateNpc(9.6,0.0,-3.2,"WiseMan1b1_010"); Event:SetAnimationId("Wiseman5e", 2); Event:MoveNpc("Wiseman5e",-6.4,0.0,3.2); coroutine.yield(); if(Event:GetEventFlag(EventFlag.item_humanprincess)==1) then Event:SetNpcDirection("Princess1",3); else Event:SetNpcDirection("PrincessBugSP1",3); end Event:SetAnimationId("Wiseman5e", 1); Event:SetPlayerDirection(3); Event:Print("/vhCrimson: I knew you/rcould save the world!/vn/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:SetAnimationId("OldWomana6_010", 2); Event:MoveNpc("OldWomana6_010",-6.4,0.0,3.2); coroutine.yield(); Event:SetAnimationId("OldWomana6_010", 1); Event:Print("Octane: HOーHOーHO! It/rmust have been harsh.../b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:SetAnimationId("WiseMan2b8_010", 2); Event:MoveNpc("WiseMan2b8_010",-6.4,0.0,3.2); coroutine.yield(); Event:SetAnimationId("WiseMan2b8_010", 1); Event:Print("Indigo: But you never/rgave up!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:SetAnimationId("YoungWomana4_010", 2); Event:MoveNpc("YoungWomana4_010",-6.4,0.0,3.2); coroutine.yield(); Event:SetAnimationId("YoungWomana4_010", 1); Event:Print("/vhOhtu: Your courage is/rwhat gave us strength./vn/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:SetAnimationId("WiseMan1b1_010", 2); Event:MoveNpc("WiseMan1b1_010",-6.4,0.0,3.2); coroutine.yield(); Event:SetAnimationId("WiseMan1b1_010", 1); Event:Print("Indy: A hero is you,/r"..Event:GetPlayerName().."!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); if(Event:GetEventFlag(EventFlag.item_humanprincess)==1) then Event:SetNpcDirection("Princess1",0); Event:Print("/vhIris: Master "..Event:GetPlayerName().."!/rThanks to you, the/rkingdom is safe again./b/cl"); Event:Print("Everyone’s waiting for/ryou. Let’s go home!/b/vn/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); else Event:SetNpcDirection("PrincessBugSP1",0); Event:Print("/vhLee: Master "..Event:GetPlayerName().."!/rWe finally did it!/b/cl"); Event:Print("Lee: Everyone’s waiting/rfor us! Let’s go back to/r"); Event:Print("the castle triumphantly!/b/vn/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); end Event:FadeOut(); coroutine.yield(); Event:allEffectOff(); -- エフェクトを切る coroutine.yield(); Event:SetPlayerPosition(89,9,0); --ジャンプ Event:resetFieldCamera() Event:SetNpcDirection("Boye",0); Event:SetNpcDirection("Boye1",0); Event:SetNpcDirection("OldWomane",0); Event:SetNpcDirection("YoungWomane",0); Event:SetNpcDirection("YoungWomane1",0); Event:SetNpcDirection("Merchante",0); Event:SetNpcDirection("YoungMane1",0); Event:SetNpcDirection("Merchante1",0); Event:Wait(0.5); coroutine.yield(); Event:SetPlayerDirection(3); -- Event:SetCamera(0.10,20.90,0.0,162.28,8.43,-209.51); -- Event:SetParamDepthofField(1.54,0.50,0); --空 -- Event:SetCamera(0.10,-27.99,0.00,158.76,6.54,-203); ※最初のSetCamera は削除、代わりにPlayPanCamera↓ Event:PlayEnvironmental(soundList.SoundID.SE_cheer,3); Event:PlayPanCamera(158.76,6.54,-203,158.76,10.23,-197.55,158.76,6.54,-203,158.76,10.23,-197.55,4.0,0.6); --追加 Event:SetParamDepthofField(1.54,0.30,0); if(Event:GetEventFlag(EventFlag.item_humanprincess)==1) then Event:CreateNpc(-2.8,0.0,0.0,"Princess2"); Event:SetNpcDirection("Princess2",3); end Event:PlayBgm(soundList.SoundID.BGM_ed); Event:FadeIn(); coroutine.yield(); Event:Wait(2.0); coroutine.yield(); Event:resetFieldCamera() -- Event:SetCamera(0.10,28.17,0.00,158.76,6.54,-203); --空から下方向へPan -- Event:PlayPanCamera(158.76,6.54,-203,158.76,10.23,-197.55,158.76,6.54,-203,158.76,2.86,-196.11,4.0,0.6); Event:PlayPanCamera(158.76,6.54,-203,158.76,10.23,-197.55,158.76,6.54,-203,158.76,2.86,-196.11,4.0,0.6); Event:MovePlayer(32.0,0.0,2.4); if(Event:GetEventFlag(EventFlag.item_humanprincess)==1) then Event:SetAnimationId("Princess2", 2); Event:MoveNpc("Princess2",32.0,0.0,2.4); end coroutine.yield(); -- Event:SetCamera(0.10,28.17,0.00,158.76,6.54,-203); -- Event:SetParamDepthofField(1.54,0.60,0); Event:SetParamDepthofField(1.54,0.30,0); coroutine.yield(); Event:StopEnvironmental(soundList.SoundID.SE_cheer,1); Event:FadeOut(); coroutine.yield(); Event:UnlockPlayer() Event:RestoreCamera(); Event:RestoreDof(); -- Event:SetMap("D_20_9","-gtd20_9"); Event:SetMap("Field_91","-gtf91"); end