Skip to content

SkillPointPool ​

Inherits: DatabaseResource < Resource

Point management for different skill point sources

Properties ​

Colorpool_colorColor.CYAN
ScopescopeScope.CHARACTER
intmax_total_points-1 # -1 = unlimited

Methods ​

boolhas_point_cap()
intget_point_cap()
boolcan_add_points( current_points: int, points_to_add: int )
intget_remaining_capacity( current_points: int )
Array[Dictionary]validate()
boolis_valid()

Enumerations ​

enum Scope ​

Whose points these are, and so which trees spend them. The points and the trees that spend them are kept by the same owner

  • CHARACTER = 0 - Each character has its own points (the trees of a class and of a character)
  • PROFESSION = 1 - The owner of the professions: the party, or each character (Gameplay Config > Professions belong to). The trees of the professions
  • FACTION = 2 - The party (the trees of a faction)

Property descriptions ​

Color pool_color = Color.CYAN ​

========== BASIC PROPERTIES ==========

Scope scope = Scope.CHARACTER ​

The owner of the points of this pool

int max_total_points = -1 # -1 = unlimited ​

========== POINT GENERATION ==========

Method descriptions ​

bool has_point_cap() ​

========== POOL STATUS METHODS ==========

int get_point_cap() ​

The most points the pool can ever hold (-1 when it has no cap).

bool can_add_points( current_points: int, points_to_add: int ) ​

Can this many points be added without passing the cap?

int get_remaining_capacity( current_points: int ) ​

How many more points the pool can take (-1 when it has no cap).

Array[Dictionary] validate() ​

Checks the settings. Gives the problems found (empty when it is fine).

bool is_valid() ​

Is it free of errors?