Page 1 of 1

Condition doesn't affect Dialogue entry until too late

Posted: Sat Apr 21, 2018 10:55 am
by Antonio O
After several tests, I can't figure out how to stop a dialogue from showing, using a quest state as the decisive element.

What I want to achieve is that the NPC (Trigger by the player), will talk to him about a task he need to complete, after several seconds later (3) if the player didn't complete the task, he (NPC) will remind him(in a more aggressive now).

The problem is that the conversation follows without taking into account the recent quest status change.

Is my approach the right one? thanks!

Re: Condition doesn't affect Dialogue entry until too late

Posted: Sat Apr 21, 2018 11:34 am
by Tony Li
Hi,

To accommodate certain continue buttons modes, the Dialogue System evaluates conditions one level ahead (from the More On Conditions page). This may be the issue if you're setting the quest state in one dialogue entry node and then checking that quest state in the next node.

If that's not the issue, does the NPC start a new conversation after 3 seconds? Or is the conversation still running from before?

Are you setting the quest state in Script fields and checking it in Conditions fields, like this:

Image

Re: Condition doesn't affect Dialogue entry until too late

Posted: Sat Apr 21, 2018 1:15 pm
by Antonio O
To accommodate certain continue buttons modes, the Dialogue System evaluates conditions one level ahead (from the More On Conditions page). This may be the issue if you're setting the quest state in one dialogue entry node and then checking that quest state in the next node.
That's exactly the issue, I will check the documentation right away! to make it work thanks

Re: Condition doesn't affect Dialogue entry until too late

Posted: Sat Apr 21, 2018 1:36 pm
by Antonio O
Is there a way to Delay the "Delay evaluation Node" , cause using @# doesn't seems to work ?

Re: Condition doesn't affect Dialogue entry until too late

Posted: Sat Apr 21, 2018 5:03 pm
by Tony Li
Hi,

Are you talking about the node whose title is "<delay evaluation>" in the image below?

Image

(From Conversations Evaluate Conditions One Extra Level Ahead)

If so, does this mean you want the conversation to stay on this node for some duration? If that's the case, you can set its Sequence to:

Code: Select all

Delay(#)
where # is the duration.

Re: Condition doesn't affect Dialogue entry until too late

Posted: Mon Apr 23, 2018 2:47 am
by Antonio O
That way doesn't work. If I add the "Delay(#)" The "delay evaluation" node doesn't seem to delay the evaluation, I need to add an extra node in order to work. Weird, not sure why

Re: Condition doesn't affect Dialogue entry until too late

Posted: Mon Apr 23, 2018 8:28 am
by Tony Li
Hi,

It sounds like the "delay evaluation" node might have some Conditions or Script on it itself. If you'd like to investigate this further, please let me know what's different about the structure of your quest conversation vs. the example conversation screenshot above. You're also welcome to send an example to tony (at) pixelcrushers.com. I'll be happy to take a look.