Class DialogueChoice
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
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
OnSelectActions
Actions executed when the player selects this choice.
[SerializeReference]
public List<BaseAction> OnSelectActions
Field Value
Text
The text displayed for this choice in the dialogue UI.
public string Text