Skip to content

EntityDamageMitigatedTrigger ​

Inherits: EventTrigger < Resource

Triggers when a specific entity's defences (armor, block, dodge ...) reduce a hit it receives. Reads the DamageResult of every hit the entity receives: the modifier steps of the defender's phase say which stats reduced the hit, and mitigated_amount() says by how much.

Properties ​

intentity_unique_id0
intstat_id_filter0
floatminimum_mitigated_amount0.0

Variables ​

Entitytarget_entitynull
Stringdisplay_name""

Methods ​

Stringget_display_name()
Stringget_function_description()
voidsetup()
voidcleanup()
voidfind_target_entity()
boolis_triggered( event_data: Dictionary )
Stringgenerate_objective_description()

Property descriptions ​

int entity_unique_id = 0 ​

Unique identifier of the specific entity to track

int stat_id_filter = 0 ​

Only react when this stat took part in the mitigation (0 = any stat)

float minimum_mitigated_amount = 0.0 ​

Minimum mitigated amount to trigger

Variable descriptions ​

Entity target_entity = null ​

Reference to the target entity

String display_name = "" ​

Entity name - will be auto-populated from the entity itself if found

Method descriptions ​

String get_display_name() ​

Return the display name for this trigger

String get_function_description() ​

Return the function description with parameter placeholders

void setup() ​

Set up any listeners or connections needed by this trigger

void cleanup() ​

Clean up any listeners or connections

void find_target_entity() ​

Try to find the target entity in the world

bool is_triggered( event_data: Dictionary ) ​

Check if this trigger is currently active

String generate_objective_description() ​

Generate quest objective description