I am making rpg game which may talk to npc and interact with objects.
There are some problems I don't know how to solve:
1. How to make the dialogue not show character name when the dialogue is a remainder or a narrative statement?
2. How to change the input so that when I press key Z in keyboard, the dialogue will continue (or end for last statement). I have set input as below, but it got no response when I pressed Z.
3. Now when i start a conversation, the dialogue will continue to next node after about 2 second. How to set the conversation continue only if I pressed the key Z?
4. When the dialogue is for player, it always shows selections for player, how to set no selection when there is only one option? I have tried not check the Always force response menu, but this will skip that player dialogue.
5. How to limit the line of dialogue to 2?
6. How to set random nodes for a conversation when talking to npc?
Thank you.
Problems for dialogue database setting
Problems for dialogue database setting
- Attachments
-
- dialogueInputProblem.JPG (74.14 KiB) Viewed 442 times
Re: Problems for dialogue database setting
Hi,
Use a different subtitle panel that doesn't have a Portrait Name field. Example steps:
- Edit your dialogue UI. Duplicate the NPC Subtitle Panel. Rename the duplicate to "Narrator Subtitle Panel". Add it to the dialogue UI's Standard Dialogue UI component > Conversation UI Elements > Subtitle Panels list. Note its element number (e.g., 2). This is its panel number.
- Create a "Narrator" actor in your dialogue database.
- Create an empty GameObject as a child of your Dialogue Manager. Name it "Narrator". Add a Dialogue Actor component. Set Dialogue UI Settings > Subtitle Panel Number to the element number (e.g., panel 2).
- Alternatively, use the [panel=#] markup tag in a dialogue entry node's Dialogue Text to show that node in the panel.
Inspect your dialogue UI's Continue Button(s). Add a UI Button Key Trigger component, and set the Key to Z.
Inspect the Dialogue Manager GameObject. Set Display Settings > Subtitle Settings > Continue Button to Always.
See: How To: Bypass Response Menu When Player Has One Choice
In the preceding node, use the RandomizeNextEntry() Lua function in the Script field.
Re: Problems for dialogue database setting
It seems most of them are dialogue UI issues. I kept using the default UI and didn't study dialogue UI much yet.
Sorry for asking trivial questions. Thank you for your reply.
Sorry for asking trivial questions. Thank you for your reply.
Re: Problems for dialogue database setting
Always happy to help!