--水の神殿前のフックロープ使用場所の手前の床を踏んだとき function mainevent_watertemple1() 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_watertemple1)==1) --妖精姫が既にいて、かつこのイベントを既にみた場合 then Event:setItemMenuOpenFlag( 0 ); return; end if(Event:GetItem(58) ==1) --妖精姫が既にいて、かつこのイベントを既にみた場合 then Event:setItemMenuOpenFlag( 0 ); return; end Event:ResetDash(); Event:BackupCamera(); Event:BackupDof(); Event:SetPlayerDirection(2); Event:PlaySe(soundList.SoundID.SE_tinker_bell); Event:CreateNpc(-1.6,0.0,0.0,"PrincessBugSP8"); Event:SetNpcDirection("PrincessBugSP8",3); Event:SetCamera(0.10,34.24,0.67,102.92,11.42,-153.83) Event:SetParamDepthofField(1.59,0.40,0.0); Event:SetEventFlag(EventFlag.scene_watertemple1,1); --このイベントを見たフラグ Event:PauseEnemy(); Event:LockPlayer(); coroutine.yield(); Event:Wait(1.0); coroutine.yield(); Event:MoveNpc("PrincessBugSP8",-4.8,0.0,3.2,0); coroutine.yield(); Event:SetNpcDirection("PrincessBugSP8",3); Event:Print("/vhLee: Master "..Event:GetPlayerName().."!/rHow do we get across?/b/cl"); Event:Print("If we only had something/rthat could grab on to/rthat wooden pillar.../vn/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:MoveNpc("PrincessBugSP8",4.8,0.0,3.2,0); coroutine.yield(); Event:SetNpcVisible("PrincessBugSP8",0); Event:RestoreDof(); Event:RestoreCamera(); Event:UnlockPlayer(); Event:PlayEnemy(); Event:setItemMenuOpenFlag( 0 ); end