Default when multiple conditions are false

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
boz
Posts: 76
Joined: Mon Oct 19, 2020 8:59 pm

Default when multiple conditions are false

Post by boz »

I have a situation where you hit a "traffic controller" of several branches of conditions in the dialogue.

There's a branch that requires no condition - it's meant to be the default if you meet none of the conditions. And it worked. That is, until I added a new condition node.

Now if I add a new condition node, the default no-condition branch intercepts any "true" condition created after the no-condition node was created and bypasses the new condition node altogether.

I don't see anywhere to set this node as the "only use this if all of the other conditions are false". Is there maybe something I could type in the condition field to do this?

The only solution I have so far is to unlink and re-link the "default" node whenever I add a new condition. (which won't work at scale because one forgetful moment will lead to that condition never working)

:)
User avatar
Tony Li
Posts: 22051
Joined: Thu Jul 18, 2013 1:27 pm

Re: Default when multiple conditions are false

Post by Tony Li »

Hi,

Inspect the "traffic controller" node that has the links to the other nodes. The links will be shown at the bottom of the Inspector. Use the up/down arrow buttons to move the default link to the bottom of the list.

Additionally (or alternatively), you can set the link's Priority to BelowNormal. This means it will only be checked if none of the Normal priority links are true.
Post Reply