Class DialogueEventData
Event data for dialogue interactions, carrying the NPC speaker reference and dialogue node context. Used by ECA conditions and actions that operate within a dialogue tree.
public class DialogueEventData : EventData
- Inheritance
-
DialogueEventData
- Inherited Members
Constructors
DialogueEventData(ICharacter, ICharacter, int, int)
Constructs a new DialogueEventData.
public DialogueEventData(ICharacter initiator, ICharacter speaker, int nodeId, int choiceIndex = -1)
Parameters
initiatorICharacterThe player character participating in the dialogue.
speakerICharacterThe NPC or character speaking.
nodeIdintThe current dialogue node ID.
choiceIndexintThe selected choice index, or -1 if none.
Properties
ChoiceIndex
The index of the choice selected by the player, or -1 if no choice was made (e.g., on node entry).
public int ChoiceIndex { get; }
Property Value
NodeId
The current dialogue node ID in the dialogue tree.
public int NodeId { get; }
Property Value
Speaker
The NPC or character that is speaking in the dialogue.
public ICharacter Speaker { get; }