GetItemLinkNumItemTags

From ESOUI Wiki

Jump to: navigation, search

Items in ESO can have "item tags" associated with them; these are bits of extra descriptive data, such as a furniture or treasure item's categories. Given an item link, this function returns the number of tags on the item.

Arguments

itemLink
A string containing an item link. It does not matter whether the link is in brackets.

Example

function ItemLinkIsTreasureMedicalSupplies(link)
   local count = GetItemLinkNumItemTags(link)
   for i = 1, count do
      local text, cat = GetItemLinkItemTagInfo(link, i)
      if cat == TAG_CATEGORY_TREASURE_TYPE then
         if text == "Medical Supplies" then -- note: this would need to be translated for other languages
            return true
         end
      end
   end
   return false
end

External links

Personal tools
Namespaces
Variants
Actions
Menu
Wiki
Toolbox