function n04youngwomana7_020() local Event=EventClass.Event; Event:LockPlayer(); Event:PauseNpc(); coroutine.yield(); Event:BackupCamera(); Event:BackupDof(); setnpccamerad("YoungWomana7_020") coroutine.yield(); if(Event:GetEventFlag(103)==0) --フラグがオンの場合 then if(Event:GetEventFlag(102)==1) --フラグがオンの場合 then Event:SetEventFlag(103,1); --まきの調達をクリアしたフラグ(103番) Event:Print("/vhAh, you’ve brought/rfirewood? Thank you./rYou may have this./b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); geteventitem() Event:Print("/vn> Got a Spa Egg!/b/cl"); -- おんせんたまごを手に入れる。 Event:Print("/vhThanks again./vn/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); endgeteventitem() Event:RestoreDof(); Event:RestoreCamera(); Event:PlayNpc(); Event:UnlockPlayer(); return; else Event:SetEventFlag(101,1); --まきの入手の依頼のフラグ(101番) Event:Print("/vhUh oh. We’ve run out/rof firewood./vn/b/co"); end else Event:Print("/vhThanks again./vn/b/co"); end Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:RestoreDof(); Event:RestoreCamera(); Event:PlayNpc(); Event:UnlockPlayer(); return; end