WoW:API GetAchievementCriteriaInfo: Difference between revisions

m
Move page script moved page API GetAchievementCriteriaInfo to WoW:API GetAchievementCriteriaInfo without leaving a redirect
No edit summary
m (Move page script moved page API GetAchievementCriteriaInfo to WoW:API GetAchievementCriteriaInfo without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{wowapi}} __NOTOC__
{{wowapi}} __NOTOC__
<!-- Describe the purpose of the function, exhausting detail can be saved for a later section -->
Returns information about the given Achievement's specified criteria.
Returns information about the given Achievement's specified criteria.
<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args -->
  criteriaString, criteriaType, completed, quantity, reqQuantity,  
  criteriaString, criteriaType, completed, quantity, reqQuantity, charName, flags, assetID, quantityString, unknown = GetAchievementCriteriaInfo(achievementID, criteriaNum);
  charName, flags, assetID, quantityString, criteriaID =  
 
  GetAchievementCriteriaInfo(criteriaID or achievementID, criteriaNum);


== Arguments ==
== Arguments ==
<!-- List each argument, together with its type -->
(achievementID, criteriaNum)
:(Integer achievementID, Integer criteriaNum)
:;achievementID : Number - The ID of the Achievement
:;criteriaNum : Number - The number for the specific criteria.  Between 1 and [[API_GetAchievementNumCriteria|GetAchievementNumCriteria]](achievementID)


:;achievementID : Integer - The ID of the Achievement
(criteriaID)
:;criteriaNum : Integer - The number for the specific criteria. Between 1 and [[API_GetAchievementNumCriteria|GetAchivementNumCriteria]](achievementID)
:;criteriaID : Number - The ID of the criteria.


'''''Warning:''' If you use criteriaID as an argument, do not include a number as the second argument or the client will crash.


== Returns ==
== Returns ==
<!-- List each return value, together with its type -->
<!-- List each return value, together with its type -->
:criteriaString, criteriaType, completed, quantity, reqQuantity, charName, flags, assetID, quantityString, unknown <!-- remove this line if it's just one value -->
:criteriaString, criteriaType, completed, quantity, reqQuantity, charName, flags, assetID, quantityString, criteriaID <!-- remove this line if it's just one value -->


:;criteriaString : String - The name of the criteria
:;criteriaString : String - The name of the criteria
Line 28: Line 28:
:;assetID : Integer - Critera data whose meaning depends on the type.
:;assetID : Integer - Critera data whose meaning depends on the type.
:;quantityString : String - The string used to display the current quantity.  Usually the string form of the quantity return.
:;quantityString : String - The string used to display the current quantity.  Usually the string form of the quantity return.
:;unknown : Integer - Unknown (possibly a unique criteria identifier?)
:;criteriaID : Integer - Unique criteria identifier.


== Notes ==
== Notes ==
Anonymous user