Skip to content

SetAbilityActiveEffect ​

Inherits: Effect < DatabaseResource < Resource

Forces a specific ability into the READY state for the effect's duration. When the effect ends the ability is set back to INACTIVE. Use case: temporary ability unlocks, timed power grants, conditional ability access. Note: Use AbilityCooldownEffect with cooldown_reset = true to clear an active cooldown instead.

Properties ​

intability_id0

Methods ​

voidspecific_effect_logic( effect_instance: EffectInstance )
voidon_apply_finished( effect_instance: EffectInstance )
Stringget_effect_description()
Stringget_editor_description()

Property descriptions ​

Target Ability

int ability_id = 0 ​

The ability to activate

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.