Skip to content

EffectConditionalEffect ​

Inherits: ConditionalEffect < CompositeEffect < Effect < DatabaseResource < Resource

Applies child effects based on whether an entity has (or is missing) a specific effect, or has an exact stack count of it.

Properties ​

EffectTargeteffect_targetEffectTarget.TARGET
EffectCheckeffect_checkEffectCheck.HAS_EFFECT
inteffect_id0
intrequired_stacks1
StackComparisonstack_comparisonStackComparison.AT

Methods ​

voidspecific_effect_logic( effect_instance: EffectInstance )
Stringget_editor_description()

Enumerations ​

enum EffectTarget ​

The options of effect target: target, originator.

  • TARGET = 0
  • ORIGINATOR = 1

enum EffectCheck ​

The options of effect check: has effect, missing effect, stack count.

  • HAS_EFFECT = 0 - Entity currently has the effect
  • MISSING_EFFECT = 1 - Entity does not have the effect
  • STACK_COUNT = 2 - Entity stack count meets the StackComparison condition

enum StackComparison ​

The options of stack comparison: at, below, above.

  • AT = 0 - Exactly the required stack count
  • BELOW = 1 - Fewer than the required stack count
  • ABOVE = 2 - More than the required stack count

Property descriptions ​

Condition Settings

EffectTarget effect_target = EffectTarget.TARGET ​

Who is checked for the effect (the target or the originator).

EffectCheck effect_check = EffectCheck.HAS_EFFECT ​

What is checked (has the effect, lacks it, has an exact number of stacks).

int effect_id = 0 ​

Effect ID to check. Set to 0 to match any effect.

int required_stacks = 1 ​

Required stack count — only used when effect_check is STACK_COUNT

StackComparison stack_comparison = StackComparison.AT ​

How to compare the stack count — only used when effect_check is STACK_COUNT

Method descriptions ​

void specific_effect_logic( effect_instance: EffectInstance ) ​

What the effect does to its target when it is applied.

String get_editor_description() ​

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