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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.