Skip to content

SetConversationStartingChatAction ​

Inherits: EventAction < Resource

Action to set which chat a conversation starts from on next interaction Works with both NPC and InteractableObject conversations

Properties ​

SourceTypesource_typeSourceType.NPC
intentity_unique_id0
intinteractable_unique_id0
intconversation_chat_id0

Variables ​

NPCtarget_npcnull
InteractableObjecttarget_interactablenull
ConversationInteractiontarget_conversation_interactionnull

Methods ​

Stringget_function_description()
Dictionarysave()
voidload_data( data: Dictionary )

Enumerations ​

enum SourceType ​

The options of source type: npc, interactable.

  • NPC = 0
  • INTERACTABLE = 1

Property descriptions ​

SourceType source_type = SourceType.NPC ​

Source type - NPC or Interactable

int entity_unique_id = 0 ​

Unique ID of the NPC (used when source_type == NPC)

int interactable_unique_id = 0 ​

Unique ID of the interactable (used when source_type == INTERACTABLE)

int conversation_chat_id = 0 ​

ID of the chat to start from next time

Variable descriptions ​

NPC target_npc = null ​

Runtime references

InteractableObject target_interactable = null ​

The object whose conversation is changed (found when the action runs).

ConversationInteraction target_conversation_interaction = null ​

The conversation interaction that is changed (found when the action runs).

Method descriptions ​

String get_function_description() ​

Return a description of this action with parameter placeholders

Dictionary save() ​

Save action state to a dictionary

void load_data( data: Dictionary ) ​

Load action state from a dictionary