SkillTreeReward ​
Gives the player a skill tree: the tree of a specialization that was chosen, of a rank, a quest, an event. The player keeps it (it is saved with the player) and spends points in it like in any tree of its class. Taking the reward back takes the tree away again: what was spent in it comes back and its rewards are taken back
Properties ​
int | skill_tree_id | 0 |
Methods ​
Dictionary | apply_to_player( player: Player ) |
bool | unapply_from_player( player: Player, tracking_data: Dictionary ) |
bool | supports_unapply() |
String | get_summary() |
Array[Dictionary] | validate() |
Property descriptions ​
int skill_tree_id = 0 ​
The skill tree to give (an id of the skill_tree type)
Method descriptions ​
Dictionary apply_to_player( player: Player ) ​
Gives the reward to the player. Gives back how it went and what it needs to take the reward back.
bool unapply_from_player( player: Player, tracking_data: Dictionary ) ​
Takes the reward back from the player (only for a reward that supports it).
bool supports_unapply() ​
Can the reward be taken back?
String get_summary() ​
A short text about the reward and its settings.
Array[Dictionary] validate() ​
Checks the settings of the reward. Gives the problems found (empty when it is fine).