Skip to content

EntityDeathGroupTrigger ​

Inherits: EventTrigger < Resource

Triggers when a group of specific unique entities are all killed

Properties ​

Array[int]entity_unique_ids[]

Variables ​

Array[int]defeated_entities[]
Dictionarytarget_entities{}

Methods ​

Stringget_display_name()
Stringget_function_description()
voidsetup()
voidreset()
voidset_progress( amount: int )
voidcleanup()
voidfind_target_entities()
boolis_triggered( event_data: Dictionary )
Stringgenerate_objective_description()
boolconcerns_target( target: Variant )

Property descriptions ​

Array[int] entity_unique_ids = [] ​

Array of unique identifiers of the specific entities to track

Variable descriptions ​

Array[int] defeated_entities = [] ​

Track which entities have been defeated

Dictionary target_entities = ​

Dictionary to store entity references

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 reset() ​

The count starts again (the objective or event that owns this trigger starts over)

void set_progress( amount: int ) ​

The count from a save (how many were defeated: the ones in front of the list)

void cleanup() ​

Clean up any listeners or connections

void find_target_entities() ​

Try to find the target entities in the world

bool is_triggered( event_data: Dictionary ) ​

Check if this trigger is currently active

String generate_objective_description() ​

Generate quest objective description

bool concerns_target( target: Variant ) ​

True for an entity of the group that has not been defeated yet