Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Advertisement

Returns the ID of a filtered achievement by index.

achievementID = GetFilteredAchievementID(index)

Arguments[]

index
number - The index of the filtered achievement to return the ID of, between 1 and GetNumFilteredAchievements().

Returns[]

achievementID
number - The ID of an achievement.

Example[]

The following snippet lists the names of all achievements containing the word 'flame':

SetAchievementSearchString("flame");
local numFiltered = GetNumFilteredAchievements();

for idx = 1, numFiltered do
  local achievementID = GetFilteredAchievementID(idx);
  local _, achievementName = GetAchievementInfo(achievementID);
  print(achievementName);
end

Patch changes[]

Legion Patch 7.0.3 (2016-07-19): Added.

See also[]

Advertisement