Skip to content

ResourceThresholdProcEffect ​

Inherits: ProcEffect < CompositeEffect < Effect < DatabaseResource < Resource

Proc effect that triggers when a resource pool crosses a specific value threshold. Uses edge-detection (old vs new value) so it only fires on the crossing, not every tick.

Properties ​

intpool_definition_id0
intresource_threshold0
Condition.CheckLogicresource_comparisonCondition.CheckLogic.LESS_EQUAL
boolmonitor_targets_resourcefalse

Methods ​

Stringget_effect_description()
Stringget_editor_description()

Property descriptions ​

Threshold Settings

int pool_definition_id = 0 ​

The resource pool to monitor (by pool definition ID)

int resource_threshold = 0 ​

The value to compare against

Condition.CheckLogic resource_comparison = Condition.CheckLogic.LESS_EQUAL ​

How to compare the new value against the threshold

Target Monitoring

bool monitor_targets_resource = false ​

Monitor the caster's current target's resource instead of their own

Method descriptions ​

String get_effect_description() ​

The text of the effect for tooltips, with its values filled in.

String get_editor_description() ​

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