Skip to content

ChannelUseStrategyDefinition ​

Inherits: UseStrategyDefinition < Resource

Definition for abilities that execute over time with periodic or continuous effects. Supports both tick-based channeling (periodic effects) and active channeling (continuous effects). Includes PowerUp ability support for progressive effects and completion-based tiers.

Properties ​

floatchannel_duration2.0
ChannelModechannel_modeChannelMode.TICK_CHANNEL
CooldownStartcooldown_startsCooldownStart.AT_START
floatchannel_tick_rate1.0
boolimmobile_during_casttrue
boolinterruptable_casttrue
intinterrupt_shield_level0
boolimmune_to_silencefalse
floatmovement_speed_while_casting1.0
AnimationSelectionAbilitycasting_animation
CastingSFXSelectioncasting_sfx
VFXSelectioncasting_vfx

Methods ​

voidexecute_strategy( strategy_instance: UseStrategyInstance, user: Entity, target: Variant )
voidcomplete_early( strategy_instance: UseStrategyInstance, user: Entity, target: Variant )
voidapply_progressive_powerup_effects( strategy_instance: UseStrategyInstance, user: Entity, target: Variant )
EffectInstanceapply_effect_and_get_instance_for_channel( effect: Effect, target: Variant, strategy_instance: UseStrategyInstance )
voidinitialize_channel_timers( strategy_instance: UseStrategyInstance, user: Entity, target: Variant )
voidsetup_tick_channel_mode( strategy_instance: UseStrategyInstance, user: Entity, target: Variant )
voidsetup_active_channel_mode( strategy_instance: UseStrategyInstance, user: Entity, target: Variant )
voidsetup_channel_presentation( strategy_instance: UseStrategyInstance, user: Entity, target: Variant )
voidplay_casting_animation( strategy_instance: UseStrategyInstance, user: Entity )
voidplay_casting_sfx( strategy_instance: UseStrategyInstance, user: Entity )
Variantget_property_value( strategy_instance: UseStrategyInstance, property_name: String )
voidcleanup_timing_resources( strategy_instance: UseStrategyInstance, user: Entity )
voidcleanup_channel_effects( strategy_instance: UseStrategyInstance, user: Entity )
voidcleanup_tick_channel_mode( strategy_instance: UseStrategyInstance )
voidcleanup_active_channel_mode( strategy_instance: UseStrategyInstance )
voidcleanup_progressive_powerup_effects( strategy_instance: UseStrategyInstance )

Enumerations ​

enum ChannelMode ​

The options of channel mode: tick channel, active channel.

  • TICK_CHANNEL = 0 - Effects applied on each tick (existing behavior)
  • ACTIVE_CHANNEL = 1 - Effects applied at start, removed when channel ends

enum CooldownStart ​

When the ability's cooldown starts

  • AT_START = 0 - when the channel begins (default: it cannot be used again meanwhile either way)
  • AT_END = 1 - when the channel ends

Property descriptions ​

float channel_duration = 2.0 ​

Duration in seconds for the channeling phase

ChannelMode channel_mode = ChannelMode.TICK_CHANNEL ​

How the channel applies effects (tick-based vs continuous)

CooldownStart cooldown_starts = CooldownStart.AT_START ​

When the ability's cooldown starts: at the start of the channel (default) or when it ends

float channel_tick_rate = 1.0 ​

Time between effect ticks (only used for TICK_CHANNEL mode)

bool immobile_during_cast = true ​

Whether the caster becomes immobile during the channeling phase

bool interruptable_cast = true ​

Whether this channel can be interrupted by damage or effects

int interrupt_shield_level = 0 ​

Number of interrupt attempts that will be blocked before channel can be interrupted

bool immune_to_silence = false ​

Whether this ability is immune to silence effects (can be channeled while silenced)

float movement_speed_while_casting = 1.0 ​

Movement speed while channeling as a share of the normal speed (1 = unchanged, 0.4 = 40 %). Used when the caster is not immobile during the channel

AnimationSelectionAbility casting_animation ​

Animation played during the channeling phase

CastingSFXSelection casting_sfx ​

Sound effects played during the channeling phase

VFXSelection casting_vfx ​

Visual effects shown during the channeling phase

Method descriptions ​

void execute_strategy( strategy_instance: UseStrategyInstance, user: Entity, target: Variant ) ​

Execute channel strategy - supports both tick and active modes with PowerUp integration

void complete_early( strategy_instance: UseStrategyInstance, user: Entity, target: Variant ) ​

Handle early completion for PowerUp abilities

void apply_progressive_powerup_effects( strategy_instance: UseStrategyInstance, user: Entity, target: Variant ) ​

Apply progressive PowerUp effects during channeling

EffectInstance apply_effect_and_get_instance_for_channel( effect: Effect, target: Variant, strategy_instance: UseStrategyInstance ) ​

Apply effect for channel and return instance for tracking

void initialize_channel_timers( strategy_instance: UseStrategyInstance, user: Entity, target: Variant ) ​

Initialize channel timers

void setup_tick_channel_mode( strategy_instance: UseStrategyInstance, user: Entity, target: Variant ) ​

Setup tick channel mode (existing behavior)

void setup_active_channel_mode( strategy_instance: UseStrategyInstance, user: Entity, target: Variant ) ​

Setup active channel mode (continuous effect)

void setup_channel_presentation( strategy_instance: UseStrategyInstance, user: Entity, target: Variant ) ​

Setup channeling visuals and audio

void play_casting_animation( strategy_instance: UseStrategyInstance, user: Entity ) ​

Play casting animation

void play_casting_sfx( strategy_instance: UseStrategyInstance, user: Entity ) ​

Play casting sound effect

Variant get_property_value( strategy_instance: UseStrategyInstance, property_name: String ) ​

Get property value with runtime override support

void cleanup_timing_resources( strategy_instance: UseStrategyInstance, user: Entity ) ​

Clean up channel-specific resources

void cleanup_channel_effects( strategy_instance: UseStrategyInstance, user: Entity ) ​

Clean up channel effects and state

void cleanup_tick_channel_mode( strategy_instance: UseStrategyInstance ) ​

Cleanup tick channel mode

void cleanup_active_channel_mode( strategy_instance: UseStrategyInstance ) ​

Cleanup active channel mode - remove all applied effects

void cleanup_progressive_powerup_effects( strategy_instance: UseStrategyInstance ) ​

Cleanup PowerUp progressive effects