Join The Fan Lab, a private Fandom research community for users in the US and UK where you will be asked to share your opinions on all things gaming and entertainment! Click here to see if you qualify

GetStatisticsCategoryList

From Wowpedia
Jump to: navigation, search

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 (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