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 | [] |
Dictionary | target_entities | {} |
Methods ​
String | get_display_name() |
String | get_function_description() |
void | setup() |
void | reset() |
void | set_progress( amount: int ) |
void | cleanup() |
void | find_target_entities() |
bool | is_triggered( event_data: Dictionary ) |
String | generate_objective_description() |
bool | concerns_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