Skip to content

RequirementSkillNode ​

Inherits: Requirement < Resource

Needs a node of a skill tree to be unlocked (a rank of it, or one choice of a choice node), or needs that it is NOT. A choice node that picks the specialization ("Fire, Frost or Arcane") and a tree of each specialization that needs that choice is how a class has a tree for the specialization it picked.

Properties ​

inttree_id0
intnode_id0
intmin_rank1
intchoice_index-1
boolmust_havetrue

Methods ​

boolcheck( entity: Entity )
Stringget_failure_message( _entity: Entity )
Stringget_summary()
Array[Dictionary]validate()

Property descriptions ​

int tree_id = 0 ​

The skill tree (an id of the skill_tree type)

int node_id = 0 ​

The node in that tree

int min_rank = 1 ​

The rank the node must have (1 = unlocked)

int choice_index = -1 ​

For a choice node: the option that must be picked (-1 = any option)

bool must_have = true ​

On: the node must be unlocked. Off: it must not be

Method descriptions ​

bool check( entity: Entity ) ​

Does the entity meet the requirement?

String get_failure_message( _entity: Entity ) ​

The reason shown when the entity does not meet the requirement.

String get_summary() ​

A short text about the requirement and its settings.

Array[Dictionary] validate() ​

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