Returns the number of items created when performing a tradeskill recipe


See also Tradeskill functions.

Signature:

minMade, maxMade = GetTradeSkillNumMade(index)

Arguments:

  • index - Index of a recipe in the trade skill list (between 1 and GetNumTradeSkills()) (number)

Returns:

  • minMade - Minimum number of items created when performing the recipe (number)
  • maxMade - Maximum number of items created when performing the recipe (number)

Examples:

-- Print any multi-item recipes
local numSkills = GetNumTradeSkills()
for i=1,numSkills do
  local minMade,maxMade = GetTradeSkillNumMade(i)
  if minMade > 1 then
    local link = GetTradeSkillRecipeLink(i)
    if (minMade == maxMade) then
      print(link .. " always creates " .. minMade .. " items")
    else
      print(link .. " randomly creates between " .. minMade .. " and " .. maxMade .. " items")
    end
  end
end