Skip to content

ConversationActionSetResponseState ​

Inherits: ConversationAction < Resource

Sets the active state of a response in the conversation Used to dynamically enable or disable response options

Properties ​

intresponse_id0
boolresponse_statetrue

Methods ​

voidexecute( player: Entity, conversation_instance: ConversationInstance )
Array[Dictionary]validate()
Stringget_description()

Property descriptions ​

int response_id = 0 ​

The ID of the response to modify

bool response_state = true ​

The new state (true = active/enabled, false = inactive/disabled)

Method descriptions ​

void execute( player: Entity, conversation_instance: ConversationInstance ) ​

Runs the action in the conversation.

Array[Dictionary] validate() ​

Checks the settings of the action. Gives the problems found (empty when it is fine).

String get_description() ​

A short text about what the action does, for the editor.