Trying to branch with RandomizeNextEntry, but both branches are displayed

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
diccon
Posts: 27
Joined: Wed Sep 23, 2020 2:20 pm

Trying to branch with RandomizeNextEntry, but both branches are displayed

Post by diccon »

I guess I am doing something wrong here, but I can't work out what... I want to give the player 3 response options, but I want to vary the text so I have created parent groups for each set of 3 responses, and am using RandomizeNextEntry to try and select one of the parents.
However what is actually happening is all the groups are being evaluated and all the options are being displayed. Is there a better way to set up something like this?

Image
User avatar
Tony Li
Posts: 21962
Joined: Thu Jul 18, 2013 1:27 pm

Re: Trying to branch with RandomizeNextEntry, but both branches are displayed

Post by Tony Li »

Hi,

RandomizeNextEntry() only applies to NPC entries. Instead, set a variable to a random value, and set conditions on the player response entries:

randomResponse.png
randomResponse.png (21.55 KiB) Viewed 438 times
diccon
Posts: 27
Joined: Wed Sep 23, 2020 2:20 pm

Re: Trying to branch with RandomizeNextEntry, but both branches are displayed

Post by diccon »

Oh I didn't know that RandomizeNextEntry was only for NPCs, still this solution works great, thanks for your quick reply as always.
User avatar
Tony Li
Posts: 21962
Joined: Thu Jul 18, 2013 1:27 pm

Re: Trying to branch with RandomizeNextEntry, but both branches are displayed

Post by Tony Li »

Glad to help!
Post Reply