How to loop next entry?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
shshwdr
Posts: 20
Joined: Wed Feb 02, 2022 10:00 pm

How to loop next entry?

Post by shshwdr »

I want something similar to RandomizeNextEntry(), but instead of randomize, it would loop between the entries that satisfy conditions. The only way I can think is to save the dialogue name with the index into a variable, is there any good way to do this?
User avatar
Tony Li
Posts: 21980
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to loop next entry?

Post by Tony Li »

You could do exactly what you describe. Set a DS variable's initial value to 0. At the beginning of the conversation (or wherever you loop from), increment the variable's value. Set the dialogue entry nodes' Conditions to check the variable value. You'll need to pay attention to your additional conditions on the nodes to make sure at least one node's Conditions are true.
Post Reply