WoW:API GetAchievementInfoFromCriteria: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Created page with '{{wowapi}} Returns the following fields for the specified Criteria. New in Patch 3.0 id, name, points, completed, month, day, year, description, flags, icon = GetAchievem...')
 
(Updated flags)
Line 3: Line 3:


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


----
----
Line 26: Line 22:
:;Year : Integer - Year 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.
:;Description : String - The Description of the Achievement.
:;Flags : Integer - Purpose unknown.
:;Flags : Integer
:::0x01 = Statistic
:::0x02 = Hidden
:::0x80 = Progress Bar
:;Image : String - Path & file of the icon used for this achievement
:;Image : String - Path & file of the icon used for this achievement
:;RewardText : String - Text describing the reward you get for completing this achievement.
:;RewardText : String - Text describing the reward you get for completing this achievement.

Revision as of 22:38, 2 November 2009

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.