# Dialogue System

**URL:** <https://forums.unrealengine.com/t/dialogue-system/44974>\
**Category:** Game Development\
**Tags:** unreal-engine\
**Created:** [October 17, 2015, 10:16pm UTC](https://forums.unrealengine.com/t/dialogue-system/44974 "2015-10-17T22:16:37Z")\
**Posts on this page:** 20\
**Page:** 14

<div class="post-metadata">

**Author:** ![artemavrin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@artemavrin](https://forums.unrealengine.com/u/artemavrin)\
**Post date:** [April 16, 2016, 11:25pm UTC](https://forums.unrealengine.com/t/dialogue-system/44974/267 "2016-04-16T23:25:17Z")

</div>

[thejohncrafter](https://forums.unrealengine.com/member.php?309425-thejohncrafter) added:

- decorators are now respected : a Question which is not validated by it’s Decorators will not be displayed
- we can now choose to display or not the mouse after dialogue ends  
 ![01.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/7/9/79f69b341e0c8e2048a61ea39eb6e068d171b96d.png)
- some improvements

Also Matinee support in ShowPhrases and WaitAnswer nodes has been added:)

![01.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/c/5/1c568fa1bdf583cac4c66048ee7371be7204d78e.png)

---

<div class="post-metadata">

**Author:** ![artemavrin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@artemavrin](https://forums.unrealengine.com/u/artemavrin)\
**Post date:** [April 17, 2016, 4:51pm UTC](https://forums.unrealengine.com/t/dialogue-system/44974/268 "2016-04-17T16:51:49Z")

</div>

**1.6 RELEASED!**

Special thanks to **thejohncrafter**. He helped with question’s decorators and some code improvements.

**FEATURES:**

- Typewriter text effet
- Now each phrase have its own sound CUE
- Decorators are now respected : a Question which is not validated by it’s Decorators will not be displayed
- We can now choose to display or not the mouse after dialogue ends
- Dialogue settings - allow quickly control of question visibility
- Matinee support in ShowPhrases and WaitAnswer nodes
- New version notification
- Sample project has been updated

You can download it [here](http://mavrinsoft.ru)

T4VXeve\_Pds

Cheers  
Artem

---

<div class="post-metadata">

**Author:** ![stucki](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@stucki](https://forums.unrealengine.com/u/stucki)\
**Post date:** [April 18, 2016, 9:38am UTC](https://forums.unrealengine.com/t/dialogue-system/44974/269 "2016-04-18T09:38:31Z")

</div>

congrats on releasing 1.6 !  
i really love your system. Once our game is at that state i will definitevely try this system !!  
one thing about the typewriter effect. i find this one hard to read cause the text is always moving and not staying in place.  
i would prefer it if the text stands still and only the letters apear one after the other.  
you know what i mean ?  
kind regards  
stucki

---

<div class="post-metadata">

**Author:** ![artemavrin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@artemavrin](https://forums.unrealengine.com/u/artemavrin)\
**Post date:** [April 18, 2016, 12:46pm UTC](https://forums.unrealengine.com/t/dialogue-system/44974/270 "2016-04-18T12:46:08Z")

</div>

> [@stucki;514847](#):
>
> congrats on releasing 1.6 !  
> i really love your system. Once our game is at that state i will definitevely try this system !!  
> one thing about the typewriter effect. i find this one hard to read cause the text is always moving and not staying in place.  
> i would prefer it if the text stands still and only the letters apear one after the other.  
> you know what i mean ?  
> kind regards  
> stucki

Thanks! I think, you should change text alignment in widget, because typewriter effect is just one char + one more char + one more char etc. with some delay:)

---

<div class="post-metadata">

**Author:** ![stucki](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@stucki](https://forums.unrealengine.com/u/stucki)\
**Post date:** [April 18, 2016, 1:55pm UTC](https://forums.unrealengine.com/t/dialogue-system/44974/271 "2016-04-18T13:55:28Z")

</div>

a super. Didnt see textalignement was choosable. !

---

<div class="post-metadata">

**Author:** ![Le\_Samedi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Le\_Samedi](https://forums.unrealengine.com/u/Le_Samedi)\
**Post date:** [April 18, 2016, 8:36pm UTC](https://forums.unrealengine.com/t/dialogue-system/44974/272 "2016-04-18T20:36:31Z")

</div>

Hi there.

I implement dialogue parameter for my project. If you think it is usefull, integrates it. I put this in BTDialoguesTypes.h

```auto

/**
* Dialogue Argument Struct
*/
USTRUCT()
struct DIALOGUESYSTEM_API FDialogueParameter
{

	GENERATED_USTRUCT_BODY()

public:

	UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = DialogueParameter) FString StringKey;
	UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = DialogueParameter) FBlackboardKeySelector BlackboardKey;

public:

	void PushArgument(FFormatNamedArguments& DialogueArguments, UBehaviorTreeComponent& OwnerComp) const
	{

		UBlackboardComponent * Blackboard = OwnerComp.GetBlackboardComponent();
		FString TextValue = Blackboard->GetValueAsString(BlackboardKey.SelectedKeyName);

		DialogueArguments.Add(StringKey, FText::FromString(TextValue));

	}

};

```

And here is an example of integration in Question node.

BTComposite\_Question.h :

```auto

FText GetQuestionThumbnail(UBehaviorTreeComponent& OwnerComp) const;

/** Question Parameters */
UPROPERTY(EditInstanceOnly, Category = Question)
TArray<FDialogueParameter> DialogueParameters;

```

BTComposite\_Question.cpp :

```auto

FText UBTComposite_Question::GetQuestionThumbnail(UBehaviorTreeComponent& OwnerComp) const
{

	FFormatNamedArguments DialogueArguments;

	for (const FDialogueParameter& DialogueParameter : DialogueParameters)
		DialogueParameter.PushArgument(DialogueArguments, OwnerComp);

	return FText::Format(QuestionThumbnail, DialogueArguments);

}

```

You just have to compare the same generated text in the GetNextChildHandler function in the same file :

```auto

FText GetQuestion = GetQuestionThumbnail(SearchData.OwnerComp);
if (GetQuestion.ToString() == AnswerText.ToString())
{
	NextChildIdx = 0;
	AnswerNode->ClearAnswer();
}

```

And print it in the Execute\_Task function in BTTask\_WaitAnswer.cpp :

```auto

NewSampleTextBlock->SetText(FText::Format(NSLOCTEXT("DialogueSystem", "ButtonText", "{0}"), Question->GetQuestionThumbnail(OwnerComp)));

```

Give you something like this :

![e870d00f87bdd32789e58d7a8fae8746efb30b78.jpeg](https://d1ap1mz92jnks1.cloudfront.net/images/transparent.png)

---

<div class="post-metadata">

**Author:** ![intoxicat3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@intoxicat3](https://forums.unrealengine.com/u/intoxicat3)\
**Post date:** [April 18, 2016, 9:46pm UTC](https://forums.unrealengine.com/t/dialogue-system/44974/273 "2016-04-18T21:46:35Z")

</div>

Thanks for this, great learning resource!  
I would be grateful if you can do some step by step tutorials about extending UE4 editor using QuestBook as example.

---

<div class="post-metadata">

**Author:** ![serioussam909](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@serioussam909](https://forums.unrealengine.com/u/serioussam909)\
**Post date:** [April 18, 2016, 11:50pm UTC](https://forums.unrealengine.com/t/dialogue-system/44974/274 "2016-04-18T23:50:42Z")

</div>

Instead of pasting the code here, it would be better to create a pull request on github.

---

<div class="post-metadata">

**Author:** ![artemavrin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@artemavrin](https://forums.unrealengine.com/u/artemavrin)\
**Post date:** [April 19, 2016, 6:52am UTC](https://forums.unrealengine.com/t/dialogue-system/44974/275 "2016-04-19T06:52:24Z")

</div>

> [@Le Samedi;515222](#):
>
> Hi there.
> 
> I implement dialogue parameter for my project.

Hello, Le Samedi! Nice work!  
Also Dialogue parameters will be usefull in ShowPhrases:) It would be great if you create a pull request on github.

---

<div class="post-metadata">

**Author:** ![Le\_Samedi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Le\_Samedi](https://forums.unrealengine.com/u/Le_Samedi)\
**Post date:** [April 19, 2016, 7:16am UTC](https://forums.unrealengine.com/t/dialogue-system/44974/276 "2016-04-19T07:16:39Z")

</div>

I’ll do it, i made this on 1.5, so i’ll take 1.6 tonight or tomorrow and make the pull on it, with the showphrases integration.

---

<div class="post-metadata">

**Author:** ![artemavrin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@artemavrin](https://forums.unrealengine.com/u/artemavrin)\
**Post date:** [April 19, 2016, 7:20am UTC](https://forums.unrealengine.com/t/dialogue-system/44974/277 "2016-04-19T07:20:55Z")

</div>

> [@Le Samedi;515416](#):
>
> I’ll do it, i made this on 1.5, so i’ll take 1.6 tonight or tomorrow and make the pull on it, with the showphrases integration.

nice, thanks!🙂

---

<div class="post-metadata">

**Author:** ![Le\_Samedi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Le\_Samedi](https://forums.unrealengine.com/u/Le_Samedi)\
**Post date:** [April 19, 2016, 11:27pm UTC](https://forums.unrealengine.com/t/dialogue-system/44974/278 "2016-04-19T23:27:20Z")

</div>

Done. I notice after the pull you already do a listener for skipping phrases. It works well if you change the name of the listener you are looking for. Because you are looking for a widget that have the same name of the class, and we cannot add an instance with the same name of his class (always add \_0 after the name in UMG). So i look for DialogueListener by default and name the widget DialogueListener in UMG. Cant make a pull for that 🙂

---

<div class="post-metadata">

**Author:** ![artemavrin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@artemavrin](https://forums.unrealengine.com/u/artemavrin)\
**Post date:** [April 20, 2016, 7:19pm UTC](https://forums.unrealengine.com/t/dialogue-system/44974/279 "2016-04-20T19:19:09Z")

</div>

Thanks! I changed searching EventListener, now we search it by class, not name) So name is no longer important)

---

<div class="post-metadata">

**Author:** ![Savagee25](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Savagee25](https://forums.unrealengine.com/u/Savagee25)\
**Post date:** [April 22, 2016, 2:39pm UTC](https://forums.unrealengine.com/t/dialogue-system/44974/280 "2016-04-22T14:39:47Z")

</div>

Hi artemarvin. Some plans for a customizable layout like this? 😃 that would be really great :rolleyes:

 ![khBS0.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/1/a/c1ad9d1f11fde74917b6fddc3eaab2ee07c7f384.png)

---

<div class="post-metadata">

**Author:** ![anon33786934](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon33786934](https://forums.unrealengine.com/u/anon33786934)\
**Post date:** [April 29, 2016, 3:22pm UTC](https://forums.unrealengine.com/t/dialogue-system/44974/281 "2016-04-29T15:22:32Z")

</div>

First of all, thanks for your efforts, you’re awesome ! Is it possible to use this plugin in a C++ project ?  
I’ll give you some money if it works for mine ! 😃

---

<div class="post-metadata">

**Author:** ![anon33786934](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon33786934](https://forums.unrealengine.com/u/anon33786934)\
**Post date:** [April 29, 2016, 7:53pm UTC](https://forums.unrealengine.com/t/dialogue-system/44974/282 "2016-04-29T19:53:51Z")

</div>

I also have a question : i tried to follow your tutorials on youtube but when I tested it for the first time the dialogue launches itself as soon as the widget appears, i don’t understand why…

EDIT : No problem, set a boolean to true instead of false, all working well now, I’ll try to implement this in C++ now 🙂

---

<div class="post-metadata">

**Author:** ![SimppleGames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SimppleGames](https://forums.unrealengine.com/u/SimppleGames)\
**Post date:** [May 9, 2016, 4:05am UTC](https://forums.unrealengine.com/t/dialogue-system/44974/283 "2016-05-09T04:05:13Z")

</div>

Example project file can not be downloaded.

---

<div class="post-metadata">

**Author:** ![Oceawy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Oceawy](https://forums.unrealengine.com/u/Oceawy)\
**Post date:** [May 15, 2016, 1:12pm UTC](https://forums.unrealengine.com/t/dialogue-system/44974/284 "2016-05-15T13:12:08Z")

</div>

Hi, I wanted to say thank you for your wonderful work! 🙂  
Thanks to you and this awesome community I am learning a lot!  
Have a nice day and a beautiful week!

---

<div class="post-metadata">

**Author:** ![Filly\_The\_Owl](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Filly\_The\_Owl](https://forums.unrealengine.com/u/Filly_The_Owl)\
**Post date:** [May 15, 2016, 4:05pm UTC](https://forums.unrealengine.com/t/dialogue-system/44974/285 "2016-05-15T16:05:34Z")

</div>

I would like to have a 4.12 version, can you create one with the 4.12 preview 3 or newer?

---

<div class="post-metadata">

**Author:** ![artemavrin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@artemavrin](https://forums.unrealengine.com/u/artemavrin)\
**Post date:** [May 16, 2016, 10:44am UTC](https://forums.unrealengine.com/t/dialogue-system/44974/286 "2016-05-16T10:44:26Z")

</div>

> [@Filly\_The\_Owl;530528](#):
>
> I would like to have a 4.12 version, can you create one with the 4.12 preview 3 or newer?

yes, sure, I’ll try to build it for 4.12)

[Previous page](https://forums.unrealengine.com/t/dialogue-system/44974.md?page=13)

[Next page](https://forums.unrealengine.com/t/dialogue-system/44974.md?page=15)
