Table of Contents

Class DialogueInjection

Namespace
S1API.Dialogues
Assembly
S1API.dll

Represents a dialogue injection configuration for adding custom dialogues into an NPC's conversation flow dynamically.

public class DialogueInjection
Inheritance
DialogueInjection
Inherited Members
Extension Methods

Constructors

DialogueInjection(Predicate<NPC>, string, string, string, string, string, Action)

Represents an injectable dialogue configuration that can be used to add or modify dialogue interactions in a game.

public DialogueInjection(Predicate<NPC> appliesToNpc, string container, string from, string to, string label, string text, Action onConfirmed)

Parameters

appliesToNpc Predicate<NPC>
container string
from string
to string
label string
text string
onConfirmed Action

DialogueInjection(string, string, string, string, string, string, Action)

public DialogueInjection(string npc, string container, string from, string to, string label, string text, Action onConfirmed)

Parameters

npc string
container string
from string
to string
label string
text string
onConfirmed Action

Fields

AppliesTo

public Predicate<NPC> AppliesTo

Field Value

Predicate<NPC>

ChoiceLabel

Represents a descriptive label for a dialogue choice used in the dialogue system.

public string ChoiceLabel

Field Value

string

Remarks

This label is utilized for identifying a specific dialogue choice during execution and for associating a callback or specific functionality when that choice is selected.

ChoiceText

Represents the text displayed for a dialogue choice in the game's dialogue system.

public string ChoiceText

Field Value

string

Remarks

The property is utilized to define the text that appears visually for a specific dialogue choice in conjunction with the dialogue system. The text is injected dynamically during runtime for scenarios requiring additional or modified dialogue options.

ContainerName

Represents the name of the dialogue container being referenced for injections or modifications within the NPC's dialogue system.

public string ContainerName

Field Value

string

Remarks

This variable is used for identifying a specific dialogue container when attempting to inject new dialogue nodes, choices, or links into an NPC's dialogue setup.

FromNodeGuid

Represents the unique identifier (GUID) of the starting dialogue node within a dialogue container.

public string FromNodeGuid

Field Value

string

Remarks

This variable is used to identify the specific dialogue node from which a new choice or interaction is injected.

OnConfirmed

Represents a callback action that is invoked when a dialogue choice is confirmed.

public Action OnConfirmed

Field Value

Action

ToNodeGuid

Represents the unique identifier (GUID) for the target dialogue node to which a choice or link is pointing in a dialogue system.

public string ToNodeGuid

Field Value

string