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 doShort excerpt from the shipping addon CraftStore — its ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.
Most-downloaded addons using it
| Addon | Total downloads |
|---|---|
| CraftStore | 5,176,147 |
| Advanced Filters - Updated (Inventory sub- & dropdown plugin filters) | 2,602,223 |
| LibFilters-3.0 | 2,063,617 |
| LibCharacterKnowledge | 1,771,857 |
| Research Assistant (Find your researchable items) | 1,749,216 |
| AI Research Grid | 1,195,942 |