EntityDeathTypeTrigger ​
Inherits: EventTrigger < Resource
Triggers when a certain amount of entities of a specific type are killed
Properties ​
int | entity_id | 0 |
int | amount_required | 1 |
Variables ​
int | current_amount | 0 |
String | display_name | "" |
Methods ​
String | get_display_name() |
String | get_function_description() |
void | setup() |
void | reset() |
void | set_progress( amount: int ) |
void | cleanup() |
void | connect_signals() |
void | update_entity_name() |
void | add_kill( killed_entity_id: int ) |
bool | is_triggered( event_data: Dictionary ) |
String | generate_objective_description() |
bool | concerns_target( target: Variant ) |
Property descriptions ​
int entity_id = 0 ​
The entity type ID to track
int amount_required = 1 ​
Total amount needed to trigger the event
Variable descriptions ​
int current_amount = 0 ​
Current kill count
String display_name = "" ​
Entity name - will be auto-populated from the database
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
void cleanup() ​
Clean up any listeners or connections
void connect_signals() ​
Connect to signals
void update_entity_name() ​
Update the entity name from the database using the display_name field
void add_kill( killed_entity_id: int ) ​
Add a kill to the counter and check completion
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 made from the tracked definition