ChainEffect ​
Inherits: CompositeEffect < Effect < DatabaseResource < Resource
ChainEffect applies child effects in a chain between multiple targets
Properties ​
float | chain_range | 5.0 |
int | max_chains | 3 |
bool | chain_previous_target | true |
ChainTargetType | chain_target_type | ChainTargetType.ENAMY |
Methods ​
void | apply_effect_vfx( instance: EffectInstance, crit: bool = false ) |
void | specific_effect_logic( effect_instance: EffectInstance ) |
void | on_apply_finished( effect_instance: EffectInstance ) |
String | get_effect_description() |
String | get_editor_description() |
bool | is_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