Skip to content

ChainEffect ​

Inherits: CompositeEffect < Effect < DatabaseResource < Resource

ChainEffect applies child effects in a chain between multiple targets

Properties ​

floatchain_range5.0
intmax_chains3
boolchain_previous_targettrue
ChainTargetTypechain_target_typeChainTargetType.ENAMY

Methods ​

voidapply_effect_vfx( instance: EffectInstance, crit: bool = false )
voidspecific_effect_logic( effect_instance: EffectInstance )
voidon_apply_finished( effect_instance: EffectInstance )
Stringget_effect_description()
Stringget_editor_description()
boolis_one_off_application()

Enumerations ​

enum ChainTargetType ​

The options of chain target type: enamy, ally, all.

  • ENAMY = 0
  • ALLY = 1
  • ALL = 2

Property descriptions ​

float chain_range = 5.0 ​

How far the effect can jump to the next target.

int max_chains = 3 ​

How many times the effect can jump.

bool chain_previous_target = true ​

True when the effect can jump back to a target it already hit.

ChainTargetType chain_target_type = ChainTargetType.ENAMY ​

Which targets the effect jumps to (enemies, allies ...).

Method descriptions ​

void apply_effect_vfx( instance: EffectInstance, crit: bool = false ) ​

Override VFX application to handle chain beams

void specific_effect_logic( effect_instance: EffectInstance ) ​

Override to implement chaining logic

void on_apply_finished( effect_instance: EffectInstance ) ​

Clean up beam VFX when effect ends

String get_effect_description() ​

========== DESCRIPTION ==========

String get_editor_description() ​

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

bool is_one_off_application() ​

What this effect does it does once, when it is applied: a loaded save does not do it again