NodeStyleDef - Grim-/Talented GitHub Wiki

Node Definition Example

<Talented.TalentTreeNodeDef>
    <!-- Unique identifier for the node -->
    <defName>SomeNodeDefName</defName>
    
    <!-- Display name of the node -->
    <label>New Node</label>
    
    <!-- Position in the talent tree (X,Y coordinates) used by FixedPosition display only -->
    <position>(276,86)</position>
    
    <!-- Node type -->
    <type>Normal</type>
    
    <!-- Visual NodeStyleDef reference to use for the visuals, defaults DefaultNodeStyle if not specified -->
    <style>CapstoneNodeStyle</style>
    
    <!-- List of TalentDefs this node can unlock -->
    <upgrades>
        <li>ArmyOfTheDeadUltimate</li>
    </upgrades>
    
    <!-- Talent tree path this node belongs to -->
    <path>DeathKnightPath</path>
</Talented.TalentTreeNodeDef>

Key Elements Explained

Each TalentTreeNodeDef requires:

  • defName: A unique identifier for the node
  • label: The display name shown in the UI
  • position: X,Y coordinates in the talent tree, only used by FixedPosition display.
  • type: Node classification (Normal in this case)
  • style: References a NodeStyleDef for visual appearance ,defaults DefaultNodeStyle if not specified
  • upgrades: List of TalentDefs this node can unlock
  • path: The talent tree path this node belongs to if any

This example shows a node that unlocks the ArmyOfTheDeadUltimate ability in the Death Knight talent path, using the CapstoneNodeStyle for its visual appearance as it is final ability of the Death Knight Path.

⚠️ **GitHub.com Fallback** ⚠️