function n03youngmana2_020() local Event=EventClass.Event; Event:LockPlayer(); Event:PauseNpc(); coroutine.yield(); Event:BackupCamera(); Event:BackupDof(); setnpccamerac("YoungMana2_020") coroutine.yield(); if(Event:GetItem(57)==1) --ダッシュブーツを持っている場合 then if(Event:GetItem(93)==1) --らいじんのたてをもっている場合 then if(Event:GetEventFlag(195)==1) --カラサワをもっている場合 then Event:Print("Dic: Go get ’em, Raven!/b/co"); else if(Event:GetEventFlag(194)==1 and Event:GetEventFlag(237)==1) --資金援助(2回目)をして、一度宿屋に泊っていない場合 then Event:Print("/clDic: I appreciate this!/rGive me some time, and/rI’ll show you results!/b/co"); else if(Event:GetEventFlag(194)==1 and Event:GetEventFlag(237)==0) --資金援助(2回目)をして、一度宿屋に泊った場合 then Event:SetEventFlag(195,1); --195番のフラグがオン --カラサワを入手したフラグ Event:Print("/vnDic: It’s done! I dare/rsay it’s a masterpiece!/b/cl"); Event:Print("I really owe you for all/ryour investments.../b/cl"); Event:Print("I know! Why don’t you/rtake this and use it!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:Wait(0.5); coroutine.yield(); getspecialitem3(111) --カラサワを入手 Event:RestoreDof(); Event:RestoreCamera(); Event:BackupCamera(); Event:BackupDof(); Event:Print("> Got the Karasawa!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); endgetspecialitem3() setnpccamerac("YoungMana2_020") Event:Wait(0.5); coroutine.yield(); Event:Print("From now on, I’ll call/ryou Raven!/b/co"); else if(Event:GetEventFlag(EventFlag.item_whiteorb)==1) --パープルオーブをもっている場合 then Event:Print("/vnDic: Hey! I’m workin’ on/rsomething big.../b/cl"); Event:Print("/clBut it’s costly! Can you/rspare me 5000G?/co"); Event:WaitContinue(); coroutine.yield(); Event:Select(); coroutine.yield(); if(Event:GetSelect()==0) then if(Event:GetMoney()>4999) then Event:SetEventFlag(237,1); --237番のフラグがオン --宿屋フラグがON Event:SetEventFlag(194,1); --194番のフラグがオン --研究家にお金を援助2したフラグ Event:PlaySe(soundList.SoundID.SE_item_purchase); coroutine.yield(); Event:SetMoney(Event:GetMoney()-5000); Event:Wait(0.5); coroutine.yield(); Event:Print("/clDic: Sweetdiculous!/rGimme some time, and/rI’ll show ya what it is!/b/co"); else Event:Print("/clDic: You’re comin’ up/rshort.../b/co"); end else Event:Print("/clDic: That’s a shame.../b/co"); end else Event:Print("/vnThat thing should/rprotect you from/relectricity./b/co"); end end end end else if(Event:GetEventFlag(144)==1 and Event:GetEventFlag(237)==1) --発明家にお金を援助していて、一度宿屋に泊っていない場合 then Event:Print("/clDic: Hey! Thanks for the/rhelp! I’ll have it done/rsoon, so check back!/b/co"); else if(Event:GetEventFlag(144)==1 and Event:GetEventFlag(237)==0) --発明家にお金を援助していて、一度宿屋に泊った場合 then Event:Print("/vnDic: Done! I call it.../rRubber! It totally/rgrounds electricity./b/cl"); Event:Print("I never coulda finished/rif it weren’t for you./b/cl"); Event:Print("Tell ya what! I’ll apply/rthis to your shield!/b/cl"); Event:Print("Gimme that for a sec.../b/cl"); Event:Print("Here we go... All set!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:Wait(0.5); coroutine.yield(); getspecialitemRaizin() --らいじんのたてを入手 Event:RestoreDof(); Event:RestoreCamera(); Event:BackupCamera(); Event:BackupDof(); Event:Print("> Got the Bolt Shield!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); endgetspecialitemRaizin(93) setnpccamerac("YoungMana2_020") Event:Wait(0.5); coroutine.yield(); Event:Print("That thing should/rprotect you from/relectricity./b/co"); else if(Event:GetItem(92)==1) --炎の盾をもっている場合 then Event:Print("/cl/vnDic: Glad you’re here!/b/cl"); Event:Print("/clI’ve got a new project,/rbut I don’t have enough/rmoney to go on.../b/cl"); Event:Print("/clI hate to ask ya, but/rdo you have 1000G to/rinvest in it?/co"); Event:WaitContinue(); coroutine.yield(); Event:Select(); coroutine.yield(); if(Event:GetSelect()==0) then if(Event:GetMoney()>999) then Event:SetEventFlag(144,1); --144番のフラグがオン --研究家にお金を援助したフラグ Event:SetEventFlag(237,1); --237番のフラグがオン --宿屋フラグがON Event:PlaySe(soundList.SoundID.SE_item_purchase); coroutine.yield(); Event:SetMoney(Event:GetMoney()-1000); Event:Wait(0.5); coroutine.yield(); Event:Print("/clDic: What a pal! I’ll/rhave it done in a jiffy,/rso check it out later!/b/co"); else Event:Print("/clDic: You’re comin’ up/rshort.../b/co"); end else Event:Print("/clDic: Well shucks.../b/co"); end else Event:Print("/vnDic: How are the boots?/rAre they comfy?/co");--ダッシュブーツを持っていて他のフラグがオフのとき Event:WaitContinue(); coroutine.yield(); Event:Select(); coroutine.yield(); if(Event:GetSelect()==0) then Event:Print("/clDic: Good, good. I’m/rglad I made those./b/co"); else Event:Print("/clWHAT!? Well, try ’em/rwith a sword that has/rgood penetration!/b/co"); end end end end end else Event:SetEventFlag(100,1); --100番のフラグがオン Event:Print("/vnHi! I’m an inventor./rName’s Dic./b/cl"); Event:Print("Say, do you wanna try/rout my latest creation?/rI call ’em “Dash Boots.”/co"); Event:WaitContinue(); coroutine.yield(); Event:Select(); coroutine.yield(); if(Event:GetSelect()==0) then Event:Print("/clDic: Great, let’s do it!/b/cl"); Event:Print("Ahem./b/cl"); Event:Print("MESSAGE FROM DR. DIC./b/cl"); Event:Print("DASH BOOTS COMPLETED!/rGET YOUR WEAPONS READY!/b/cl"); Event:Print("GET EQUIPPED WITH DASH/rBOOTS./b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:Wait(0.5); coroutine.yield(); getspecialitem3(57) --ダッシュブーツを入手 Event:RestoreDof(); Event:RestoreCamera(); Event:BackupCamera(); Event:BackupDof(); Event:Print("> Got the Dash Boots!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); endgetspecialitem3() setnpccamerac("YoungMana2_020") Event:Wait(0.5); coroutine.yield(); Event:Print("Dic: I always wanted to/rdo that! Thanks./b/cl"); Event:Print("Now you can press ■ to/rdash./b/co"); else Event:Print("/clDic: That’s a shame.../rCome see me if you/rchange your mind./b/co"); end end Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:RestoreDof(); Event:RestoreCamera(); Event:PlayNpc(); Event:UnlockPlayer(); return; end --雷神の盾専用 function getspecialitemRaizin() local Event=EventClass.Event; Event:Wait(1.0); coroutine.yield(); Event:SavePlayerAngle(); Event:PlaySe(soundList.SoundID.SE_important_item_get); Event:StartHailItem(93,1); Event:PlayCamera(0.0,2.0,1); coroutine.yield(); return; end function endgetspecialitemRaizin(n) local Event=EventClass.Event; Event:AddItem2(n); Event:EndHailItem(); Event:RestorPlayerAngle(); return; end