--****************************************************************** --[[ @brief 雑多関数群 @author 長谷川 ]] --****************************************************************** --[[**************************************************************************** @brief ミッション定数設定エクセルから出力された定数を読み込む @note 削除予定 ******************************************************************************]] function LoadMissionConstValue( strNumber, isHard) local basePath = "game:\\common\\event\\include\\m"; LoadLuaFile( basePath .. strNumber .."\\entityid.lua"); LoadLuaFile( basePath .. strNumber .."\\pointid.lua"); LoadLuaFile( basePath .. strNumber .."\\eventgroup.lua"); -- ミッション定数の読み込み local pathConstValue = basePath .. strNumber; -- if ( 0 ~= __IS_HARD ) then if ( isHard) then pathConstValue = pathConstValue .. "\\constvalue_hard.lua"; else pathConstValue = pathConstValue .. "\\constvalue.lua"; end print( pathConstValue); LoadLuaFile( pathConstValue); end --[[**************************************************************************** @brief ミッション定数設定エクセルから出力された定数を読み込む @note 自動で読み込む定数を切り替える ******************************************************************************]] function LoadMissionConstValueAuto( strNumber) local basePath = "game:\\common\\event\\include\\m"; LoadLuaFile( basePath .. strNumber .."\\entityid.lua"); LoadLuaFile( basePath .. strNumber .."\\pointid.lua"); LoadLuaFile( basePath .. strNumber .."\\eventgroup.lua"); -- ミッション定数の読み込み local pathConstValue = basePath .. strNumber; if ( 1 == AC4_DifficultyIsNormal ) then pathConstValue = pathConstValue .. "\\constvalue.lua"; else pathConstValue = pathConstValue .. "\\constvalue_hard.lua"; end print( pathConstValue); LoadLuaFile( pathConstValue); end --[[**************************************************************************** @brief 難易度がノーマルの場合、trueを返す。 ******************************************************************************]] function DifficultyIsNormal() if ( 1 == AC4_DifficultyIsNormal ) then return true; else return false; end end --[[**************************************************************************** @brief print()のラップ @note PS3でログを出すため ******************************************************************************]] function LogEvent( str) print( str); -- LogOutput( str); end