ConversationChatTrigger ​
Inherits: EventTrigger < Resource
Triggers when the player is shown a chat of a conversation ("Talk to the blacksmith": the chat where he asks for the sword)
Properties ​
int | conversation_id | 0 |
int | conversation_chat_id | 0 |
Methods ​
String | get_display_name() |
String | get_function_description() |
void | setup() |
void | cleanup() |
bool | is_triggered( event_data: Dictionary ) |
String | generate_objective_description() |
Property descriptions ​
int conversation_id = 0 ​
The conversation
int conversation_chat_id = 0 ​
The chat of the conversation that has to be shown (0 = any chat: the conversation was started)
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() ​
Starts listening: connects the signals the trigger waits for.
void cleanup() ​
Stops listening: disconnects the signals of the trigger.
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").