function n08boya10_010() local Event=EventClass.Event; Event:LockPlayer(); Event:PauseNpc(); coroutine.yield(); Event:BackupCamera(); Event:BackupDof(); setnpccamerad("Boya10_010") coroutine.yield(); if(Event:GetItem(57)==1) --ダッシュブーツを持っている場合 then if(Event:GetEventFlag(223)==1) --ビームサーベルをてにいれている場合 then Event:Print("/vhDim: Thanks to you,/rI finally finished it!/b/cl"); Event:Print("/vhDo I work quickly?/b/cl"); Event:Print("One time I finished 60%/rof my work in a day!/vn/b/co"); else if(Event:GetEventFlag(222)==1) --発明家2の依頼を受けている場合 then if(Event:GetEventFlag(221) < 4) --真実の鏡のイベントを0~3回クリアしている場合 then Event:Print("/vhDim: Hmm, I think we’ll/rneed more power still./b/cl"); Event:Print("There must be more/rcursed people out there./b/cl"); Event:Print("Please find the/rsuffering people!/b/cl"); Event:Print("Keep at it!/vn/b/co"); else if(Event:GetEventFlag(221) > 3 and Event:GetEventFlag(221) < 7) --真実の鏡のイベントを4~6回クリアしている場合 then Event:Print("/vhDim: I need a little/rmore energy. Keep going!/vn/b/co"); else if(Event:GetEventFlag(221)== 7) --真実の鏡のイベントを全てクリアしている場合 then Event:SetEventFlag(223,1); --ビームサーベルを入手したフラグ Event:Print("/vhDim: Yes! We have the/rpower we need now!/b/cl"); Event:Print("This will do just fine!/b/cl"); Event:Print("I’ll get right to work!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:FadeOut(); coroutine.yield();--フェードアウト Event:PlayEnvironmental(soundList.SoundID.SE_invention,6); Event:Wait(6.0); coroutine.yield(); Event:StopEnvironmental(soundList.SoundID.SE_invention,1); Event:Print("/vhDim: Done!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:FadeIn(); coroutine.yield();--フェードイン Event:Print("It’s finally finished!/b/cl"); Event:Print("To repay you, I’ll let/ryou keep this sword!/rUse it as you will!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:Wait(0.5); coroutine.yield(); getspecialitem3(116) --ビームサーベルを入手 Event:Print("/vn> Got the Beam Saber!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); endgetspecialitem3() Event:Wait(0.5); coroutine.yield(); Event:Print("/vhDim: Thanks to you,/rI finally finished it!/vn/b/co"); end end end else if(Event:GetEventFlag(109)==1) --真実の鏡を持っている場合 then Event:Print("/vhDim: That’s a rare item/ryou have with you./b/cl"); Event:Print("That mirror can turn a/rcurse into an energy/rsource./b/cl"); Event:Wait(0.5); coroutine.yield(); Event:Print("I have an idea! I can/ruse that mirror to make/rmy invention work!/b/cl"); Event:Print("I have a favour to ask.../rCan you help me?/co"); Event:WaitContinue(); coroutine.yield(); Event:Select(); coroutine.yield(); if(Event:GetSelect()==0) then --はい Event:Print("/clDim: Thank you!/b/cl"); Event:Print("I’m trying to create a/rnew sword, but it’ll/rtake a great power./b/cl"); Event:Print("That’s where that mirror/ryou have comes in!/b/cl"); Event:Print("Like I said, the mirror/rconverts a curse into/rraw energy./b/cl"); Event:Print("So if you can undo/rcurses with it, you’ll/rbe collecting energy!/b/cl"); Event:Print("Can you try to purge as/rmany curses with that/rmirror as you can?/b/cl"); Event:Print("I’ll pay you back!/b/cl"); Event:Print("How’s that sound?/co"); Event:WaitContinue(); coroutine.yield(); Event:Select(); coroutine.yield(); if(Event:GetSelect()==0) then Event:SetEventFlag(222,1); --発明家2の依頼を受けたフラグ Event:Print("/clGreat! I’ll be counting/ron you!/vn/b/co"); else Event:Print("/clDim: I see.../vn/b/co"); end else --いいえ Event:Print("/clDim: I see.../vn/b/co"); end else --真実の鏡を持っていない場合 Event:Print("/vhDim: I’m the grandson of/rDic from Raejack/rVillage. Need my help?/b/cl"); Event:Print("Huh? You want me to/rsummon “Deathtax”?/b/cl"); Event:Print("Hahaha! I couldn’t/rdo that if I wanted to./vn/b/co"); end end end else --ダッシュブーツを持っていない場合 Event:Print("/vhDim: I’m the grandson of/rDic from Raejack/rVillage. Need my help?/b/cl"); Event:Print("Huh? You want me to/rsummon “Deathtax”?/b/cl"); Event:Print("Hahaha! I couldn’t/rdo that if I wanted to./vn/b/co"); end Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:RestoreDof(); Event:RestoreCamera(); Event:PlayNpc(); Event:UnlockPlayer(); return; end