Wowpedia
Advertisement
Wowpedia
240,484
pages
Game Flavors
Links
Patch
Added in 3.0.2

Returns a table of achievement categories.

 categories = GetStatisticsCategoryList()

Returns

categories 
table - list of all the categories

Example

The snippet below prints info about the category IDs.

local categories = GetStatisticsCategoryList()
for i, id in next(categories) do
    local key, parent = GetCategoryInfo(id)
    print("The key %d has the parent %d", key, parent)
end

Patch changes

Wrath of the Lich King Patch 3.0.2 / API (2008-10-14): Added.

See also

  • GetCategoryInfo(id) - Returns info about a single achievement or statistics category
  • GetCategoryList() - Returns a table with the list of achievement categories intead
  • GetStatistic(id) - Returns the value of a given statistic
Advertisement