function gimmick_forest1() local Event=EventClass.Event; if(Event:GetEventFlag(176)==1) --ヒントを見終わってる時 then return; end if(Event:GetEventFlag(EventFlag.item_fairyprincess1)==0) --妖精がいない時 then return; end if(Event:GetEventFlag(326)==1 and Event:GetItem(15)==0) --妖精がいないVERのヒントを見終わっていてパララックスマップをまだ取っていないで再入場した時 then return; end Event:FadeBlack() Event:ResetDash(); Event:LockPlayer(); Event:PauseEnemy() Event:SetPlayerPosition(73,4,2) Event:SetPlayerDirection(0); coroutine.yield(); Event:FadeIn() coroutine.yield(); Event:Wait(1.0); coroutine.yield(); Event:PlaySe(soundList.SoundID.SE_tinker_bell); Event:CreateNpc(1.6,0.0,0.0,"PrincessBugSP1"); Event:SetNpcDirection("PrincessBugSP1",0); Event:Wait(0.5); coroutine.yield(); if(Event:GetItem(15)==1) then Event:SetEventFlag(176,1) Event:Print("/vhLee: Isn’t this Tabula/rRasa what Sage Indy was/rtalking about?/b/cl"); Event:Print("/vhHe told us how to reveal/rits secrets, right?/vn/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); else Event:SetEventFlag(326,1) Event:Print("/vhLee: These Tabula Rasa/rlook suspicious, but/rthey’re blank.../vn/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); end Event:SetNpcVisible("PrincessBugSP1",0); Event:UnlockPlayer(); Event:PlayEnemy() end function gimmick_forest2() local Event=EventClass.Event; if(Event:GetEventFlag(177)==1) --妖精姫が既にいて、かつこのイベントを既にみた場合 then Event:setItemMenuOpenFlag( 0 ); return; end Event:SetEventFlag(177,1); --このイベントを見たフラグ Event:ResetDash(); Event:PauseEnemy(); Event:LockPlayer(); Event:SetPlayerPosition(87,12,1) Event:SetPlayerDirection(0); coroutine.yield(); Event:Wait(1.0); coroutine.yield(); Event:MovePlayer(0.0,3.2,3.2); coroutine.yield(); Event:PlaySe(soundList.SoundID.SE_tinker_bell); Event:CreateNpc(1.6,0.0,0.0,"PrincessBugSP1"); Event:SetNpcDirection("PrincessBugSP1",0); Event:Wait(0.5); coroutine.yield(); Event:Print("/vhLee: Master, look! Even/rI can figure THIS one/rout! I’ll handle this!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:PlaySe(soundList.SoundID.SE_tinker_bell); Event:MoveNpc("PrincessBugSP1",0.0,1.6,3.2,0); coroutine.yield(); Event:PlaySe(soundList.SoundID.SE_tinker_bell); Event:MoveNpc("PrincessBugSP1",3.2,0.0,3.2,0); coroutine.yield(); Event:SetNpcDirection("PrincessBugSP1",2); Event:Wait(1.0); coroutine.yield(); Event:Print("/vhLee: If I push this, the/rdoor should open!/b/cl"); Event:Print("/vhHere goes!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:pushBlueSwitch(11,103) Event:MoveNpcAndY("PrincessBugSP1", 0.0, 0.0, -0.8, 12.0 ); coroutine.yield(); Event:Wait(1.0); coroutine.yield(); Event:popBlueSwitch(11,103); Event:MoveNpcAndY("PrincessBugSP1", 0.0, 0.0, 0.8, 12.0 ); coroutine.yield(); Event:SetNpcDirection("PrincessBugSP1",2); Event:Print("/vhLee: What!?/b/cl"); Event:Print("/vhLee: The switch went/rback to its position.../b/cl"); Event:Print("/vhArgh, I guess I spoke/rtoo soon.../b/cl"); Event:Print("/vhBy the way, this statue/rlooks expensive!/rCan we take it home...?/vn/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:PlaySe(soundList.SoundID.SE_tinker_bell); Event:MoveNpc("PrincessBugSP1",-3.2,0.0,3.2,0); coroutine.yield(); Event:PlaySe(soundList.SoundID.SE_tinker_bell); Event:MoveNpc("PrincessBugSP1",0.0,-1.6,3.2,0); coroutine.yield(); Event:SetNpcDirection("PrincessBugSP1",2); coroutine.yield(); Event:Wait(0.5); coroutine.yield(); Event:SetNpcVisible("PrincessBugSP1",0); Event:UnlockPlayer(); Event:PlayEnemy(); Event:setItemMenuOpenFlag( 0 ); end function gimmick_forest3() local Event=EventClass.Event; if(Event:GetEventFlag(177)==1) --妖精姫が既にいて、かつこのイベントを既にみた場合 then Event:setItemMenuOpenFlag( 0 ); return; end Event:ResetDash(); Event:PauseEnemy(); Event:LockPlayer(); Event:SetPlayerDirection(2); Event:PlaySe(soundList.SoundID.SE_tinker_bell); Event:CreateNpc(0.0,0.0,-1.6,"PrincessBugSP2"); Event:SetNpcDirection("PrincessBugSP2",2); Event:SetEventFlag(177,1); --このイベントを見たフラグ coroutine.yield(); Event:Wait(1.0); coroutine.yield(); -- Event:MoveNpc("PrincessBugSP2",-4.8,0.0,3.2,0); -- coroutine.yield(); -- Event:SetNpcDirection("PrincessBugSP1",3); Event:Print("/vhリー「おや? /r たしかにスイッチを押したはずですが…/r 押したままに できないのでしょうか?/b/cl"); Event:Print("リー「あの石ぞうも なんだか/r あやしいですね/vn/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); -- Event:MoveNpc("PrincessBugSP2",4.8,0.0,3.2,0); -- coroutine.yield(); Event:SetNpcVisible("PrincessBugSP2",0); Event:UnlockPlayer(); Event:PlayEnemy(); Event:setItemMenuOpenFlag( 0 ); end function gimmick_forest4() local Event=EventClass.Event; if(Event:GetEventFlag(179)==1) --妖精姫が既にいて、かつこのイベントを既にみた場合 then Event:setItemMenuOpenFlag( 0 ); return; end if(Event:isUseLightItem() == 1) --あかりがついている場合。 then Event:setItemMenuOpenFlag( 0 ); Event:SetEventFlag(179,1); --このイベントを見たフラグ return; end Event:ResetDash(); Event:PauseEnemy(); Event:LockPlayer(); Event:SetPlayerDirection(0); Event:PlaySe(soundList.SoundID.SE_tinker_bell); Event:CreateNpc(0.0,0.0,1.6,"PrincessBugSP3"); Event:SetNpcDirection("PrincessBugSP3",0); Event:SetEventFlag(179,1); --このイベントを見たフラグ coroutine.yield(); Event:Wait(1.0); coroutine.yield(); Event:Print("/vhLee: Master! It’s too/rdark to see anything!/rDo you have a light?/vn/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:SetNpcVisible("PrincessBugSP3",0); Event:UnlockPlayer(); Event:PlayEnemy(); Event:setItemMenuOpenFlag( 0 ); end function gimmick_forest5() local Event=EventClass.Event; if(Event:GetEventFlag(180)==1) then Event:setItemMenuOpenFlag( 0 ); return; end Event:ResetDash(); Event:PauseEnemy(); Event:LockPlayer(); Event:SetPlayerDirection(0); Event:PlaySe(soundList.SoundID.SE_tinker_bell); Event:CreateNpc(1.6,0.0,0.0,"PrincessBugSP4"); Event:SetNpcDirection("PrincessBugSP4",0); Event:SetEventFlag(180,1); --このイベントを見たフラグ coroutine.yield(); Event:Wait(1.0); coroutine.yield(); if(Event:GetEventFlag(324)==1) then Event:Print("/vhLee: Wow, where did you/rlearn to use bombs to/rblow up walls!? Amazing!/vn/b/co"); else Event:Print("/vhLee: Hey! This wall has/ra crack! Maybe we can/rdestroy it!/vn/b/co"); end Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:SetNpcVisible("PrincessBugSP4",0); Event:UnlockPlayer(); Event:PlayEnemy(); Event:setItemMenuOpenFlag( 0 ); end function gimmick_forest6() local Event=EventClass.Event; if(Event:GetEventFlag(181)==1) --妖精姫が既にいて、かつこのイベントを既にみた場合 then Event:setItemMenuOpenFlag( 0 ); return; end Event:ResetDash(); Event:PauseEnemy(); Event:LockPlayer(); Event:SetPlayerDirection(2); Event:PlaySe(soundList.SoundID.SE_tinker_bell); Event:CreateNpc(-1.6,0.0,1.6,"PrincessBugSP"); Event:SetNpcDirection("PrincessBugSP",2); Event:SetEventFlag(181,1); --このイベントを見たフラグ coroutine.yield(); Event:Wait(1.0); coroutine.yield(); Event:Print("/vhLee: Master! The floor/rnext to the switch has/ra different color!/b/cl"); Event:Print("Maybe there’s a secret/rto that floor tile.../vn/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:SetNpcVisible("PrincessBugSP",0); Event:UnlockPlayer(); Event:PlayEnemy(); Event:setItemMenuOpenFlag( 0 ); end