VoiceCalls ​
Inherits: RefCounted
The voice calls: the names of the sounds an entity makes by itself, which every voice (entity_voices/<entity type>/<variant>/<call>/) should have. There are two kinds. The engine calls are the moments the game itself decides (hit, death, aggro, jump ...), listed here. The trigger calls belong to the trigger tags of your project: a trigger with "Has a voice call" (Trigger Tags tab) adds a call named by its slot (dodge, parry, block, critical strike ... whatever you made) to every voice. The Entity Voices editor (Audio > Entity Voices) lines the folders of a voice up with both lists, and the ability's voice sound offers the same names. Abilities can use any name for their own voice sound (the ability asks for "shout"). A call a voice does not have falls back to the next call of its chain (death -> pain -> hit); a call with no sound at all is silent. See docs: Audio > Entity Voices.
Methods ​
Array[Dictionary] | get_calls() static |
Dictionary | get_call( call_name: String ) static |
bool | is_call( call_name: String ) static |
Array[String] | get_names() static |
Array[Dictionary] | get_group( group: String ) static |
PackedStringArray | lookup_chain( call_name: String ) static |
String | call_of_folder( folder_name: String ) static |
Array[String] | get_action_names() static |
Constants ​
StringHIT ="hit"StringHIT_HEAVY ="hit_heavy"StringDEATH ="death"StringAGGRO ="aggro"StringJUMP_START ="jump_start"StringJUMP_END ="jump_end"StringPAIN ="pain"Array[String]GROUPS =["Combat reactions", "Awareness", "Movement", "Triggers"]- The groups, in the order the editor shows themArray[Dictionary]CALLS =[- The engine calls: name, group, what it is, when it plays, whether a voice should have it (required), the calls to try when the voice has none (fallbacks) and the older names of the same call (legacy: a voice that has a folder with the old name still works)Array[String]COMMON_ACTIONS =["attack", "shout", "roar", "taunt", "laugh", "grunt", "effort", "cast", "hel...- Names that abilities, events and conversations often use for their own voice sound (suggestions: any name works, the entity's voice just needs a folder with it)
Method descriptions ​
Array[Dictionary] get_calls() ​
The engine calls and the trigger calls of the project
Dictionary get_call( call_name: String ) ​
The description of a call (empty when the name is not one of the calls)
bool is_call( call_name: String ) ​
No description yet.
Array[String] get_names() ​
The names of the calls
Array[Dictionary] get_group( group: String ) ​
The calls of a group
PackedStringArray lookup_chain( call_name: String ) ​
The names to look for, in order, when a call is wanted: the call, its older names, then the same for each call it falls back to. A name that is not a call is only itself
String call_of_folder( folder_name: String ) ​
Is this folder name one of the names a call is known by (the call or an older name)? Gives the call, else ""
Array[String] get_action_names() ​
The names the ability's voice sound offers: the calls, then the common action names