C_Traits. GetConditionInfo
functionimplementedavailable in: camelot
Returns conditionInfo applicable to the configID you enter
function C_Traits.GetConditionInfo( configID: number, condID: number): TraitCondInfo?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. |
condID | number | Trait conditionId as found in e.g. C_Traits.GetNodeInfo or C_Traits.GetEntryInfo |
Returns
condInfo · TraitCondInfo? · returns nil if no info is found
| field | type | description |
|---|---|---|
condID | number | |
ranksGranted | number? | |
isAlwaysMet | boolean | |
isMet | boolean | True if the source for the condition has been fulfilled. |
isGate | boolean | |
isSufficient | boolean | True if meeting the requirements for the condition means any nodes using this condition are considered fulfilled if the condition is met. |
type | number | The value from the TraitConditionType enum the condition uses. |
questID | number? | |
achievementID | number? | |
specSetID | number? | |
playerLevel | number? | |
traitCurrencyID | number? | |
spentAmountRequired | number? | |
tooltipFormat | string? | |
traitCondAccountElementID | number? |
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 ↗.