| tags |
|
|---|
Provides access to achievement categories. Achievements are organized hierarchically in the achievements window by categories.
While not required to access achievements, categories may be useful for enumerating lists of achievements.
: Find an achievement in this category by its ID or name.
: Find an achievement by its index in this category.
: The number of achievements in this category.
: Find a child category in this category by its ID or name.
: Find a child category by its index in this category.
: The number of child categories in this category.
: The number of achievements earned in this category and its subcategories
: The category's description
: The unique ID for the category
: Name of the image texture that is used to represent this category in the Achievements Window.
: The index of the category in the achievement manager. For more information see Achievement Indices.
: The category's display name
: The total earned points of achievements in this category.
: The total number of achievements in this category and its subcategories.
List the unearned achievements in the EverQuest / Exploration category:
=== "MQScript"
```text
/declare cat achievementcat local
/vardata cat Achievement.Category[EverQuest].Category[Exploration]
/echo Unearned achievements in the ${cat.Name} category:
/declare i int local
/for i 1 to ${cat.AchievementCount} {
/if (!${cat.AchievementByIndex[${i}].Completed}) {
/echo ${cat.AchievementByIndex[${i}].Name}
}
/next i
}
```
=== "Lua"
```lua
local category = mq.TLO.Achievement.Category('EverQuest').Category('Exploration')
for i = 1, category.AchievementCount() do
local achievement = category.AchievementByIndex(i)
if not achievement.Completed() then
print(achievement.Name())
end
end
```