Adding an NPC talk box

Now that you have already created a dialog box that pops up when the player interacts with the NPC, you can easily add dialog for the player to see when they click on the Talk button. Simply duplicate the DialogBox Widget Blueprint that you made previously and place it in the NPC folder under Content Browser located in Content | Blueprints | UI. Rename the duplicated Widget Blueprint Shop_Talk.

We will now add some proper dialog to this menu by opening the Shop_Talk Widget Blueprint. Then, within the Designer viewport, select the Text Block that is already placed into your Canvas Panel.

Once selected, navigate to Details | Content and, within Text, select Bind | + Create Binding.

As always, this action will automatically bring ...

Get Building an RPG with Unreal 4.x now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.