SetConversationResponseStateAction ​
Inherits: EventAction < Resource
Action to set the active state of a conversation response 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_response_id | 0 |
bool | set_active | true |
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_response_id = 0 ​
ID of the response to manipulate
bool set_active = true ​
Whether to activate (true) or deactivate (false) the response
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