Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Returns the number of achievements for a category.
total, completed, incompleted = GetCategoryNumAchievements(categoryId[, includeAll])
Arguments[]
- categoryId
- number - Achievement category ID, as returned by GetCategoryList.
- includeAll
- boolean - If true-equivalent, include all achievements, otherwise, only includes those currently visible
Returns[]
- total
- number - total number of achievements in the specified category.
- completed
- number - number of completed achievements in the specified category.
- incompleted
- number - number of incompleted achievements in the specified category.
Example[]
The snippet below prints the achievement IDs and names of all achievements in the World Events > Midsummer category:
for i=1, (GetCategoryNumAchievements(161)) do local id, name = GetAchievementInfo(161, i) print(id, name) end
See also[]
- GetCategoryList
- GetAchievementInfo(categoryId, index)
Patch changes[]
Patch 3.0.2 (2008-10-14): Added.