EntitySpecialOffensiveEffectTrigger ​
Inherits: EventTrigger < Resource
Triggers when a specific entity fires an offensive trigger (critical strike ...) on a hit that lands. Reads the DamageResult of every hit the entity deals: the trigger records of the attacker's phase tell which offensive stats fired, and the result tells how much damage the hit did.
Properties ​
int | entity_unique_id | 0 |
int | stat_id | 0 |
String | trigger_tag | "" |
float | minimum_total_damage | 0.0 |
Variables ​
Entity | target_entity | null |
String | display_name | "" |
Methods ​
String | get_display_name() |
String | get_function_description() |
void | setup() |
void | cleanup() |
void | find_target_entity() |
bool | is_triggered( event_data: Dictionary ) |
String | generate_objective_description() |
Property descriptions ​
int entity_unique_id = 0 ​
Unique identifier of the specific entity to track
int stat_id = 0 ​
Only react to triggers owned by this stat (0 = any stat)
String trigger_tag = "" ​
Only react to this trigger tag, e.g. "critical strike" (empty = any tag)
float minimum_total_damage = 0.0 ​
The hit must have done at least this much damage after the attacker's modifiers (0 = any)
Variable descriptions ​
Entity target_entity = null ​
Reference to the target entity
String display_name = "" ​
Entity name - will be auto-populated from the entity itself if found
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 cleanup() ​
Clean up any listeners or connections
void find_target_entity() ​
Try to find the target entity in the world
bool is_triggered( event_data: Dictionary ) ​
Check if this trigger is currently active
String generate_objective_description() ​
Generate quest objective description