function n16chickena5_060() local Event=EventClass.Event; if(Event:GetEventFlag(129)==1) --人間に戻った後 then Event:Pause(); coroutine.yield(); Event:BackupCamera(); Event:BackupDof(); setnpccamerad("Chickena5_060") coroutine.yield(); Event:Print("/vnFrom now on, I’m going/rto be a vegetarian.../b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:RestoreDof(); Event:RestoreCamera(); Event:Play(); return; end if(Event:GetEventFlag(109)==1) --しんじつのかがみをもっている。 then Event:SetEventFlag(129,1); --犬を人に戻したフラグ(129番 Event:LockPlayer(); Event:BackupCamera(); Event:BackupDof(); setnpccamerad("Chickena5_060") Event:Print("> The Mirror of Truth/rshined!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:PlaySe(soundList.SoundID.SE_invisible); Event:PlayFlash(1,0) coroutine.yield(); Event:Wait(0.5); coroutine.yield(); Event:SetNpcNode("Chickena5_060",2); --登録した3番目の立ち絵に固定 Event:SetAnimationId("Chickena5_060", 1); Event:Wait(1.0); coroutine.yield(); Event:Print("/cl/vnAh! Thank you for saving/rme! I was about to be/reaten!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:SetEventFlag(221,Event:GetEventFlag(221)+1); --鏡に呪いエネルギーをチャージ if(Event:GetEventFlag(221)==7) --しんじつのかがみをもっている。 then Event:SetEventFlag(221,7);--221番を7に固定 Event:PlaySe(soundList.SoundID.SE_pull_sword); coroutine.yield(); Event:PlayFlash(1,0) coroutine.yield(); Event:Print("> The Mirror of Truth/rglowed with energy!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); end Event:RestoreDof(); Event:RestoreCamera(); Event:UnlockPlayer(); else Event:Pause(); coroutine.yield(); Event:BackupCamera(); Event:BackupDof(); setnpccamerad("Chickena5_060") coroutine.yield(); Event:Print("/vnBock bock bacack.../b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:RestoreDof(); Event:RestoreCamera(); Event:Play(); return; end end