function mainevent_opening2() --mainevent_opening2をみていないとき local Event=EventClass.Event; if(Event:GetEventFlag(EventFlag.item_swordlv1)==1) --剣LV1を持ってきた時 then Event:SetEventFlag(EventFlag.scene_opening2,1); --mainevent_opening2クリアフラグ Event:LockPlayer(); coroutine.yield(); Event:BackupCamera(); Event:BackupDof(); Event:FadeOut() coroutine.yield(); Event:SetStatusVisible(0); setnpccamera("Kinga1_010") Event:SetPlayerPosition(7,33,0) Event:SetPlayerDirection(0) Event:SetNpcDirection("Kinga1_010",1); Event:FadeIn() coroutine.yield(); if ( Event:IsSpelunker() ) then Event:Print("King: YーYou actually/rpulled out that sword!?/rI didn’t expect that.../b/cl"); Event:Print("Now, listen carefully.../b/cl"); else Event:Print("King: That is the sword/rof legend! You are/rindeed the true hero!/b/cl"); Event:Print("Now, listen carefully.../b/cl"); end if(Event:GetFromMode() == 1) then Event:Print("King: Your task is the/rsame as before.../b/cl"); else Event:Print("Onyx, the Dark King,/rbrought a dark age upon/rthe kingdom... But...!/b/cl"); Event:Print("The hero, with the aid/rof the six sages, sealed/rhim inside a Dark Orb!/b/cl"); Event:Print("And now... That Dark Orb/rhas been stolen. The/rthief’s name is Fuelle./b/cl"); Event:Print("Deeming himself a Dark/rBishop, he believes he/rcan wield the orb.../b/cl"); Event:Print("And with Onyx’s power,/rhe plans on taking over/rthe entire world./b/cl"); Event:Print("The only way to stop him/ris with the six legendary/rorbs of the six sages!/b/cl"); if ( Event:IsSpelunker() ) then Event:Print("Spelunker... I beg you!/b/cl"); --スペランカーモード else Event:Print("I beseech you, "..Event:GetPlayerName().."!/b/cl"); end end Event:Print("Please find the six orbs/rand the six sages to/rbring peace to the land!/b/co"); Event:WaitContinue(); coroutine.yield(); while(true) do Event:Select(); coroutine.yield(); if(Event:GetSelect()==0) then if ( Event:IsSpelunker() ) then Event:Print("/clYes, but... Can’t we/rwait a little longer for/ra true hero...? No...?/b/cl"); else Event:Print("/clKing: Ah, "..Event:GetPlayerName().."! I/rknew you would shoulder/rthis burden! Thank you!/b/cl"); ---0905分岐 if(Event:GetJobType()==0) then Event:Print("The spirit of your/rheroic ancestor must be/rbeaming with pride./b/cl"); end if(Event:GetJobType()==1) then if(Event:GetPlayerSex()==0) then Event:Print("King Dottano must be/rso proud to have an/rheir like you./b/cl"); end if(Event:GetPlayerSex()==1) then Event:Print("King Dottano must be/rso proud to have an/rheir like you./b/cl"); end end if(Event:GetJobType()==2) then Event:Print("I see your vast wisdom/ris the source of your/rconfidence./b/cl"); end -- end Event:Print("The six orbs are located/rin the six aging temples/rthroughout the kingdom./b/cl"); if ( Event:IsSpelunker() ) then Event:Print("First, head to the Grass/rTemple to the west. You/rcan do it, Spelunker!/b/co"); --スペランカーモード else Event:Print("First, head to the Grass/rTemple to the west. You/rcan do it, "..Event:GetPlayerName().."!/b/co"); end Event:WaitContinue(); coroutine.yield(); Event:RestoreDof(); Event:RestoreCamera(); Event:SetProgressFlag(2,1); --草原の神殿MAP表示フラグ break; else if ( Event:IsSpelunker() ) then Event:Print("/clKing: I understand how/ryou feel, Spelunker.../b/cl"); --スペランカーモード else Event:Print("/clKing: I understand how/ryou feel, "..Event:GetPlayerName()..".../b/cl"); end Event:Print("But that answer doesn’t/radvance the story! You/rcould have guessed that!/b/cl"); Event:Print("Now, take two... Will/ryou find the six orbs/rand the six sages?/b/co"); Event:WaitContinue(); coroutine.yield(); end end Event:CloseMessage(); coroutine.yield(); Event:SetStatusVisible(1); Event:UnlockPlayer(); return; else --剣LV1を持ってない時 Event:Pause(); Event:BackupCamera(); Event:BackupDof(); setnpccamerac("Kinga1_010") coroutine.yield(); --修正0902 Event:Print("The sword lies in the/rSacred Forest, located/rnorth of the castle./b/co"); Event:WaitContinue(); coroutine.yield(); Event:RestoreDof(); Event:RestoreCamera(); Event:CloseMessage(); coroutine.yield(); Event:Play(); return; end end