ConversationResponse ​
Inherits: Resource
A single response option in a conversation Now includes chat_id to track which chat it belongs to
Properties ​
int | id | 0 |
int | chat_id | 0 |
bool | active | true |
PackedStringArray | tags | [] |
String | response_display_name | "": |
String | response_text | "": |
SFXSelection | voice_line_sfx | |
AnimationSelectionSocial | animation | |
Array[Requirement] | response_requirements | |
Array[ConversationAction] | response_actions |
Methods ​
bool | has_tag( tag: String ) |
void | add_tag( tag: String ) |
void | remove_tag( tag: String ) |
Property descriptions ​
int id = 0 ​
The id of the response.
int chat_id = 0 ​
Which chat this response belongs to
bool active = true ​
If response is allowed (Will remain hidden until set active)
PackedStringArray tags = [] ​
Tags for grouping responses (e.g., "quest_active", "merchant", "romance")
String response_display_name = "": ​
Display name of response button (the text of the source language)
String response_text = "": ​
Text to display on response (the text of the source language)
SFXSelection voice_line_sfx ​
The voice line to play with the response: the line of the source language (a line in another language is the file of the same name in the language folder of the character)
AnimationSelectionSocial animation ​
Animation to play on interact
Array[Requirement] response_requirements ​
Requirements for response
Array[ConversationAction] response_actions ​
Actions to occur on response
Method descriptions ​
bool has_tag( tag: String ) ​
Check if this response has a specific tag
void add_tag( tag: String ) ​
Add a tag if not already present
void remove_tag( tag: String ) ​
Remove a tag if present