v0.13.8

C_Traits.GetNodeInfo

functionimplementedavailable in: camelot

Returns NodeInfo applicable to the configID you enter.

signaturewowlua
function C_Traits.GetNodeInfo(    configID: number,    nodeID: number): TraitNodeInfo?

Parameters

nametypedescription
configIDnumberFor TalentTrees this will often be C_ClassTalents.GetActiveConfigID, this is -1 when inspecting a player. For professions, this will be C_ProfSpecs.GetConfigIDForSkillLine. See also Constants.TraitConsts for a few special ConfigIDs.
nodeIDnumbere.g. from C_Traits.GetTreeNodes

Returns

nodeInfo · TraitNodeInfo? · if the configID is not valid, returns nil. If information for a node cannot be retrieved for another reason, all fields are zeroed out. Most information relates to your current preview state, unless otherwise specified

TraitNodeInfo
fieldtypedescription
IDnumber
posXnumber
posYnumber
flagsnumber
entryIDsnumber[]
entryIDsWithCommittedRanksnumber[]
canPurchaseRankboolean
canRefundRankboolean
isAvailableboolean
isVisibleboolean
isDisplayErrorbooleanTrue if this node fails the TRAIT_CONDITION_TYPE_DISPLAY_ERROR condition check. Used to communicate a problem with the node to the player (e.g. A prerequisite node has not been purchased.) but will not prevent the player from spending points on the node.
ranksPurchasednumber
ranksIncreasednumber
entryIDToRanksIncreasedLuaValueVariantA map of the entry IDs on this node to the number of ranks increased. This covers all entries on the node, which is important in the case of selection nodes where we have more than one option that could be increased.
activeRanknumber
currentRanknumber
activeEntryTraitEntryRankInfo?
nextEntryTraitEntryRankInfo?
maxRanksnumber
totalMaxRanksnumber
typeTraitNodeType
visibleEdgesTraitOutEdgeInfo[]
meetsEdgeRequirementsboolean
groupIDsnumber[]
conditionIDsnumber[]
isCascadeRepurchasableboolean
cascadeRepurchaseEntryIDnumber?
subTreeIDnumber?The SubTree this Node belongs to; Nil if it is not part of a SubTree
subTreeActiveboolean?True if this node has a SubTreeID, and the SubTree is chosen or staged; May be nil if not part of a SubTree at all

Blizzard's documentation says it may return nothing.

In wowlua's emulated client

implementedwowlua models the system behind it. what the statuses mean

Restrictions

sources

Signature and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (SharedTraits system, camelot 1.60.1). Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.