AbilityRankEffect ​
Inherits: Effect < DatabaseResource < Resource
Adds ranks to abilities while the effect lasts: "+1 to all fire spells" on a staff, "+2 to Fireball" from an aura, "+1 to every ability" from a buff.
Description ​
The ranks are added to the rank the ability was trained to and go away with the effect. They can go over the highest rank the ability can be trained to (that is what gear that raises skills is for). The numbers of the ability and the amounts of its effects follow the rank. See AbilityInstance.get_rank.
Properties ​
bool | all_abilities | false |
Array[int] | ability_ids | [] |
Array[int] | group_ids | [] |
Array[int] | school_ids | [] |
int | bonus_ranks | 1 |
Methods ​
void | specific_effect_logic( effect_instance: EffectInstance ) |
void | on_apply_finished( effect_instance: EffectInstance ) |
String | get_effect_description() |
String | get_editor_description() |
Array[Dictionary] | validate() |
Property descriptions ​
Abilities
bool all_abilities = false ​
Every ability of the target gets the ranks
Array[int] ability_ids = [] ​
These abilities get the ranks
Array[int] group_ids = [] ​
Abilities in these groups get the ranks (Groups, for abilities)
Array[int] school_ids = [] ​
Abilities of these schools get the ranks (Fire, Frost ...)
Ranks
int bonus_ranks = 1 ​
The ranks added (2 = rank 1 plays as rank 3). A negative number takes ranks away (a curse)
Method descriptions ​
void specific_effect_logic( effect_instance: EffectInstance ) ​
What the effect does to its target when it is applied.
void on_apply_finished( effect_instance: EffectInstance ) ​
Called when the effect ends: takes back what it did.
String get_effect_description() ​
The text of the effect for tooltips, with its values filled in.
String get_editor_description() ​
A short text for the effect editor that says what the effect does.
Array[Dictionary] validate() ​
Checks the settings of the effect. Gives the problems found (empty when it is fine).