------------------------------------------------------------------ -- \author tsuneoka -- \date 2009/06/22 14:52:40 ------------------------------------------------------------------ -- start local id = ccGetScriptId(); local itemBoxId = ccGetItemBoxId( id ); local enable = ccGetEnableItemBox( id, itemBoxId ); if( enable == true ) then ccSuspendScript(); if( ccIsTutorialGet( "TUTORIAL_052" ) == false ) then ccChangeTutorial( id, "TUTORIAL_052"); ccSuspendScript(); end ccSetAdvPlayerDefaultLockOperate( id, false ); ccTurnAdvPlayerToMob( id ); ccSetAdvPlayerState( id, CCD_ADV_CHARA_STATE_ACTION ); ccSetAdvPlayerAnmByMotionName(id, "gim1" ); -- キノコを調べた回数をカウントし、一定回数で通り名を獲得 local isGetNickName = ccIsMushroomSearchCounter(); if( isGetNickName == false ) then -- 通り名を獲得していない時は、操作復活(※通常の流れ) ccSetAdvPlayerDefaultLockOperate( id, true ); end ccAdvPlay3dSeByCurPos( id, S_foot_grass ); ccSetAdvMobAnm( id, "data/stage/saxgim.xfbin", "saxgim008_c00_n2" ); ccWaitEndAnmPlayer( id ); ccSuspendScript(); -- アイテムボックスを開ける ccOpenItemBoxId( id, itemBoxId ); ccSetAdvMobAnm( id, "data/stage/saxgim.xfbin", "saxgim008_c00_n1" ); if( ccIsTutorialGet( "TUTORIAL_002" ) == false ) then ccChangeTutorial( id, "TUTORIAL_002"); ccSuspendScript(); end if( isGetNickName == true ) then ccWaitAdvMob( id, 30 ); ccSuspendScript(); -- ◆通り名獲得:[天然の] if( ccAdvNickNameAcquisition( CCD_NICK_NAME_ID_078 ) == true ) then ccSuspendScript(); end -- 通り名を獲得時は、ここのタイミングで操作復活 ccSetAdvPlayerDefaultLockOperate( id, true ); end end ccSetAdvMobEventCollision( id, false ); -- end ------------------------------------------------------------------ -- EOF ------------------------------------------------------------------