PlayerSpecialOffensiveEffectTrigger ​
Inherits: PlayerEventTrigger < EventTrigger < Resource
Triggers when target player(s) fire an offensive trigger (critical strike ...) on a hit that lands
Properties ​
int | stat_id | 0 |
String | trigger_tag | "" |
float | minimum_total_damage | 0.0 |
Methods ​
String | get_display_name() |
String | get_function_description() |
void | setup_player_connection( player: Player ) |
void | cleanup_player_connection( player: Player ) |
bool | is_triggered( event_data: Dictionary ) |
String | generate_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, 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)
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").