Table of Contents

Class DialogueNode

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

Represents a node in a dialogue tree. Serialized inline on a DialogueTemplate asset. Contains speaker text, ECA conditions/actions, and branching choices.

[Serializable]
public class DialogueNode
Inheritance
DialogueNode
Inherited Members

Fields

Choices

List of choices available to the player at this node.

public List<DialogueChoice> Choices

Field Value

List<DialogueChoice>

Conditions

Conditions that must be met for this node to be accessible. If any condition fails, the node is skipped or unavailable.

[SerializeReference]
public List<BaseCondition> Conditions

Field Value

List<BaseCondition>

EditorPosition

Editor-only position for the visual dialogue tree editor.

[HideInInspector]
public Vector2 EditorPosition

Field Value

Vector2

NodeId

Unique identifier for this node within the dialogue tree.

public int NodeId

Field Value

int

NodeName

Editor-only display name for this node in the dialogue tree editor.

public string NodeName

Field Value

string

OnEnterActions

Actions executed when the player enters this node.

[SerializeReference]
public List<BaseAction> OnEnterActions

Field Value

List<BaseAction>

OnExitActions

Actions executed when the player leaves this node.

[SerializeReference]
public List<BaseAction> OnExitActions

Field Value

List<BaseAction>

SpeakerName

Optional speaker name override. If empty, the NPC's default name is used.

public string SpeakerName

Field Value

string

Text

The dialogue text displayed to the player at this node.

[TextArea(3, 8)]
public string Text

Field Value

string