Skip to content

ConversationResponse ​

Inherits: Resource

A single response option in a conversation Now includes chat_id to track which chat it belongs to

Properties ​

intid0
intchat_id0
boolactivetrue
PackedStringArraytags[]
Stringresponse_display_name"":
Stringresponse_text"":
SFXSelectionvoice_line_sfx
AnimationSelectionSocialanimation
Array[Requirement]response_requirements
Array[ConversationAction]response_actions

Methods ​

boolhas_tag( tag: String )
voidadd_tag( tag: String )
voidremove_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