Simple Dialogue System

NPC dialogue part 2



Paste the folder in target project Content folder

Open the project, and open the NPC BP
copy and paste the following BP nodes in NPC

Create variables for NPC chart and Conversation Info
image.png
In Event Activation Dialogue node, extend the graph:
image.png

In Endchat node, copy the following paste in Player Adjustment node:
image.png
Replace Set movement node by disable movement node:
image.png
Create a eventbeginplay node
image.png

Go to NPC Dialogue widget, event graph
in end conversation node, replace the new End Chat node
image.png


Make Conversation info variable visible in NPC
image.png
Drag NPC in scene, set message in Default in Details
add 4 elements for responses
(leave blank if less than 4 repsonses, but always set 4 elements, because the NPC messages are set as 4 buttons)
image.png

Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.