ESODecoded

GetNumSmithingResearchLines

ESO Lua API function — used by 59 of the 3,030 addons we indexed (combined 18,760,578 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

GetNumSmithingResearchLines([TradeskillType|#TradeskillType] craftingSkillType)

Returns: integer numLines

Real usage — from CraftStore

  for craft, _ in pairs(CS.Data.crafting.researched[CS.SelectedPlayer]) do
    for line = 1, GetNumSmithingResearchLines(craft) do
      for trait = 1, CS.MaxTraits do

Short excerpt from the shipping addon CraftStoreits ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.

Most-downloaded addons using it

AddonTotal downloads
CraftStore5,176,147
Advanced Filters - Updated (Inventory sub- & dropdown plugin filters)2,602,223
LibFilters-3.02,063,617
LibCharacterKnowledge1,771,857
Research Assistant (Find your researchable items)1,749,216
AI Research Grid1,195,942