function mainevent_swordlv1() local Event=EventClass.Event; if(Event:GetEventFlag(EventFlag.item_swordlv1)==1) --このイベントを見終わっている場合 then return; end if ( Event:IsSpelunker() ) then mainevent_swordlv1spelunker() return; end --みていない場合 Event:PauseEnemy(); Event:LockPlayer(); coroutine.yield(); Event:BackupCamera(); Event:BackupDof(); Event:FadeOut() coroutine.yield(); Event:SetStatusVisible(0); Event:SetPlayerPosition(48,62,0); --変更箇所 -- Event:SetCamera(0.10,2.83,41.67,80.24,1.07,-106.16) -- 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:FadeIn() coroutine.yield(); coroutine.yield(); Event:Print("/vnThere is an old sword/rstuck deep inside its/rstone base!/b/cl"); Event:Print("> Pull it out?/co"); Event:WaitContinue(); coroutine.yield(); Event:Select(); coroutine.yield(); if(Event:GetSelect()==0) then Event:SetEventFlag(EventFlag.item_fairyprincess1,1); --妖精姫がいる状態のフラグ Event:CloseMessage(); coroutine.yield(); Event:SetNpcNode("SwordPedestal",1); Event:PlaySe(soundList.SoundID.SE_flash_a); Event:pointLightOff(); getspecialitem2(95); --いにしえのけん入手 Event:RestoreCamera(); Event:RestoreDof(); Event:BackupCamera(); Event:BackupDof(); Event:Print("> Got the Ancient Sword!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); endgetspecialitem2() coroutine.yield(); Event:SetEventFlag(EventFlag.item_swordlv1,1); --いにしえのけんを入手 --変更箇所 -- Event:SetCamera(0.10,3.33,229.15,72.35,1.70,-102.97); Event:SetCamera(0.10,7.13,227.22,72.76,1.92,-103.50); --変更箇所 Event:PlaySe(soundList.SoundID.SE_tinker_bell); --0911 -- Event:PlayPanCamera(77.60,1.15,-118.0,77.60,1.15,-105.00,77.60,1.15,-109.7,77.60,1.15,-105.00,4.0,0.6); Event:PlayPanCamera2(77.60,9.95,-118.0,77.60,1.15,-105.00,77.60,2.75,-109.7,77.60,1.15,-105.00,4.0,0.6); Event:Wait(3.5); coroutine.yield(); Event:SetPlayerDirection(1); Event:Wait(0.5); coroutine.yield(); Event:CreateNpc(0.0,0.0,-3.2,"PrincessBugSP"); Event:setPointLight(0,77.5,1.51,-102.5); --変更箇所 -- Event:SetParamDepthofField(0.78,0.80,0.0); Event:SetParamDepthofField(0.65,0.90,0.0); --0907 SE Event:PlaySe(soundList.SoundID.SE_tinker_bell); --SEを1回流す if(Event:GetFromMode() == 1) then Event:Print("/vhLee: Ah, welcome back,/rMaster "..Event:GetPlayerName().."!/b/cl"); Event:Print("You’re brave to take on/rthis mode, but I’m sure/ryou can do it!/b/co"); else Event:Print("/vhVoice: Wowwww! The true/rhero has finally emerged!/b/cl"); Event:Print("OーOh! My apologies! My/rname is Lee, and I’ve/rbeen waiting for you!/b/cl"); Event:Print("Lee: Please tell me your/rname, great hero!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); if(Event:GetJobType()==2) then Event:Print("Hmm... "..Event:GetPlayerName().."? Where/rhave I heard that name?/b/cl"); else Event:Print("Ah, "..Event:GetPlayerName().."? Such a/rfitting name for a hero!/b/cl"); end --0905分岐 if(Event:GetJobType()==0) then Event:Print("Huh!? The legendary hero/ris your ancestor!?/b/cl"); Event:Print("No wonder that sword/rlooks so right for you./b/cl"); end if(Event:GetJobType()==1) then if(Event:GetPlayerSex()==0) then Event:Print("What!? You’re the prince/rof Dottano Kingdom!?/b/cl"); Event:Print("Ah, you do have a very/rroyal presence. I should/rhave noticed!/vn/b/cl"); end if(Event:GetPlayerSex()==1) then Event:Print("What!? You’re the princess/rof Dottano Kingdom!?/b/cl"); Event:Print("Ah, you do have a very/rroyal presence. I should/rhave noticed!/vn/b/cl"); end end if(Event:GetJobType()==2) then Event:Print("Wait! You’re the famous/rscholar, "..Event:GetPlayerName()..",/raren’t you!?/b/cl"); Event:Print("I read that thesis you/rpublished on saved data!/rVery interesting!/vn/b/cl"); end -- Event:Print("/vhI just know you’re the/rone who will save the/rworld, Master "..Event:GetPlayerName().."!/b/cl"); Event:Print("But the road you walk/ris a dangerous one.../b/cl"); Event:Print("That is why I wish to/raccompany you! I swear/rI’ll be useful!/vn/b/co"); end Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:SetupBGMInProportion(0.1,0.3) Event:PlaySe(soundList.SoundID.SE_firend); Event:Wait(6.5); coroutine.yield(); Event:SetupBGMOutProportion(0.5) Event:Print("/vn> Lee joined the party!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); --修正0902 Event:Print("/vhLee: Let us return to/rthe king with the proof/rthat you are a hero!/vn/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:Wait(0.5); coroutine.yield(); --0907 SE Event:PlaySe(soundList.SoundID.SE_tinker_bell); --SEを1回流す coroutine.yield(); Event:MoveNpc("PrincessBugSP",0.0,1.6,3.2,0); coroutine.yield(); Event:Wait(0.5); coroutine.yield(); Event:SetNpcVisible("PrincessBugSP",0); Event:pointLightOff(); Event:Wait(0.5); coroutine.yield(); --Event:allEffectOff(); Event:RestoreCamera(); Event:RestoreDof(); Event:SetStatusVisible(1) Event:UnlockTrophy(34); else --修正0902 Event:Print("/cl/vhVoice: WHAT!? You came/rall the way here to NOT/rpull it out!?/vn/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:RestoreCamera(); Event:RestoreDof(); Event:SetStatusVisible(1) end Event:UnlockPlayer(); Event:PlayEnemy(); end --------------------------------------------------------------------------------------------------- function mainevent_swordlv1_2() local Event=EventClass.Event; if(Event:GetEventFlag(EventFlag.scene_herodream2)==0) --剣を刺していない場合。 then return; end if(Event:GetEventFlag(EventFlag.item_swordlv1_2)==1) --このイベントを見終わっている場合 then Event:setItemMenuOpenFlag( 0 ); return; end --みていない場合 Event:ResetDash(); Event:PauseEnemy() Event:LockPlayer() Event:SetEventFlag(EventFlag.item_swordlv1_2,1) Event:BackupCamera(); Event:BackupDof(); -- Event:SetPlayerPosition(48,34,0) Event:SetPlayerDirection(0); Event:DestinationPlayer( 48, 44, 3.2 ); coroutine.yield(); Event:SetPlayerDirection(0) Event:Wait(0.5) coroutine.yield(); Event:PlayEnvironmental(soundList.SoundID.SE_quake,0.1); Event:SetCamera(0.3) Event:Wait(1.0) coroutine.yield(); Event:StopEnvironmental(soundList.SoundID.SE_quake,0.1); Event:RestoreCamera(); Event:RestoreDof(); coroutine.yield(); Event:Wait(0.3) coroutine.yield(); Event:PlayFlash(2,0.4) --SE(flash) Event:PlaySe(soundList.SoundID.SE_surround_thunder); --SEを1回流す coroutine.yield(); Event:StopBgm(); Event:PlayBgm(soundList.SoundID.BGM_boss01); Event:UnlockPlayer(); Event:PlayEnemy(); end ------------------------------------------------------------ function mainevent_swordlv1spelunker() local Event=EventClass.Event; Event:PauseEnemy(); Event:LockPlayer(); coroutine.yield(); Event:BackupCamera(); Event:BackupDof(); Event:FadeOut() coroutine.yield(); Event:SetStatusVisible(0); Event:SetPlayerPosition(48,62,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:FadeIn() coroutine.yield(); coroutine.yield(); Event:Print("/vnThere is an old sword/rstuck deep inside its/rstone base!/b/cl"); Event:Print("> Pull it out?/co"); Event:WaitContinue(); coroutine.yield(); Event:Select(); coroutine.yield(); if(Event:GetSelect()==0) then Event:SetEventFlag(EventFlag.item_fairyprincess1,1); --妖精姫がいる状態のフラグ Event:CloseMessage(); coroutine.yield(); Event:SetPlayerDirection(1); Event:Print("/cl/vhVoice: Waaaait!/r"); Event:Print("Are you really going to/rpull that thing out!?/b/cl"); Event:Print("You’ll never make it in/rsuch a dangerous world,/rSir! Please, give up!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:Wait(0.5); coroutine.yield(); Event:SetPlayerDirection(0); Event:Print("Ah! What are you doing!?/rDon’t pull it! No! NOOO!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:Wait(0.5); coroutine.yield(); Event:SetNpcNode("SwordPedestal",1); Event:PlaySe(soundList.SoundID.SE_flash_a); Event:pointLightOff(); getspecialitem2(95); --いにしえのけん入手 Event:RestoreCamera(); Event:RestoreDof(); Event:BackupCamera(); Event:BackupDof(); Event:Print("/vn> Got the Ancient Sword!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); endgetspecialitem2() coroutine.yield(); Event:SetEventFlag(EventFlag.item_swordlv1,1); --いにしえのけんを入手 Event:SetCamera(0.10,7.13,227.22,72.76,1.92,-103.50); Event:PlaySe(soundList.SoundID.SE_tinker_bell); Event:PlayPanCamera2(77.60,9.95,-118.0,77.60,1.15,-105.00,77.60,2.75,-109.7,77.60,1.15,-105.00,4.0,0.6); Event:Wait(3.5); coroutine.yield(); Event:SetPlayerDirection(1); Event:Wait(0.5); coroutine.yield(); Event:CreateNpc(0.0,0.0,-3.2,"PrincessBugSP"); Event:setPointLight(0,77.5,1.51,-102.5); Event:SetParamDepthofField(0.65,0.90,0.0); Event:PlaySe(soundList.SoundID.SE_tinker_bell); --SEを1回流す Event:Print("/vhAgh... You did it. Now/rwe’re in for it.../b/cl"); Event:Print("I’m Lee. Nice to meet you./b/cl"); Event:Print("I just know you’re the/rone who will save the/rworld, Master "..Event:GetPlayerName().."!/b/cl"); Event:Print("This is going to be the/rmost agonising and/rperilous quest ever.../b/cl"); Event:Print("That is why I wish to/raccompany you! I swear/rI’ll be useful!/vn/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:SetupBGMInProportion(0.1,0.3) Event:PlaySe(soundList.SoundID.SE_firend); Event:Wait(6.5); coroutine.yield(); Event:SetupBGMOutProportion(0.5) Event:Print("/vn> Lee joined the party!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); --修正0902 Event:Print("/vhLee: Let us return to/rthe king with the proof/rthat you are a hero!/vn/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:Wait(0.5); coroutine.yield(); Event:PlaySe(soundList.SoundID.SE_tinker_bell); --SEを1回流す coroutine.yield(); Event:MoveNpc("PrincessBugSP",0.0,1.6,3.2,0); coroutine.yield(); Event:Wait(0.5); coroutine.yield(); Event:SetNpcVisible("PrincessBugSP",0); Event:pointLightOff(); Event:Wait(0.5); coroutine.yield(); --Event:allEffectOff(); Event:RestoreCamera(); Event:RestoreDof(); Event:SetStatusVisible(1) Event:UnlockTrophy(34); else --修正0902 Event:Print("/cl/vhVoice: What a wise/rdecision!/vn/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:RestoreCamera(); Event:RestoreDof(); Event:SetStatusVisible(1) end Event:UnlockPlayer(); Event:PlayEnemy(); end