Table of Contents

Class DialogueChoice

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

Represents a player choice within a dialogue node. Serialized inline on DialogueNode. Contains display text, conditions for availability, actions on selection, and a link to the next node.

[Serializable]
public class DialogueChoice
Inheritance
DialogueChoice
Inherited Members

Fields

Conditions

Conditions that must be met for this choice to be visible to the player.

[SerializeReference]
public List<BaseCondition> Conditions

Field Value

List<BaseCondition>

NextNodeId

The ID of the next dialogue node to transition to when this choice is selected. A value of -1 ends the dialogue.

public int NextNodeId

Field Value

int

OnSelectActions

Actions executed when the player selects this choice.

[SerializeReference]
public List<BaseAction> OnSelectActions

Field Value

List<BaseAction>

Text

The text displayed for this choice in the dialogue UI.

public string Text

Field Value

string