TriggerSlots ​
Inherits: RefCounted
The slots of the trigger tags: a trigger tag (Trigger Tags tab) can give the creatures that it fires on a voice call (a folder in their voice, listed in Audio > Entity Voices) and an animation (a list in their animation map, in the Triggers section of Assets > Animations), and can play a sound at the target. A slot has a stable name (the trigger's Slot name, or its tag in snake_case) that the voice folder and the animation map are keyed by, and a trigger can name another slot to use when a creature has nothing for its own (parry -> dodge). See docs: Audio > Entity Voices.
Methods ​
String | normalize( text: String ) static |
Array[TriggerTagDefinition] | definitions() static |
Array[TriggerTagDefinition] | with_voice() static |
Array[TriggerTagDefinition] | with_animation() static |
TriggerTagDefinition | find( slot_name: String ) static |
PackedStringArray | chain( slot_name: String ) static |
Method descriptions ​
String normalize( text: String ) ​
The tag turned into a name that is safe in a folder or a key: lower case, letters and numbers, underscores between words ("Critical Strike" -> "critical_strike")
Array[TriggerTagDefinition] definitions() ​
Every trigger tag of the project, by name
Array[TriggerTagDefinition] with_voice() ​
The triggers that give the creature a voice call
Array[TriggerTagDefinition] with_animation() ​
The triggers that give the creature an animation
TriggerTagDefinition find( slot_name: String ) ​
The trigger that owns a slot (null when none does)
PackedStringArray chain( slot_name: String ) ​
The slot, then the slots it falls back to, in order (a loop is cut)