Might want to check out
GetStatistic().
GetStatisticsCategoryList() appears to return a list of statistic CategoryIDs that can be enumerated through with the generic achievement functions to find the AchievementID you want.
For example:
Lua Code:
for _,catid in ipairs(GetStatisticsCategoryList()) do
for i=1,GetCategoryNumAchievements(catid,true) do
local achid,achname=GetAchievementInfo(catid,i);
print(("(%d) %s: %d"):format(achid,achname,GetStatistic(achid)));
end
end
This prints the entire list of statistics, their related AchievementID for later tracking, and the current statistic value. It takes a few seconds to complete.