GetMaxTraits

From ESOUI Wiki

Jump to: navigation, search

This function returns the maximum number of traits that an item (specifically an alchemy reagent, potion, or poison) can have.

Example

--
-- If we have an itemLink for an alchemy reagent, how do we 
-- loop over all of its traits?
--
for i = 1, GetMaxTraits() do
   local known, name = GetItemLinkReagentTraitInfo(itemLink, i)
   if known then
      d(zo_strformat("Trait <<1>> is known; it's <<2>>.", i, name))
   end
end

External links

Personal tools
Namespaces
Variants
Actions
Menu
Wiki
Toolbox