C_Traits. GetNodeInfo
functionimplementedavailable in: camelot
Returns NodeInfo applicable to the configID you enter.
function C_Traits.GetNodeInfo( configID: number, nodeID: number): TraitNodeInfo?Parameters
| name | type | description |
|---|---|---|
configID | number | For 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. |
nodeID | number | e.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
| field | type | description |
|---|---|---|
ID | number | |
posX | number | |
posY | number | |
flags | number | |
entryIDs | number[] | |
entryIDsWithCommittedRanks | number[] | |
canPurchaseRank | boolean | |
canRefundRank | boolean | |
isAvailable | boolean | |
isVisible | boolean | |
isDisplayError | boolean | True 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. |
ranksPurchased | number | |
ranksIncreased | number | |
entryIDToRanksIncreased | LuaValueVariant | A 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. |
activeRank | number | |
currentRank | number | |
activeEntry | TraitEntryRankInfo? | |
nextEntry | TraitEntryRankInfo? | |
maxRanks | number | |
totalMaxRanks | number | |
type | TraitNodeType | |
visibleEdges | TraitOutEdgeInfo[] | |
meetsEdgeRequirements | boolean | |
groupIDs | number[] | |
conditionIDs | number[] | |
isCascadeRepurchasable | boolean | |
cascadeRepurchaseEntryID | number? | |
subTreeID | number? | The SubTree this Node belongs to; Nil if it is not part of a SubTree |
subTreeActive | boolean? | 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 ↗.