API GetAchievementCriteriaInfo

Returns information about the given Achievement's specified criteria. criteriaString, criteriaType, completed, quantity, reqQuantity, charName, flags, assetID, quantityString, criteriaID = GetAchievementCriteriaInfo(criteriaID or achievementID, criteriaNum);

Arguments
(achievementID, criteriaNum)
 * achievementID : Number - The ID of the Achievement
 * criteriaNum : Number - The number for the specific criteria. Between 1 and GetAchievementNumCriteria(achievementID)

(criteriaID)
 * 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

 * criteriaString, criteriaType, completed, quantity, reqQuantity, charName, flags, assetID, quantityString, criteriaID


 * criteriaString : String - The name of the criteria
 * criteriaType : Integer - The type of criteria. Values currently unknown.
 * completed : Boolean - If the criteria is completed or not.
 * quantity : Integer - The current quantity for the criteria. Usually 0 or 1.
 * reqQuantity : Integer - The required quantity for the criteria. Used mostly in achievements with progress bars. Usually 0.
 * charName : String - The name of the Player.
 * flags : Integer - Some flags. Currently unknown purpose.
 * 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.
 * criteriaID : Integer - Unique criteria identifier.