# Dialogue Plugin

**URL:** <https://forums.unrealengine.com/t/dialogue-plugin/59871>\
**Category:** UE Marketplace\
**Tags:** unreal-engine, fab\
**Created:** [March 31, 2016, 11:23pm UTC](https://forums.unrealengine.com/t/dialogue-plugin/59871 "2016-03-31T23:23:48Z")\
**Posts on this page:** 20\
**Page:** 22

<div class="post-metadata">

**Author:** ![CodeSpartan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/codespartan/32/1194561_2.png) [@CodeSpartan](https://forums.unrealengine.com/u/CodeSpartan)\
**Post date:** [September 5, 2019, 2:11am UTC](https://forums.unrealengine.com/t/dialogue-plugin/59871/443 "2019-09-05T02:11:03Z")

</div>

> [@PrincePac92](#):
>
> Much thanks @.
> 
> But i has some other questions.  
> If i trigger an event via your system, i always can click “continue”.
> 
> So i have an camera transition to a gate, that opens and than the camera fade back.  
> Is there a way to “wait” until the event is done? So that the player cant click continue if the sequence is playing.

One example of doing it: in the event itself, hide the entire “DialogueWidget”, launch the sequence, delay 5 secs, show the widget back.

---

<div class="post-metadata">

**Author:** ![CodeSpartan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/codespartan/32/1194561_2.png) [@CodeSpartan](https://forums.unrealengine.com/u/CodeSpartan)\
**Post date:** [September 5, 2019, 2:12am UTC](https://forums.unrealengine.com/t/dialogue-plugin/59871/444 "2019-09-05T02:12:35Z")

</div>

Submitted the 4.23 version. As always, it should go live in a couple of days.

- Fixed a bug where VarStrings wouldn’t get replaced in player spoken lines.
- Fixed a bug where the widget would consume all input: OnKeyDown would return “handled” for all keys, instead of just the ones that we want to use.
- For C++ users: changed RecieveEventTriggered from BlueprintImplementableEvent to BlueprintNativeEvent.

---

<div class="post-metadata">

**Author:** ![AIELGENERAL](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AIELGENERAL](https://forums.unrealengine.com/u/AIELGENERAL)\
**Post date:** [September 10, 2019, 3:56am UTC](https://forums.unrealengine.com/t/dialogue-plugin/59871/445 "2019-09-10T03:56:28Z")

</div>

Hello, first let me say thanks for making this plugin, I look forward to using it throughout many of my projects. I have a few questions bare in mind and I hope I can word them correctly.

So when the widget is first created it appears on screen with reply options and shows the mouse cursor. If i click on the screen the mouse is consumed and does not appear leaving me unable to use it. My solution to this has been to show the mouse cursor myself upon creating the widget, so I guess that is a solution I have found. The big issue I am having is that the reply buttons and the continue button do not have focus upon the widget being created meaning that the d-pad on a game pad do nothing. To fix this I set focus on the widget and this led to an issue in which holding down the button which selects on the game pad would fire not just only the current reply but automatically fire any responses or even the continue button the moment they were on screen.

So it seems that setting focus on the widget so i can use a game pad will focus the buttons so i can select them but it is also keeping focus and if I hold the select button down it will fire any buttons that appear. I hope i have described my issue well enough that you can assist me in finding a way to fix this.

---

<div class="post-metadata">

**Author:** ![CodeSpartan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/codespartan/32/1194561_2.png) [@CodeSpartan](https://forums.unrealengine.com/u/CodeSpartan)\
**Post date:** [September 13, 2019, 5:50pm UTC](https://forums.unrealengine.com/t/dialogue-plugin/59871/446 "2019-09-13T17:50:07Z")

</div>

> [@AIELGENERAL](#):
>
> holding down the button which selects on the game pad would fire not just only the current reply but automatically fire any responses or even the continue button the moment they were on screen.

I don’t have it, and I don’t see how it could happen, because the code is “OnKeyDown”, meaning it only triggers once when you press the button down. It can’t keep triggering, unless you have a faulty gamepad, or you did something weird to your code.

Maybe there’s a bug in the stock widget? I did modify it for 4.23, so there’s always a possibility. I can look at your project if you send it to me by mail. My email is on the marketplace (my seller’s page).

---

<div class="post-metadata">

**Author:** ![yus.0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@yus.0](https://forums.unrealengine.com/u/yus.0)\
**Post date:** [September 27, 2019, 5:51am UTC](https://forums.unrealengine.com/t/dialogue-plugin/59871/447 "2019-09-27T05:51:45Z")

</div>

Hi, the plugin is very helpful for our project and the node-based editor is an incredible time-saver.

One quick question; I want to show the next dialogue text only on mouse click event (not using the timer). It might also used to skip the currently shown dialogue node. I’ve looked at all 29 pages of the forum thread and did not find a similar question/solution. Does the plugin allow such thing? If not, how can I add this feature? Thanks

---

<div class="post-metadata">

**Author:** ![AIELGENERAL](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AIELGENERAL](https://forums.unrealengine.com/u/AIELGENERAL)\
**Post date:** [October 2, 2019, 9:03pm UTC](https://forums.unrealengine.com/t/dialogue-plugin/59871/448 "2019-10-02T21:03:30Z")

</div>

> [@](#):
>
> I don’t have it, and I don’t see how it could happen, because the code is “OnKeyDown”, meaning it only triggers once when you press the button down. It can’t keep triggering, unless you have a faulty gamepad, or you did something weird to your code.
> 
> Maybe there’s a bug in the stock widget? I did modify it for 4.23, so there’s always a possibility. I can look at your project if you send it to me by mail. My email is on the marketplace (my seller’s page).

Apologies on the late follow up. I was finishing up a project with a dead line. I have sent you a sample recreation of the problem I mentioned when using a controller when clicking. It happens when you HOLD down the button that simulates click. It just seems to fire through an entire dialogue node sequence without pause until it’s done. I do hope it’s something simple to fix and as you mentioned may have missed when making a subtle change for 4.23 compatibility. Thanks again for creating this awesome plugin.

---

<div class="post-metadata">

**Author:** ![CodeSpartan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/codespartan/32/1194561_2.png) [@CodeSpartan](https://forums.unrealengine.com/u/CodeSpartan)\
**Post date:** [October 3, 2019, 3:45am UTC](https://forums.unrealengine.com/t/dialogue-plugin/59871/449 "2019-10-03T03:45:11Z")

</div>

I had a look, and it’s got nothing to do with the controller, it’s just how unreal’s i/o framework treats “OnKeyDown” - it keeps sending OnKeyDown events as long as the user keeps the button pressed down.

So the workaround is simple: [Dialogue Plugin: "Select Reply" key spam fix - YouTube](https://youtu.be/uCoTO4js7mY)

I’ll introduce this fix in the next version, meanwhile you can fix it by following the video instructions. Thanks for the bug report.

---

<div class="post-metadata">

**Author:** ![armano02](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@armano02](https://forums.unrealengine.com/u/armano02)\
**Post date:** [October 3, 2019, 2:21pm UTC](https://forums.unrealengine.com/t/dialogue-plugin/59871/450 "2019-10-03T14:21:40Z")

</div>

Hello @, i really like this plugin its making creating dialogues way easier than data-tables, but i have few remarks about UI (of editor)

This will make it even better:

- mouse-over on connections (this should highlight connected nodes)
- key-binds from BehaviorTree (ctrl+click, alt+click - default ue4 keybinds) to move connection and break it

There is also one bug:

- variables from events and conditions that are not instance editable are visible in dialogue editor

* * *

One question:

- in my project i have to display icons next to dialogue options, so far only way i can think of implementing this is having something similar to your [impression], it will mean that i have to check (lets say if string starts) with some phrase and remove this part afterwards.  
do you know about any better option to do it?

example:

- one of dialogue options is quest related
- one of dialogue options shows shop/skills/etc.

edit: my question was answered already:  
[https://forums.unrealengine](https://forums.unrealengine)./unreal-engine/marketplace/78002-dialogue-plugin/page28#post1642426

* * *

this product is great anyway, thank you for your hard work

---

<div class="post-metadata">

**Author:** ![AIELGENERAL](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AIELGENERAL](https://forums.unrealengine.com/u/AIELGENERAL)\
**Post date:** [October 3, 2019, 7:59pm UTC](https://forums.unrealengine.com/t/dialogue-plugin/59871/451 "2019-10-03T19:59:43Z")

</div>

> [@](#):
>
> I had a look, and it’s got nothing to do with the controller, it’s just how unreal’s i/o framework treats “OnKeyDown” - it keeps sending OnKeyDown events as long as the user keeps the button pressed down.
> 
> So the workaround is simple: [https://youtu.be/uCoTO4js7mY](https://youtu.be/uCoTO4js7mY)
> 
> I’ll introduce this fix in the next version, meanwhile you can fix it by following the video instructions. Thanks for the bug report.

Thanks! I’m glad I managed to find a bug for you and that it was an easy fix! I’ll be utilizing this in my next game, go devs!

---

<div class="post-metadata">

**Author:** ![JR\_SilentGames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JR\_SilentGames](https://forums.unrealengine.com/u/JR_SilentGames)\
**Post date:** [October 15, 2019, 3:50pm UTC](https://forums.unrealengine.com/t/dialogue-plugin/59871/454 "2019-10-15T15:50:58Z")

</div>

Hello - I have a really strange bug inside the Dialogue files, the little arrows that are supposed to appear on the connector lines are enormous!

Have you seen this before and have any suggestions for a solution? It doesn’t affect functionality but it’s pretty annoying!

 ![VisualBugwithDialogueEditor.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/9/e/9e311d3c5156429dc08bf3202c884ecd47ff74c8.png)

---

<div class="post-metadata">

**Author:** ![JR\_SilentGames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JR\_SilentGames](https://forums.unrealengine.com/u/JR_SilentGames)\
**Post date:** [October 18, 2019, 9:16am UTC](https://forums.unrealengine.com/t/dialogue-plugin/59871/455 "2019-10-18T09:16:24Z")

</div>

> [@JR\_SilentGames](#):
>
> Hello - I have a really strange bug inside the Dialogue files, the little arrows that are supposed to appear on the connector lines are enormous!
> 
> Have you seen this before and have any suggestions for a solution? It doesn’t affect functionality but it’s pretty annoying!
> 
> ![VisualBugwithDialogueEditor.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/9/e/9e311d3c5156429dc08bf3202c884ecd47ff74c8.png)

In case anyone else had this issue, it was \*\*resolved \*\*by rebuilding after downgrading VS2019 to 16.2 (issue occurs on 16.3).

---

<div class="post-metadata">

**Author:** ![Namesis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/namesis/32/88715_2.png) [@Namesis](https://forums.unrealengine.com/u/Namesis)\
**Post date:** [December 1, 2019, 5:13am UTC](https://forums.unrealengine.com/t/dialogue-plugin/59871/456 "2019-12-01T05:13:20Z")

</div>

Hi,

I have few questions.

1. Is there is a input box for NPC Name. I tried adding %npcname% but it wont take it. is there a way to show the NPC Name (on the run, say same Dialogue but different NPCs). This is where the “Calvin” name shows up. Not in the PC Answer or NPC Answer part.

2. Is there a way to add a input text? meaning, if you have this “Guild NPC” that can create guilds, so in one of the PC\_Answers the player can write"DialogPluginGuild" (instead of choosing, since everyone wants their own guildname)… then hit continue to create it.

---

<div class="post-metadata">

**Author:** ![clebo99](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@clebo99](https://forums.unrealengine.com/u/clebo99)\
**Post date:** [December 1, 2019, 4:21pm UTC](https://forums.unrealengine.com/t/dialogue-plugin/59871/457 "2019-12-01T16:21:33Z")

</div>

Hi…I just posted this question in the Marketplace but maybe you guys can help as well. I’m having a Cast Failed issue and I’m not sure what I’m doing wrong. I’m using a Box Trigger with an NPC to initiate the dialog. Using Print Strings, I can see that the Box Trigger is working and the Cast is Failing. I’m casting from the AI and the object to is Get Player Character. What am I missing?

Thanks.

---

<div class="post-metadata">

**Author:** ![clebo99](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@clebo99](https://forums.unrealengine.com/u/clebo99)\
**Post date:** [December 1, 2019, 10:29pm UTC](https://forums.unrealengine.com/t/dialogue-plugin/59871/458 "2019-12-01T22:29:11Z")

</div>

And I have a second question as the one above I figured out (my dumb fault for “casting” the wrong item). So what I want is a pretty long dialog between my 1st person character and a 3rd person NPC. I setup the dialog tree and that looks good. I have a few (I think very solvable) problems:

1. The text is not being removed when I answer/ask the NPC something. The letters super impose themselves over what was there before.
2. I’m confused on some of the items in the dialog widget. When I try to edit some of it I get compile errors. For example, I’m still not 100% sure what the “Character” button is supposed to be (the one on the right hand side of the Widget).
3. I kind of solved an issue I’m having with the Show Mouse Cursor command. I think I fixed it by turning it on/off during the Box Trigger on/off overlap, but it seems clugy. Not sure if there is another way that this is done.

Anyway, thanks UE Community.

---

<div class="post-metadata">

**Author:** ![fearofdreaming](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/fearofdreaming/32/553797_2.png) [@fearofdreaming](https://forums.unrealengine.com/u/fearofdreaming)\
**Post date:** [December 4, 2019, 7:56am UTC](https://forums.unrealengine.com/t/dialogue-plugin/59871/459 "2019-12-04T07:56:25Z")

</div>

Has anyone tried using this with a first-person game?

---

<div class="post-metadata">

**Author:** ![hydr0k](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hydr0k/32/784603_2.png) [@hydr0k](https://forums.unrealengine.com/u/hydr0k)\
**Post date:** [December 11, 2019, 1:42am UTC](https://forums.unrealengine.com/t/dialogue-plugin/59871/460 "2019-12-11T01:42:06Z")

</div>

Hi there,

I am trying to get access to dialogue events in blueprint. When I break the DialogueNode, I do not see Events or Conditions. How can I see them in Blueprints? To try and expose to BP, I modified Dialogue.h from:

```auto

UPROPERTY(Instanced, EditDefaultsOnly, Category = "Dialogue Node")
TArray<UDialogueEvents*> Events;

```

to:

```auto

UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Dialogue Node")
TArray<UDialogueEvents*> Events;

```

to no avail.

Anybody have any suggestions?

---

<div class="post-metadata">

**Author:** ![PartlyAtomic](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PartlyAtomic](https://forums.unrealengine.com/u/PartlyAtomic)\
**Post date:** [December 14, 2019, 8:01pm UTC](https://forums.unrealengine.com/t/dialogue-plugin/59871/461 "2019-12-14T20:01:11Z")

</div>

To anyone having trouble compiling this with 4.24 now that TScopedPointer is fully deprecated:

Change DialogueViewportWidget.h line 218 to

```auto

TUniquePtr<FDialogueZoomLevelsContainer> ZoomLevels;

```

and DialogueViewportWidget.cpp line 128 to

```auto

ZoomLevels = TUniquePtr<FDialogueZoomLevelsContainer>(new FDialogueFixedZoomLevelsContainer());

```

---

<div class="post-metadata">

**Author:** ![CodeSpartan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/codespartan/32/1194561_2.png) [@CodeSpartan](https://forums.unrealengine.com/u/CodeSpartan)\
**Post date:** [December 14, 2019, 11:24pm UTC](https://forums.unrealengine.com/t/dialogue-plugin/59871/463 "2019-12-14T23:24:37Z")

</div>

> [@hydr0k](#):
>
> Hi there,
> 
> I am trying to get access to dialogue events in blueprint. When I break the DialogueNode, I do not see Events or Conditions. How can I see them in Blueprints? To try and expose to BP, I modified Dialogue.h from:
> 
> ```auto
> 
> UPROPERTY(Instanced, EditDefaultsOnly, Category = "Dialogue Node")
> TArray<UDialogueEvents*> Events;
> 
> ```
> 
> to:
> 
> ```auto
> 
> UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Dialogue Node")
> TArray<UDialogueEvents*> Events;
> 
> ```
> 
> to no avail.
> 
> Anybody have any suggestions?

Adding “BlueprintReadWrite” worked for me.

Have you copied the plugin into your project, removed the plugin from engine (in Epic Launcher), changed the lines in your project’s version of the plugin, then recompiled the project? Because you may have done everything right, but your project is using the engine’s plugin, not your project’s version of the plugin.

---

<div class="post-metadata">

**Author:** ![hydr0k](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hydr0k/32/784603_2.png) [@hydr0k](https://forums.unrealengine.com/u/hydr0k)\
**Post date:** [December 14, 2019, 11:58pm UTC](https://forums.unrealengine.com/t/dialogue-plugin/59871/464 "2019-12-14T23:58:32Z")

</div>

> [@](#):
>
> Adding “BlueprintReadWrite” worked for me.
> 
> Have you copied the plugin into your project, removed the plugin from engine (in Epic Launcher), changed the lines in your project’s version of the plugin, then recompiled the project? Because you may have done everything right, but your project is using the engine’s plugin, not your project’s version of the plugin.

Hey thanks a ton , your suggestion worked like a charm. Appreciate the support. Cheers!

---

<div class="post-metadata">

**Author:** ![Namesis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/namesis/32/88715_2.png) [@Namesis](https://forums.unrealengine.com/u/Namesis)\
**Post date:** [December 15, 2019, 6:27pm UTC](https://forums.unrealengine.com/t/dialogue-plugin/59871/465 "2019-12-15T18:27:24Z")

</div>

> [@Namesis](#):
>
> Hi,
> 
> I have few questions.
> 
> 1. Is there is a input box for NPC Name. I tried adding %npcname% but it wont take it. is there a way to show the NPC Name (on the run, say same Dialogue but different NPCs). This is where the “Calvin” name shows up. Not in the PC Answer or NPC Answer part.
> 
> 2. Is there a way to add a input text? meaning, if you have this “Guild NPC” that can create guilds, so in one of the PC\_Answers the player can write in a inputbox"DialogPluginGuild" (instead of choosing, since everyone wants their own guildname).. then hit continue to create it.

bump on this question

/10char

[Previous page](https://forums.unrealengine.com/t/dialogue-plugin/59871.md?page=21)

[Next page](https://forums.unrealengine.com/t/dialogue-plugin/59871.md?page=23)
