Page 1 of 1

Trying to branch with RandomizeNextEntry, but both branches are displayed

Posted: Mon Aug 16, 2021 1:48 pm
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

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

Posted: Mon Aug 16, 2021 2:07 pm
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 442 times

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

Posted: Mon Aug 16, 2021 2:30 pm
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.

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

Posted: Mon Aug 16, 2021 2:55 pm
by Tony Li
Glad to help!