Skip to content

SetResponsesByTagAction ​

Inherits: EventAction < Resource

Action to enable/disable all responses with a specific tag Works with both NPC and InteractableObject conversations

Properties ​

SourceTypesource_typeSourceType.NPC
intentity_unique_id0
intinteractable_unique_id0
Stringtag""
boolset_activetrue

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)

String tag = "" ​

Tag to match (e.g., "quest_active", "merchant", "romance")

bool set_active = true ​

Whether to activate (true) or deactivate (false) matching responses

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