Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API GetCategoryNumAchievements

Last wiki revision 2022-07-21

Returns the number of achievements for a category. total, completed, incompleted = GetCategoryNumAchievements(categoryId[, includeAll])

  • categoryId: - Achievement category ID, as returned by.
  • includeAll: - If true-equivalent, include all achievements, otherwise, only includes those currently visible
  • total: - total number of achievements in the specified category.
  • completed: - number of completed achievements in the specified category.
  • incompleted: - number of incompleted achievements in the specified category.

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

  • (categoryId, index)

Source

https://warcraft.wiki.gg/wiki/API_GetCategoryNumAchievements · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.