How to make a loop in the dialogue?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
BlackBullStudio
Posts: 3
Joined: Sun Oct 29, 2023 2:01 pm

How to make a loop in the dialogue?

Post by BlackBullStudio »

Hello!
I'm developing a game with dialogue system like in project "Deus Ex: Human Revolution".
Now I'm trying to make a loop in the dialogue.
Why I need that loop? This manner to do the dialoue provides fixed amount of information but replicas can appear in different order, so the game becomes more variable.
What does it mean "'the loop"?
See the link of one of the dialogues:
See my picture in attachement.
So the question is - how can I make such loop in Dialogue System?
Thank you!
Attachments
DialogueLoop.PNG
DialogueLoop.PNG (75.37 KiB) Viewed 419 times
User avatar
Tony Li
Posts: 22112
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to make a loop in the dialogue?

Post by Tony Li »

Hi,

That's a common pattern in the Dialogue System. You can set it up like this:

loop.png
loop.png (62.23 KiB) Viewed 417 times

If you want to hide some options after the player has seen them, use SimStatus.

If you want to use different text formatting to show options that the player has already seen, set the Dialogue Manager's Display Settings > Input Settings > [em#] Tag For Old Responses.
BlackBullStudio
Posts: 3
Joined: Sun Oct 29, 2023 2:01 pm

Re: How to make a loop in the dialogue?

Post by BlackBullStudio »

It works, thank you!
I've revealed that messages "{group} <cycle>" and "Loop Back" are written in the game dialogue if I write it in "Menu text" or "Dialogue text". But I don't need them. Should I not write them at these fields and leave them blank?
User avatar
Tony Li
Posts: 22112
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to make a loop in the dialogue?

Post by Tony Li »

For the {group} nodes, tick the Group checkbox. This will make them into group nodes that do not have Menu Text or Dialogue Text. In my screenshot above, I set the Title field to "Cycle" and "Loop Back".
BlackBullStudio
Posts: 3
Joined: Sun Oct 29, 2023 2:01 pm

Re: How to make a loop in the dialogue?

Post by BlackBullStudio »

Thank you very much!
User avatar
Tony Li
Posts: 22112
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to make a loop in the dialogue?

Post by Tony Li »

Glad to help!
Post Reply