SetConversationStartingChatAction ​
Inherits: EventAction < Resource
Action to set which chat a conversation starts from on next interaction Works with both NPC and InteractableObject conversations
Properties ​
SourceType | source_type | SourceType.NPC |
int | entity_unique_id | 0 |
int | interactable_unique_id | 0 |
int | conversation_chat_id | 0 |
Variables ​
NPC | target_npc | null |
InteractableObject | target_interactable | null |
ConversationInteraction | target_conversation_interaction | null |
Methods ​
String | get_function_description() |
Dictionary | save() |
void | load_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