m (casing) |
User-6548696 (talk | contribs) (Changed the long list of returned values to a table to more easily get the index of any individual value.) |
||
Line 10: | Line 10: | ||
==Returns== |
==Returns== |
||
+ | {| class="darktable zebra" |
||
⚫ | |||
+ | !Index!!Value!!Type!!Details |
||
⚫ | |||
+ | |- |
||
⚫ | |||
⚫ | |||
⚫ | |||
+ | |- |
||
⚫ | |||
⚫ | |||
⚫ | |||
+ | |- |
||
⚫ | |||
⚫ | |||
⚫ | |||
+ | |- |
||
⚫ | |||
⚫ | |||
⚫ | |||
+ | |- |
||
⚫ | |||
⚫ | |||
⚫ | |||
+ | |- |
||
⚫ | |||
⚫ | |||
⚫ | |||
+ | |- |
||
⚫ | |||
⚫ | |||
⚫ | |||
+ | |- |
||
⚫ | |||
⚫ | |||
+ | |-valign="top" |
||
+ | |9 |
||
+ | |flags |
||
+ | |Number |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
+ | |- |
||
⚫ | |||
+ | |- |
||
⚫ | |||
+ | |- |
||
⚫ | |||
+ | |- |
||
⚫ | |||
+ | |- |
||
⚫ | |||
+ | |} |
||
== See also == |
== See also == |
Revision as of 07:21, 12 August 2016
Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Returns information about the given Achievement.
id, name, points, completed, month, day, year, description, flags, icon, rewardText, isGuild, wasEarnedByMe, earnedBy = GetAchievementInfo(achievementID or categoryID, index)
Arguments
Specify either (achievementID)
or (categoryID, index)
- 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 | Value | Type | Details |
---|---|---|---|
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:
|
10 | icon | String | Path & file 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. |