function n03youngmanc1_230() local Event=EventClass.Event; Event:PauseNpc(); Event:LockPlayer() Event:PauseEnemy() coroutine.yield(); Event:BackupCamera(); setcamera() coroutine.yield(); if(Event:GetEventFlag(EventFlag.item_tenkougen)==1 and Event:GetEventFlag(299)==1) then --てんこうげん+ACPに5回目フラグ if(Event:GetEventFlag(285)==0) then Event:SetEventFlag(285,1); --アーマードコアをもらったフラグ Event:Print("/vnFinally! The 3D mech/rgame is complete!/b/cl"); Event:Print("You should play it!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); geteventitem() Event:Print("/cl> Got the Armored Core!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); endgeteventitem() Event:RestoreCamera(); Event:PlayNpc(); Event:UnlockPlayer(); Event:PlayEnemy(); return; else if(Event:GetEventFlag(103)==1 and Event:GetEventFlag(107)==1 and Event:GetEventFlag(109)==1 and Event:GetEventFlag(119)==1 and Event:GetEventFlag(136)==1 and Event:GetEventFlag(139)==1 and Event:GetEventFlag(143)==1 and Event:GetEventFlag(161)==1 and Event:GetEventFlag(162)==1 and Event:GetEventFlag(163)==1 and Event:GetEventFlag(197)==1 and Event:GetEventFlag(201)==1 and Event:GetEventFlag(204)==1 and Event:GetEventFlag(232)==1 and Event:GetEventFlag(266)==1 and Event:GetEventFlag(268)==1 and Event:GetEventFlag(271)==1 and Event:GetEventFlag(272)==1 and Event:GetEventFlag(273)==1 and Event:GetEventFlag(276)==1 and Event:GetEventFlag(278)==1 and Event:GetEventFlag(285)==1 and Event:GetEventFlag(294)==1 and Event:GetEventFlag(307)==1 and Event:GetEventFlag(308)==1 and Event:GetEventFlag(291)==0) then Event:SetEventFlag(291,1); --ムーンライトソードをもらったフラグ Event:Print("/vnThanks for playing this/rgame! Here’s a token of/rour appreciation!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:Wait(0.5); coroutine.yield(); getspecialitem2(108) --ムーンライトソードを入手 Event:Print("/vn> Got the Moon Sword!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); endgetspecialitem2() Event:Wait(0.5); coroutine.yield(); Event:RestoreCamera(); Event:PlayNpc(); Event:UnlockPlayer(); Event:PlayEnemy(); return; else if(Event:GetEventFlag(291)==1) then Event:Print("/vnThanks for playing this/rgame!/b/co"); else Event:Print("/vnFinally! The 3D mech/rgame is complete!/b/co"); end end end else if(Event:GetEventFlag(EventFlag.item_orbcount)==5 and Event:GetEventFlag(298)==1 or Event:GetEventFlag(EventFlag.item_orbcount)==6 and Event:GetEventFlag(298)==1) then --オーブ5~6+ACPに4回目フラグ Event:SetEventFlag(299,1); Event:Print("/vnThere aren’t enough/rmissions! Add 20 more!/b/co"); else if(Event:GetEventFlag(EventFlag.item_orbcount)==4 and Event:GetEventFlag(297)==1) then --オーブ4+ACPに3回目 Event:SetEventFlag(298,1); Event:Print("/vnHmm... It’s starting to/rtake shape, but it isn’t/rquite right yet./b/co"); else if(Event:GetEventFlag(EventFlag.item_orbcount)==3 and Event:GetEventFlag(296)==1) then --オーブ3+ACPに2回目 Event:SetEventFlag(297,1); Event:Print("/vnDon’t sweat the details!/rJust make it happen!/b/co"); else --オーブ1~2+ACPに1回目(ここからオブジェクト出現) Event:SetEventFlag(296,1); Event:Print("/vnLet’s make a mech game/rin a 3D environment!/b/co"); end end end end Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:RestoreCamera(); Event:PlayNpc(); Event:PlayEnemy(); Event:UnlockPlayer(); return; end