Flavors
|
|
Links
|
|
Info
|
Added in 3.0.2
|
Returns info for an achievement.
id, name, points, completed, month, day, year, description, flags,
icon, rewardText, isGuild, wasEarnedByMe, earnedBy, isStatistic
= GetAchievementInfo(achievementID)
= GetAchievementInfo(categoryID, index)
Arguments
- achievementID
- number - ID of the achievement to retrieve information for.
- categoryID
- number - Achievement category ID.
- index
- number - An offset into the achievement category, between 1 and GetCategoryNumAchievements(categoryID)
Returns
Index |
Param |
Type |
Description
|
1 |
id |
number |
Achievement ID.
|
2 |
name |
string |
The Name of the Achievement.
|
3 |
points |
number |
Points awarded for completing this achievement.
|
4 |
completed |
boolean |
Returns true/false depending if you've completed this achievement on any character.
|
5 |
month |
number |
Month this was completed. Returns nil if Completed is false.
|
6 |
day |
number |
Day this was completed. Returns nil if Completed is false.
|
7 |
year |
number |
Year this was completed. Returns nil if Completed is false. Returns number of years since 2000.
|
8 |
description |
string |
The Description of the Achievement.
|
9 |
flags |
number |
A bitfield that indicates achievement properties:
- 0x1 - COUNTER
- 0x2 - ?
- 0x4 - PLAY_NO_VISUAL
- 0x8 - SUM
- 0x10 - MAX_USED
- 0x20 - REQ_COUNT
- 0x40 - AVERAGE
- 0x80 - PROGRESS_BAR
- 0x100 - REALM_FIRST_REACH
- 0x200 - REALM_FIRST_KILL
- 0x400 - ?
- 0x800 - HIDE_INCOMPLETE
- 0x1000 - SHOW_IN_GUILD_NEWS
- 0x2000 - SHOW_IN_GUILD_HEADER
- 0x4000 - GUILD
- 0x8000 - SHOW_GUILD_MEMBERS
- 0x10000 - SHOW_CRITERIA_MEMBERS
- 0x20000 - ACCOUNT_WIDE
- 0x40000 - UNK5
- 0x80000 - HIDE_ZERO_COUNTER
- 0x100000 - TRACKING_FLAG
- 0x200000 - ?
- 0x400000 - ?
- 0x800000 - ?
|
10 |
icon |
number |
The fileID of the icon used for this achievement
|
11 |
rewardText |
string |
Text describing the reward you get for completing this achievement.
|
12 |
isGuild |
boolean |
Returns true/false depending if this is a guild achievement.
|
13 |
wasEarnedByMe |
boolean |
Returns true/false depending if you've completed this achievement on this character.
|
14 |
earnedBy |
string |
Your character name if you've completed this achievement, or the name of the first character to complete this achievement.
|
15 |
isStatistic |
bool |
Returns true/false depending if this is a statistic.
|
Patch changes
Patch 7.3.0 (2017-08-29): Tenth return value (the icon) changed from a string texture path to a fileID.
Patch 3.0.2 (2008-10-14): Added.
See also