Skip to content

ComboActiveAbilityDefinition ​

Inherits: ActiveAbilityDefinition < PassiveAbilityDefinition < AbilityDefinition < DatabaseResource < Resource

ComboActiveAbilityDefinition supports multi-step combo sequences. Step 0 uses the original on_use_effects and properties. Subsequent steps use the combo arrays, with null/empty values falling back to originals.

Properties ​

Array[Array]combo_effects[]
Array[float]combo_costs[]
Array[CompressedTexture2D]combo_icons[]
Array[String]combo_names[]:
ComboCooldownModecombo_cooldown_modeComboCooldownMode.COOLDOWN_ON_COMPLETION
floatcombo_timeout6.0
boolcombo_looptrue

Methods ​

voidhandle_completion( ability_instance: AbilityInstance )
Arrayget_current_on_use_effects( ability_instance: AbilityInstance )
voidcleanup_ability_logic( ability_instance: AbilityInstance )
Arrayget_combo_effects( combo_index: int )
floatget_combo_cost( combo_index: int )
CompressedTexture2Dget_combo_icon( combo_index: int )
Stringget_combo_name( combo_index: int )
intget_max_combo_steps()
Stringget_combo_name_for_step( step: int )
boolcombo_step_has_custom_effects( step: int )
boolcombo_step_has_custom_cost( step: int )
Stringget_cooldown_mode_string()
Stringget_tooltip_description()

Enumerations ​

enum ComboCooldownMode ​

The options of combo cooldown mode: cooldown on completion, cooldown on every use, cooldown on timeout or completion.

  • COOLDOWN_ON_COMPLETION = 0 - Cooldown only after final step
  • COOLDOWN_ON_EVERY_USE = 1 - Cooldown on every combo step
  • COOLDOWN_ON_TIMEOUT_OR_COMPLETION = 2 - Cooldown when combo times out or completes

Property descriptions ​

Combo Settings

Array[Array] combo_effects = [] ​

On-use effects for 2nd, 3rd, 4th+ combo steps. Index 0 = 2nd use, Index 1 = 3rd use, etc. Empty arrays fall back to the original on_use_effects array.

Array[float] combo_costs = [] ​

Resource costs for 2nd, 3rd, 4th+ combo steps. Empty/shorter arrays use original cost_amount.

Array[CompressedTexture2D] combo_icons = [] ​

Icons for 2nd, 3rd, 4th+ combo steps. Null entries use the original icon.

Array[String] combo_names = []: ​

Display names for 2nd, 3rd, 4th+ combo steps. Empty strings use the original display_name.

ComboCooldownMode combo_cooldown_mode = ComboCooldownMode.COOLDOWN_ON_COMPLETION ​

How cooldowns are applied during combo sequences.

Combo Timing

float combo_timeout = 6.0 ​

How long the player has to use the next combo step before the sequence resets.

bool combo_loop = true ​

Whether the combo loops back to step 0 after the final step.

Method descriptions ​

void handle_completion( ability_instance: AbilityInstance ) ​

Called when a step is done: gains the resource and moves to the next step.

Array get_current_on_use_effects( ability_instance: AbilityInstance ) ​

Return on-use effects for the current combo step.

void cleanup_ability_logic( ability_instance: AbilityInstance ) ​

Stops the combo timer and goes back to the first step.

Array get_combo_effects( combo_index: int ) ​

The effects of a step (step 0 is the ability itself).

float get_combo_cost( combo_index: int ) ​

The cost of a step.

CompressedTexture2D get_combo_icon( combo_index: int ) ​

The icon of a step.

String get_combo_name( combo_index: int ) ​

The name of a step.

int get_max_combo_steps() ​

How many steps the combo has, the first one included.

String get_combo_name_for_step( step: int ) ​

The name of a step.

bool combo_step_has_custom_effects( step: int ) ​

Does the step have effects of its own?

bool combo_step_has_custom_cost( step: int ) ​

Does the step have a cost of its own?

String get_cooldown_mode_string() ​

The name of the cooldown mode, for the tooltip.

String get_tooltip_description() ​

The text of the tooltip, with the combo.