World of Warcraft Forever API · GetTalentTabInfo.md, for your AI
GetTalentTabInfo is not in Forever
An addon that calls it stops at /reload with attempt to call global 'GetTalentTabInfo' (a nil value). Write C_SpecializationInfo.GetSpecializationInfo instead: its arguments and returns may differ from the old GetTalentTabInfo, read them below.
C_SpecializationInfo.GetSpecializationInfo
specId, name, description, icon, role, primaryStat, pointsSpent, background, previewPointsSpent, isUnlocked = C_SpecializationInfo.GetSpecializationInfo(specializationIndex, [isInspect], [isPet], [inspectTarget], [sex], [groupIndex], [classID])
Arguments
specializationIndex | luaIndex | |
|---|---|---|
isInspect | bool default false | |
isPet | bool default false | |
inspectTarget | string may be nil | |
sex | number may be nil | |
groupIndex | luaIndex may be nil | |
classID | number may be nil |
Returns
specId | number default 0 | |
|---|---|---|
name | string may be nil | |
description | string may be nil | |
icon | fileID may be nil | |
role | string may be nil | |
primaryStat | luaIndex may be nil | |
pointsSpent | number default 0 | |
background | string may be nil | |
previewPointsSpent | number default 0 | |
isUnlocked | bool default true |
Every other call of the C_SpecializationInfo system: C_SpecializationInfo. The WowAddons app checks a whole addon before the game does: wowaddons check names each call Forever lacks and what to write instead.
Making an addon with an AI? Tell it: Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it. It checks every call against this API before you try it in the game, then publishes it here. How it works.