Skip to content

PlayerSpecialHealingReceivedTrigger ​

Inherits: PlayerEventTrigger < EventTrigger < Resource

Triggers when target player(s) receive a heal on which a trigger fired (a critical heal ...)

Properties ​

intstat_id0
Stringtrigger_tag""
floatminimum_healing_amount0.0

Methods ​

Stringget_display_name()
Stringget_function_description()
voidsetup_player_connection( player: Player )
voidcleanup_player_connection( player: Player )
boolis_triggered( event_data: Dictionary )
Stringgenerate_objective_description()

Property descriptions ​

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)

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_player_connection( player: Player ) ​

Connects the signal of a player this trigger listens to.

void cleanup_player_connection( player: Player ) ​

Disconnects the signal of a player.

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").