--0902「ホワイト」を「パープル」に置換 function mainevent_whiteorbirai() local Event=EventClass.Event; if(Event:GetEventFlag(EventFlag.item_tenkougen)==1) --光のオーブを持ってるいる場合 then Event:Pause(); coroutine.yield(); Event:BackupCamera(); Event:BackupDof(); setnpccamerad("YoungMana8_010") coroutine.yield(); Event:Print("Man: Incredible! The six/rorbs formed the/rlegendary Light Orb!/b/cl"); Event:Print("Please, save the Kingdom/rof Dotnia! Only you can/rdefeat Fuelle!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:RestoreDof(); Event:RestoreCamera(); Event:Play(); return; end if(Event:GetEventFlag(EventFlag.item_whiteorb)==0) --パープルオーブを持っていない場合 then Event:Pause(); coroutine.yield(); Event:BackupCamera(); Event:BackupDof(); setnpccamerad("YoungMana8_010") coroutine.yield(); Event:Print("I’m sorry, but the Wind/rSage is out on a journey./b/cl"); Event:Print("He is seeking the power/rto seal the darkness./b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:RestoreDof(); Event:RestoreCamera(); Event:Play(); return; end if(Event:GetEventFlag(EventFlag.item_yelloworb)==0 or Event:GetEventFlag(EventFlag.item_greenorb)==0 or Event:GetEventFlag(EventFlag.item_grayorb)==0 or Event:GetEventFlag(EventFlag.item_blueorb)==0 or Event:GetEventFlag(EventFlag.item_redorb)==0) then --オーブを一つでも持っていない時。(パープルオーブはあって、他のオーブがないとき) Event:Pause(); coroutine.yield(); Event:BackupCamera(); Event:BackupDof(); setnpccamerad("YoungMana8_010") coroutine.yield(); Event:Print("Man: Oh my! Is that the/rPurple Orb!?/b/cl"); Event:Print("Once you find them all,/rthe Wind Sage himself/rwill seek you out./b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:RestoreDof(); Event:RestoreCamera(); Event:Play(); return; end if(Event:GetEventFlag(EventFlag.item_reflection)==0 or Event:GetEventFlag(EventFlag.item_normalmap)==0 or Event:GetEventFlag(EventFlag.item_frozenshader)==0 or Event:GetEventFlag(EventFlag.item_shorioti)==0) then --魔法を一つでも取り逃がしている時(オーブを全て持っていて魔法がたりないとき) Event:Pause(); coroutine.yield(); Event:BackupCamera(); Event:BackupDof(); setnpccamerad("YoungMana8_010") coroutine.yield(); Event:Print("Man: Amazing! You have/rthe orbs!? You are truly/rthe hero of legend!/b/cl"); Event:Print("If there are any sages/ryou haven’t met, you/rmust seek their wisdom./b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:RestoreDof(); Event:RestoreCamera(); Event:Play(); return; end --魔法もオーブもそろっているとき。姫を集めたかどうかは判定しない。 Event:Pause(); coroutine.yield(); Event:BackupCamera(); Event:BackupDof(); setnpccamerad("YoungMana8_010") coroutine.yield(); Event:Print("Man: Amazing! You have/rthe orbs!? You are truly/rthe hero of legend!/b/cl"); Event:Print("Have you reported this/rto the King? I will let/rthe Wind Sage know!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:RestoreDof(); Event:RestoreCamera(); Event:Play(); return; end