hi, tony,
I'm making an AVG game. I need to display multiple alert messages within the game scene before the conversation begins. How can I display these multiple alert message sequentially, ensuring the conversation only starts after all messages have been displayed and acknowledged?
Multiple Alert Message Before Conversation
Re: Multiple Alert Message Before Conversation
Hi,
To display alerts sequentially, inspect your dialogue UI's StandardDialogueUI component and tick Queue Alerts:
To wait until all initial alerts have been displayed, you can use a script with a method like this:
Another option is to show the alerts as a conversation instead of alerts. If they're sequential, it's kind of like a sequential conversation.
To display alerts sequentially, inspect your dialogue UI's StandardDialogueUI component and tick Queue Alerts:
To wait until all initial alerts have been displayed, you can use a script with a method like this:
Code: Select all
IEnumerator Start()
{
// Wait one frame to allow any alerts to start:
yield return null;
// Then wait until no more alerts are visible:
while (DialogueManager.standardDialogueUI.alertControls.isVisible)
{
yield return null;
}
// Here, start your conversation.
}
Re: Multiple Alert Message Before Conversation
Got it! Thanks!
The another option I also want to have a try.
This is my way:
I created a narration conversation, started it, and after it concluded, I switched to another conversation. Is that what you mean? but there are 2 questions:
1. It can't jump to another convesation and start
2.The Dialogue UI can't show the right display, it shows like a npc, I want it display just like alert message and then when the narration conversation finished, it starts a conversation to a npc and show the NPC Subtitle Panel
The another option I also want to have a try.
This is my way:
I created a narration conversation, started it, and after it concluded, I switched to another conversation. Is that what you mean? but there are 2 questions:
1. It can't jump to another convesation and start
2.The Dialogue UI can't show the right display, it shows like a npc, I want it display just like alert message and then when the narration conversation finished, it starts a conversation to a npc and show the NPC Subtitle Panel
Re: Multiple Alert Message Before Conversation
There are a few ways to do this.
Method 1
You can use this if the visible UI elements of a dialogue UI are contained in the subtitle panels and menu panels. For example, the Basic Standard Dialogue UI is like this. However, the WRPG Dialogue UI is not, because it has a background image that it visible even when all subtitle panels and menu panels are closed.
In this method, set the narrator to use a subtitle panel designed specifically for narration, such as with a Dialogue Actor component on the narrator GameObject. Set the other subtitle panels' Visibility to anything except for Always From Start.
Method 2
If your dialogue UI has visible UI elements even when all subtitle panels and menu panels are closed, you will need to use a separate dialogue UI for the narrator:
Method 1
You can use this if the visible UI elements of a dialogue UI are contained in the subtitle panels and menu panels. For example, the Basic Standard Dialogue UI is like this. However, the WRPG Dialogue UI is not, because it has a background image that it visible even when all subtitle panels and menu panels are closed.
In this method, set the narrator to use a subtitle panel designed specifically for narration, such as with a Dialogue Actor component on the narrator GameObject. Set the other subtitle panels' Visibility to anything except for Always From Start.
Method 2
If your dialogue UI has visible UI elements even when all subtitle panels and menu panels are closed, you will need to use a separate dialogue UI for the narrator: