Skip to main content

Functions

Dialogue contains a bunch of functions to help you use dialogue in any way you need.

If you import the Tales Component, you can view the list of functions supported.

Begin Dialogue

The most used function in the entire dialogue system.

This function tells Narrative to start the specified dialogue. It will return a bool if it can start or if it has failed for any reason (replication issues, no conditions passed)

dialogue-begin-dialogue.webp

Inputs

NameTypeDescription
Inexec
TargetUTalesComponentThe Narrative component to try and start the dialogue on.
DialogueTSubclassOf<UDialogue>The dialogue class that you want to play.
StartFromIDFNameThe ID the dialogue should start playing from, if empty will play from root node.
Priorityint32The priority we want to play this dialogue at. -1 means use the dialogues default priority.

Output

NameTypeDescription
Outexec
Return ValueboolWhether or not the dialogue has began.

Has Dialogue Available

Whilst creating dialogue it is common to have dialogue assets that are not used anymore due to conditions blocking all routes - and this is okay.

Sometimes you want to check if a dialogue can be started before calling BeginDialogue or to fulfil some condition.

The HasDialogueAvailable function executes the initialize method of the provided dialogue and does not start the dialogue.

This will return you a bool to whether calling BeginDialogue would successfully enter the dialogue.

dialogue-has-dialogue-available.webp

Inputs

NameTypeDescription
TargetUTalesComponentThe Narrative component to try and start the dialogue on.
DialogueTSubclassOf<UDialogue>The dialogue class that you want to play.
StartFromIDFNameThe ID the dialogue should start playing from, if empty will play from root node.
Priorityint32The priority we want to play this dialogue at. -1 means use the dialogues default priority.

Output

NameTypeDescription
Return ValueboolWhether or not the dialogue can begin.