Originally Posted by Phanx
Use GetAchievementCriteriaInfoByID to look up the criteria directly, instead of looping over all the criteria, calling GetAchievementCriteriaInfo for each one, and comparing the ID
|
I actually misnamed that variable in my addon, it's not the criteriaID I'm using but the assetID to identify the criteria. I also had no idea that function existed since it isn't documented anywhere.
I also can't seem to export a patched version of the Achievement_Criteria.dbc file from the client, there are clearly entries missing from it that I can access through the api in-game and I'm assuming it's in a patch somewhere (but I've been through every mpq file and can't find it).
I could export the list from the game as a saved variable and then parse it into the python script but that would be a little extra pain I didn't want to do.
Blizzard appears to have actually removed a function capable of using the criteria ID to get information about the achievement called
GetAchievementInfoFromCriteria.