ConversationAction ​
Inherits: Resource
Inherited by: ConversationActionEndChat, ConversationActionGrantReward, ConversationActionNewInteraction, ConversationActionProceedToChat, ConversationActionProceedToDiceRoll, ConversationActionSetResponseState, ConversationActionSetStartingChat
Base class for all conversation actions Actions are executed when responses are chosen or chats are entered
Methods ​
void | execute( player: Entity, conversation_instance: ConversationInstance ) |
Array[Dictionary] | validate() |
String | get_description() |
Method descriptions ​
void execute( player: Entity, conversation_instance: ConversationInstance ) ​
Execute this action with the given context Must be overridden in child classes player: The entity (player) involved in the conversation conversation_instance: The runtime ConversationInstance (not the resource)
Array[Dictionary] validate() ​
Validate that this action is properly configured Returns an array of error dictionaries if invalid
String get_description() ​
Get a human-readable description of this action for editor display