m
→Arguments
No edit summary |
m (→Arguments) |
||
| Line 4: | Line 4: | ||
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 --> | <!-- List return values and arguments as well as function name, follow Blizzard usage convention for args --> | ||
criteriaString, criteriaType, completed, quantity, reqQuantity, charName, flags, assetID, quantityString, | criteriaString, criteriaType, completed, quantity, reqQuantity, charName, flags, assetID, quantityString, criteriaID = GetAchievementCriteriaInfo(achievementID, criteriaNum); | ||
'''''OR''''' | |||
criteriaString, criteriaType, completed, quantity, reqQuantity, charName, flags, assetID, quantityString, criteriaID = GetAchievementCriteriaInfo(criteriaID); | |||
| Line 12: | Line 16: | ||
:;achievementID : Integer - The ID of the Achievement | :;achievementID : Integer - The ID of the Achievement | ||
:;criteriaNum : Integer - The number for the specific criteria. Between 1 and [[API_GetAchievementNumCriteria| | :;criteriaNum : Integer - The number for the specific criteria. Between 1 and [[API_GetAchievementNumCriteria|GetAchievementNumCriteria]](achievementID) | ||
'''''OR''''' | |||
:(Integer criteriaID) | |||
:;criteriaID : Integer - 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, | :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 39: | ||
:;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. | ||
:; | :;criteriaID : Integer - Unique criteria identifier. | ||
== Notes == | == Notes == | ||