Skip to content

AbilityEffect ​

Inherits: Effect < DatabaseResource < Resource

AbilityEffect adds or removes abilities from the target entity's ability container

Properties ​

AbilityActionability_actionAbilityAction.ADD
intability_id0

Methods ​

voidspecific_effect_logic( effect_instance: EffectInstance )
voidon_apply_finished( effect_instance: EffectInstance )
Stringget_effect_description()
boolcan_modify_ability( target_entity: Entity )
Dictionaryget_ability_modification_details( effect_instance: EffectInstance )
Stringget_editor_description()

Enumerations ​

enum AbilityAction ​

The options of ability action: add, remove.

  • ADD = 0

Property descriptions ​

Ability Settings

AbilityAction ability_action = AbilityAction.ADD ​

Whether the effect adds the ability to the target or removes it.

int ability_id = 0 ​

ID of the ability to add/remove (uses DatabaseAbilities)

Method descriptions ​

void specific_effect_logic( effect_instance: EffectInstance ) ​

Applies the specific logic for this effect, adding or removing abilities

void on_apply_finished( effect_instance: EffectInstance ) ​

Handles the finishing of the effect, reversing the ability change

String get_effect_description() ​

Get the effect description for tooltips

bool can_modify_ability( target_entity: Entity ) ​

Check if the ability can be added/removed (useful for ability validation)

Dictionary get_ability_modification_details( effect_instance: EffectInstance ) ​

Get ability modification details for debugging/UI

String get_editor_description() ​

A short text for the effect editor that says what the effect does.