QD_DialogueHandler

QD_DialogueHandler is responsible for controlling a dialogue and the conversations within.

public QD_Dialogue dialogue The QD_Dialogue object used in this handler.
public int currentConversationIndex The index of the current conversation.
public QD_Conversation currentConversation The current conversation, if there is one.
public QD_MessageInfo currentMessageInfo Gives info about the current message, including the ID of the node, the ID of the next node, and the type of the node.

Returns the current message, if it is a message node.

QD_Message currentMessage = handlerReference.GetMessage();

Returns the current choice, if it is a choice node.

QD_Choice currentChoice = handlerReference.GetChoice();

Sets the current conversation based on the name of it.

string name The name of the conversation.
handlerReference.SetConversation("Meeting with Bob");

Returns the id of the next message.

int id The ID of the current message.
int choice The choice, if the current message is a choice. By default -1, meaning the current node is a message node.
// Gets the ID after the node with the ID of 0.
int next = handlerReference.GetNextID(0);

Returns the type of a message with the given ID. Base if there is no next message.

int id The id of the message or choice.
QD_NodeType type = handlerReference.GetMessageType(0);

Goes to the next message and returns its ID and type. Base if there is no next message, but otherwise Message or Choice.

int choice The choice, if the current message is a choice. By default -1, meaning the current node is a message node.
QD_MessageInfo newMessage = handlerReference.NextMessage(0);

QD_Dialogue

QD_Dialogue is a list of conversations that contain speakers, messages, and player choices.

public List<QD_Conversation> Conversations The list of conversations in this dialogue.
public List<QD_Speaker> Speakers The list of speakers in this dialogue.
public List<QD_Message> Messages The list of messages in this dialogue.
public List<QD_Choice> Choices The list of choices in this dialogue.

Returns a conversation with the given name.

name The name of the conversation.
QD_Conversation conversation = dialogueReference.GetConversation("Meeting with Bob");

Returns a speaker with the given name.

string name The name of the speaker.
QD_Speaker speaker = dialogueReference.GetSpeaker("Bob");

QD_Conversation

QD_Conversation represents a conversation between different speakers, or just one.

public int ID The ID of the conversation.
public string Name The name of the conversation.
public int FirstMessage The ID of the first message in the conversation.

QD_Speaker

QD_Speaker represents an NPC or player that is speaking in a conversation.

public int ID The ID of the speaker.
public string Name The name of the speaker.
public sprite Icon The ID of the speaker.

QD_Message

QD_Message represents one message in a conversation said by a speaker.

public int ID The ID of the message.
public int Speaker The ID of the speaker saying this message.
public string SpeakerName The name of the speaker saying this message.
public int PreviousMessage The ID of the previous message.
public int NextMessage The ID of the next message.
public string MessageText The text to display.
public AudioClip Clip The audio clip to play, if there is one.

QD_Choice

QD_Choice represents a choice that the player must make in a conversation.

public int ID The ID of this choice.
public List<string> Choices The list of choices.
public List<int> NextMessages The list of IDs of messages, corresponding to the list of choices.