ActionBarSlotEffect ​
Inherits: Effect < DatabaseResource < Resource
While it lasts, puts an ability on a slot of the action bar of the target, or empties the slot (a bow that puts its aim ability on slot 2 and clears slot 1). What the player had on the slot comes back when the effect ends. A slot an effect covers cannot be changed by the player.
Properties ​
int | slot_number | 1 |
int | ability_id | 0 |
bool | grant_ability | true |
Methods ​
void | specific_effect_logic( effect_instance: EffectInstance ) |
void | on_apply_finished( effect_instance: EffectInstance ) |
String | get_effect_description() |
String | get_editor_description() |
Property descriptions ​
Action Bar Slot
int slot_number = 1 ​
The slot (1 is the first)
int ability_id = 0 ​
The ability that takes the slot. 0 = the slot is emptied and cannot be used while the effect lasts
bool grant_ability = true ​
The target is given the ability while the effect lasts when it does not know it (the ability goes away with the effect)
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.