RSS

Суббота, 21.12.2024, 19:33
Главная » WoW API » API Функции » Достижения »

GetAchievementInfoFromCriteria

[ править ]
Gets information about an achievement or statistic given a criterion ID.
[клоны]
Gets information about an achievement or statistic given a criterion ID.

Signature:
Code
id, name, points, description, flags, icon, rewardText = GetAchievementInfoFromCriteria(id)

Arguments:
  • id - The numeric ID of an achievement or statistic criterion (as can be retrieved from GetAchievementCriteriaInfo()) (number)

Returns:
  • id - The numeric ID of the achievement or statistic (number)
  • name - Name of the achievement or statistic (string)
  • points - Amount of achievement points awarded for completing the achievement (number)
  • description - Description of the achievement (string)
  • flags - Test against the following masks with bit.band() to reveal additional information: (bitfield)
      0x00000001 - Info is for a statistic, not an achievement
    • 0x00000002 - Achievement should be hidden in normal displays
    • 0x00000080 - Achievement should display its criteria as a progress bar regardless of per-criterion flags

  • icon - Path to an icon texture for the achievement (string)
  • rewardText - Text describing a reward for the achievement, or the empty string if no reward is offered (string)

Также смотрите: Достижения , Achievement functions
Ссылки: http://wowprogramming.com/docs/api/GetAchievementInfoFromCriteria