Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Dialogue System not working in third person?

Hello folks,

So I've followed the tutorial posted by Adam on wiki ( https://wiki.unrealengine.com/NPC_Dialogue_System_Tutorial), the only difference I implemented it for a third person template. I've followed every step and double checked everything, but apparently text keeps popping in other places than it's supposed to.

Also, How can I set show mouse cursor as a third person character? Nodes seem to be incompatible for me.

In other words, instead of appearing in the boxes, the text pops out in the name above the chest. Yes, I have created a binding and updated the index for each of the four buttons' text of the dialogue widget.

alt text alt text

Product Version: Not Selected
dialogue 1.png (801.2 kB)
dialogue 2.png (798.9 kB)
more ▼

asked Apr 20 '15 at 07:58 PM in Blueprint Scripting

avatar image

6 1 3 4

avatar image Adam Davis STAFF Apr 21 '15 at 07:32 PM

Hi Imevil50,

I attempted this on my end and was able to get the text to appear and change as intended. Can you send me your assets? I'd be happy to take a look and see what is going on.

avatar image Imevil50 Apr 22 '15 at 08:18 AM

alt text

alt text

alt text alt text alt text

answers.png (374.8 kB)
branch1.png (450.1 kB)
branch2.png (498.0 kB)
branch3.png (462.6 kB)
setbutton.png (410.4 kB)
avatar image Imevil50 Apr 22 '15 at 08:16 AM

Hello Adam,

Thanks a lot for your reply. It was an unexpected surprise. I assumed that by sending the assets, you meant taking screenshots. So, here it goes.

avatar image Imevil50 Apr 22 '15 at 08:29 AM

Here are the remaining.

So, as a quick wrap up. Question 0-1 -> 0-3 go into in the array then onto Option 0 and Option 13 on the selector and on the Set buttontext on the Actor Begin Overlap. The rest of the arrays go into their place. The branches seem to be alright as they show up the required message.

The main issue I believe lies on the Actor begin/end overlap area. I have no 'Cast to ThirdPersonCharacter' over there because it cannot be used to set mouse cursor afterwards. It just isn't compatible, for some reasons. I tried with casting and without the 'set mouse' but with no effect whatsoever. My widget is called DialogueWidget and I'm about to post the pics for it, too.

alt text

alt text ![alt text][3]

selector.png (521.0 kB)
overlap.png (371.4 kB)
overlook.png (427.0 kB)
avatar image Imevil50 Apr 22 '15 at 08:43 AM

The widget :

For the bindings, I updated the index for each one ( get 0 for text 0, get 1 for text 1, get 2 for text 2, get 'imustgo' for text 3 for leaving). My Dialogue Actor BP is called DialogueChest btw. Ignore the function on the left "Get_QA1_bisEnabled'. I accidently created an empty binding for the button, but reversed the changes afterwards.

Any help would be greatly appreciated as dialogue is a major feature for this project.

Thanks a lot!

alt text alt text

alt text

![alt text][5]

alt text

[5]: /storage/temp/39692-gettext1.png

widget.png (246.6 kB)
widgetgraph.png (464.7 kB)
gettext0.png (301.2 kB)
gettext1.png (300.6 kB)
gettextleave.png (303.6 kB)
avatar image Adam Davis STAFF Apr 22 '15 at 05:07 PM

It looks like you forgot to cast to the player controller to make sure you are showing the mouse cursor on the players screen. On your Begin Overlap, make sure the end of the function looks a bit like this:

alt text

avatar image Imevil50 Apr 22 '15 at 05:41 PM

Hey Adam,

Thanks for spending your time answering this. So My character BP is called Third Person Character. That is where i assume i have to cast my player controller.

The 'Cast To ThirdPersobCharacter' is tied to the 'Get player controller' btw.

Here's what I get.

alt text alt text

cast1.png (361.4 kB)
cast 2.png (344.8 kB)
avatar image Adam Davis STAFF Apr 22 '15 at 05:51 PM

The controller is slightly different, Player Controllers are a different class that are generally used to control the character, though typically you can set most of your functionality in the character blueprint without a problem, having a controller allows you to access functionality across multiple characters if need be.

As a practical example, let us say you have 5 different characters players can choose from. You can create all 5 characters, then have a player controller that acts as your "central hub" to choose which character you want to use and access their functionality. If movement is the same in each character, but their combat is different, you can set the movement functionality in the controller and set the individual combat maneuvers in the characters.

If you create new>blueprint>controller you can leave it empty for this specific example as the only functionality you need in there is the show mouse cursor. However you will have to set your controller as the player controller in the world settings and project settings>Maps and Modes so that it is being used.

avatar image Imevil50 Apr 22 '15 at 06:04 PM

Hopefully this will be the last questions.

How do I call the new Controller BP in my dialogue blueprint? For the ThirdPersonCharacter casting I have to get the normal player controller and for the Set Show Mouse I need the new controller,right?

Sorry for bothering you so much, but this is my first time working with a different controller.

avatar image Adam Davis STAFF Apr 22 '15 at 06:24 PM

Not a problem at all! If you get the player controller as you have done you should be able to type in "cast to ". If you look in the example from the tutorial, I cast specifically to "PCCONTROL" instead of the player character. If you have any additional questions please feel free to ask, I'm happy to help!

avatar image Imevil50 Apr 22 '15 at 07:01 PM

Works like a charm. One thing though.

As the NewController from the cast, I was unable to connect it to the set mouse, so I used the old player controller.

The fault was mine for not understanding fully what the blueprint does. I left the question variables untouched and was expecting the 'set Text' message to pop onto my buttons. But all's working well now.

Thanks a lot for your time, Adam! Cheers.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Not a problem, for the future, the reason the show mouse cursor couldn't connect was it was looking for your old player controller. If you drag from the output pin of the cast node "as PlayerController_C" you can re-create the show mouse cursor bool specific to that controller. I'm going to mark this question as answered for tracking purposes. Feel free to open it back up if you continue to have trouble!

more ▼

answered Apr 22 '15 at 07:07 PM

avatar image Imevil50 May 12 '15 at 07:38 PM

Hi Adam, the only reason I'm posting here is because I didn't have the possibility to leave you a private message . You once helped me with this dialogue issue ( which I am extremely grateful) but it seems the more you learn, the more you have to ask. Whenever you find the free time, if you ever get to read this, please take a look here. Your help would be of an extreme value for me.


(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question