Skip to main content

Talkable

Overview

This component tracks conversation state for an entity, storing the active conversation data (conversation) and the current index into the dialogue sequence (conv_index). It is typically attached to entities capable of speaking or participating in dialogues (e.g., NPCs, creatures with speech capabilities).

Dependencies & Tags

None identified.

Properties

PropertyTypeDefault ValueDescription
instEntitynil (set automatically)Reference to the entity instance this component is attached to.
conversationtable?nilStores the active conversation data (e.g., list of dialogue lines or script objects). nil if no conversation is in progress.
conv_indexnumber1Current position in the conversation dialogue sequence (1-based index).

Main Functions

No public functional methods are defined beyond the constructor. This component currently serves only as a state holder.

Events & Listeners

No events or listeners are registered by this component.