WoW API: GetAchievementInfoFromCriteria

From AddOn Studio
Jump to navigation Jump to search

WoW API < GetAchievementInfoFromCriteria

Returns the following fields for the specified Criteria. New in Patch 3.0

id, name, points, completed, month, day, year, description, flags, icon = GetAchievementInfoFromCriteria(CriteriaID)

Arguments
(Number CriteriaID)
CriteriaID
The ID of the Criteria.

Returns
IDNumber
Integer - The achievement's ID number.
Name
String - The Name of the Achievement.
Points
Integer - Points awarded for completing this achievement.
Completed
Boolean - Returns true/false depending if you've completed this achievement.
Month
Integer - Month this was completed. Returns nil if Completed is false.
Day
Integer - Day this was completed. Returns nil if Completed is false.
Year
Integer - Year this was completed. Returns nil if Completed is false.
Description
String - The Description of the Achievement.
Flags
Integer
0x01 = Statistic
0x02 = Hidden
0x80 = Progress Bar
Image
String - Path & file of the icon used for this achievement
RewardText
String - Text describing the reward you get for completing this achievement.