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
How to setup an NPC monologue
Re: How to setup an NPC monologue
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:
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:
- How To: Set Up Overhead Bubble Text
- How To: Continue Without Continue Button (in case you want the player to press a special key or joystick button, or be able to click anywhere onscreen)
Re: How to setup an NPC monologue
Thank you Tony
Re: How to setup an NPC monologue
Glad to help!