API 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

See also