View Single Post
04-17-24, 06:34 AM   #13
Hubb777
A Flamescale Wyrmkin
 
Hubb777's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2024
Posts: 120
That is, if I understand correctly, I need to create a LUA file in which to add the achievement ID (from Wowhead). And when I open this achievement in the game, will I see the “ID criteria” for this achievement?

Lua Code:
  1. local achievementID = 7439 -- Glorious! Achievement ID
  2. local numCriteria = GetAchievementNumCriteria(achievementID)
  3. local criteriaString, criteriaType, completed, quantity, reqQuantity, charName, flags, assetID, quantityString, criteriaID, eligible
  4.  
  5. for criteriaIndex = 1,numCriteria do
  6.     criteriaString, criteriaType, completed, quantity, reqQuantity, charName, flags, assetID, quantityString, criteriaID, eligible
  7.    = GetAchievementCriteriaInfo(achievementID, criteriaIndex)
  8.  
  9.    -- This is where you might want to decide what to do with the information while it is available.
  10.  
  11.  
  12. end
  Reply With Quote