How to setup an NPC monologue

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Carbon6T
Posts: 2
Joined: Mon Aug 08, 2022 8:24 am

How to setup an NPC monologue

Post by Carbon6T »

Hi how do I setup an NPC monologue please?
I'm making a 3D game. I would like a button prompt to appear above an NPC character's head when my player character approaches the NPC and then when the button is pressed on the controller, the NPC steps through a monologue, displaying new text, after each successive button press, until the end of the monologue is reached. I would like the text of the monologue to appear in a "world space" speech bubble above the NPC's head.

I found on this forum "How To: Set Up Player Monologues", but it does not go into any details of which components to use, nor how to apply them nor set them up etc.

Thank you and kind regards

Jeff
User avatar
Tony Li
Posts: 22145
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to setup an NPC monologue

Post by Tony Li »

Hi,

Use the same steps as in the Interaction Tutorial to start a conversation, with these differences:

1. Keep the conversation Actor set to Player and Conversant set to the NPC actor. You should see these in watermark text in the lower right of the Dialogue Editor window as you're editing the conversation. But assign all nodes to the NPC. When you add the first node, it will be gray (i.e., assigned to NPC). To make the next node use the same actor, hold down Shift when you right-click and select Create Child Node. It's more convenient than swapping the node's dropdown values in the Inspector view.

2. Inspect the Dialogue Manager GameObject. Set Display Settings > Subtitle Settings > Continue Button to Always to require the player to click a continue button to advance each line.

3. Set up an overhead subtitle bubble on the NPC.

Helpful links:
Carbon6T
Posts: 2
Joined: Mon Aug 08, 2022 8:24 am

Re: How to setup an NPC monologue

Post by Carbon6T »

Thank you Tony
User avatar
Tony Li
Posts: 22145
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to setup an NPC monologue

Post by Tony Li »

Glad to help!
Post Reply