Collecting Game Logs
스크립트에서 로그를 기록하여, 월드에 접속한 플레이어들의 행동 데이터를 수집할 수 있는 기능이에요.
💻 스크립트에서 로그 기록
-- ServerScript
local function SaveLogData(player, value)
local playerID = player:GetPlayerID()
local dataKey = "Gold" -- 기록할 로그의 데이터 키에요.
local index_1 = 1 -- 기록할 로그의 1번 인덱스에요. 데이터 키의 하위 정보를 기록하고 싶다면 사용하고, 생략할 수도 있어요.
local index_2 = 1000 -- 기록할 로그의 2번 인덱스에요. 데이터 키의 하위 정보를 기록하고 싶다면 사용하고, 생략할 수도 있어요.
Game:SaveLog(dataKey, playerID, value)
Game:SaveLog(dataKey, index_1, playerID, value)
Game:SaveLog(dataKey, index_1, index_2, playerID, value)
end
Game:ConnectEventFunction("SaveLogData", SaveLogData)-- ClientScript
local function SaveLogData(value)
local dataKey = "Gold" -- 기록할 로그의 데이터 키에요.
local index_1 = 1 -- 기록할 로그의 1번 인덱스에요. 데이터 키의 하위 정보를 기록하고 싶다면 사용하고, 생략할 수도 있어요.
local index_2 = 1000 -- 기록할 로그의 2번 인덱스에요. 데이터 키의 하위 정보를 기록하고 싶다면 사용하고, 생략할 수도 있어요.
Game:SaveMyLog(dataKey, value)
Game:SaveMyLog(dataKey, index_1, value)
Game:SaveMyLog(dataKey, index_1, index_2, value)
end 📥 기록된 로그 데이터 다운로드


✍ 기록 데이터 활용
Last updated
Was this helpful?




