--砂漠の神殿前の岩のそばの床を踏んだとき function mainevent_deserttemple1() local Event=EventClass.Event; if(Event:GetEventFlag(EventFlag.item_fairyprincess1)==0) --妖精姫がいない場合 then Event:setItemMenuOpenFlag( 0 ); return; end if(Event:GetEventFlag(EventFlag.item_fairyprincess1)==1 and Event:GetEventFlag(EventFlag.scene_deserttemple1)==1) --妖精姫が既にいて、かつこのイベントを既にみた場合 then Event:setItemMenuOpenFlag( 0 ); return; end Event:ResetDash(); Event:PauseEnemy(); Event:LockPlayer(); Event:FadeOut(); coroutine.yield(); Event:SetEventFlag(EventFlag.scene_deserttemple1,1); --このイベントを見たフラグ Event:SetPlayerPosition(59,3,0) Event:SetPlayerDirection(3); Event:BackupCamera(); Event:BackupDof(); Event:SetCamera(0.10,55.49,0.00,97.10,11.57,-206.36); Event:SetParamDepthofField(1.37,0.30,0.0); Event:FadeIn(); coroutine.yield(); Event:PlaySe(soundList.SoundID.SE_tinker_bell); Event:CreateNpc(1.6,0.0,0.0,"PrincessBugSP"); Event:SetNpcDirection("PrincessBugSP",3); coroutine.yield(); Event:Wait(1.0); coroutine.yield(); Event:SetNpcDirection("PrincessBugSP",2); coroutine.yield(); Event:Print("/vhLee: This rock is in our/rway, Master.../b/cl"); Event:Print("I wish we could just/rblow it up.../vn/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:SetNpcVisible("PrincessBugSP",0); Event:RestoreDof(); Event:RestoreCamera(); Event:UnlockPlayer(); Event:PlayEnemy(); Event:setItemMenuOpenFlag( 0 ); end