Skip to content

DelayedEffect ​

Inherits: CompositeEffect < Effect < DatabaseResource < Resource

DelayedEffect applies child effects after a specified delay Can also be configured as a "trigger" effect that applies when cancelled

Properties ​

boolapply_on_cancelledfalse
VFXSelectionTelegraphtelegraph_vfx
booltelegraph_on_cancellationfalse

Methods ​

voidprocess_before_start( effect_instance: EffectInstance )
voidspecific_effect_logic( _effect_instance: EffectInstance )
voidon_apply_finished( effect_instance: EffectInstance )
floatget_delay_duration()
boolis_delay_pending( effect_instance: EffectInstance )
Stringget_effect_type_description()
boolhas_telegraph_warning()
floatget_telegraph_duration()
Stringget_effect_description()
Stringget_editor_description()

Property descriptions ​

Delay Settings

bool apply_on_cancelled = false ​

Apply child effects when effect is cancelled/dispelled

Telegraph VFX

VFXSelectionTelegraph telegraph_vfx ​

Telegraph warning VFX to show during delay

bool telegraph_on_cancellation = false ​

Show telegraph even when triggered by cancellation

Method descriptions ​

void process_before_start( effect_instance: EffectInstance ) ​

Override to handle telegraph VFX when effect starts

void specific_effect_logic( _effect_instance: EffectInstance ) ​

Override Delay Effect instead applies child effects on finished

void on_apply_finished( effect_instance: EffectInstance ) ​

Apply child effects when the delay timer finishes

float get_delay_duration() ​

Get the delay duration from the time strategy

bool is_delay_pending( effect_instance: EffectInstance ) ​

Check if the delayed effect is still pending

String get_effect_type_description() ​

Get the effect type description for tooltips

bool has_telegraph_warning() ​

Check if this delayed effect has a telegraph warning

float get_telegraph_duration() ​

Get telegraph duration (same as delay duration)

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.