Page 1 of 1

How to setup an NPC monologue

Posted: Mon Aug 08, 2022 8:44 am
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

Re: How to setup an NPC monologue

Posted: Mon Aug 08, 2022 9:40 am
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:

Re: How to setup an NPC monologue

Posted: Mon Aug 08, 2022 4:16 pm
by Carbon6T
Thank you Tony

Re: How to setup an NPC monologue

Posted: Mon Aug 08, 2022 5:01 pm
by Tony Li
Glad to help!