Skip to content

EntitySpecialHealingReceivedTrigger ​

Inherits: EventTrigger < Resource

Triggers when a specific entity receives a heal on which a trigger fired (a critical heal ...). Reads the HealingResult of every heal the entity receives: the trigger records of both phases tell which stats fired, and the result tells how much was actually restored.

Properties ​

intentity_unique_id0
intstat_id0
Stringtrigger_tag""
floatminimum_healing_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 ​

The unique id of the entity to watch.

int stat_id = 0 ​

Only react to triggers owned by this stat (0 = any stat)

String trigger_tag = "" ​

Only react to this trigger tag (empty = any tag)

float minimum_healing_amount = 0.0 ​

At least this much must have been restored (0 = any)

Variable descriptions ​

Entity target_entity = null ​

The entity being watched (found when the trigger starts).

String display_name = "" ​

The name of the entity, for the objective text.

Method descriptions ​

String get_display_name() ​

The name of the trigger in the editor.

String get_function_description() ​

The sentence the editor shows for the trigger, with {placeholders} for its values.

void setup() ​

Starts listening: connects the signals the trigger waits for.

void cleanup() ​

Stops listening: disconnects the signals of the trigger.

void find_target_entity() ​

Finds the entity the trigger watches by its unique id.

bool is_triggered( event_data: Dictionary ) ​

Does this event data satisfy the trigger? Called when the signal the trigger listens to fires.

String generate_objective_description() ​

The line of the quest objective this trigger makes ("Kill 5 wolves").