SkillHolder ​
Inherits: RefCounted
The skill trees and the skill point pools that one owner keeps besides the characters: the professions of the party (or of one character, Gameplay Config > Professions belong to) and the factions of the party. The owner has one set of pools (the pools of the scope) and one instance of each tree its sources list (the skill trees of the craft schools, of the factions). A character keeps its own trees and pools itself (Player.skill_tree_instances, skill_point_pools). See SkillHolders.
Variables ​
SkillPointPool.Scope | scope | SkillPointPool.Scope.PROFESSION |
int | key | 0 |
Array[SkillPointPoolInstance] | pools | [] |
Array[SkillTreeInstance] | trees | [] |
Methods ​
Array[Resource] | sources() |
SkillTreeInstance | get_tree_instance( tree_id: int ) |
SkillPointPoolInstance | get_pool_instance( pool_id: int ) |
Dictionary | to_save_data() |
void | restore_from_save_data( data: Dictionary, player: Player = null ) |
Variable descriptions ​
SkillPointPool.Scope scope = SkillPointPool.Scope.PROFESSION ​
Whose points these are (SkillPointPool.Scope: PROFESSION or FACTION)
int key = 0 ​
Who the owner is: 0 for the party, the unique id of a character when each character has professions of their own
Array[SkillPointPoolInstance] pools = [] ​
The skill point pools of this owner.
Array[SkillTreeInstance] trees = [] ​
The skill trees of this owner.
Method descriptions ​
Array[Resource] sources() ​
The definitions that list trees for this kind of owner: the craft schools, or the factions
SkillTreeInstance get_tree_instance( tree_id: int ) ​
The instance of a skill tree of this owner, or null.
SkillPointPoolInstance get_pool_instance( pool_id: int ) ​
The instance of a skill point pool of this owner, or null.
Dictionary to_save_data() ​
The trees and the pools of this owner for a save.
void restore_from_save_data( data: Dictionary, player: Player = null ) ​
Restores the pools and the trees of a save. player is who the rewards of the nodes are given to again