Page 1 of 1

How to realize click response event without add event in entry?

Posted: Thu May 05, 2022 8:46 am
by whbe
Hi, I have a little wired question again.
I want to generate random number after I click special response, and the number will decide which entry would continue, just like the dice event in Disco Elysium. At the beginning, I did it by adding event in entry, but then I found that merge or export to csv would not include the event information. And I need to work with others to write conversation so it's inacceptable.
Also, I try to use Conversation Messages, but no one meets my need, or maybe I use by the wrong way?
Then, I want to add listener in response button, but I can't find where these response buttons generate.
Please tell me how I could realize this function by whatever.The need is easy to merge different conversations.
Thanks a lot again!

Re: How to realize click response event without add event in entry?

Posted: Thu May 05, 2022 9:34 am
by Tony Li
Hi,

Please see the coin flip example conversation on this manual page.

Re: How to realize click response event without add event in entry?

Posted: Fri May 06, 2022 8:54 am
by whbe
Tony Li wrote: Thu May 05, 2022 9:34 am Hi,

Please see the coin flip example conversation on this manual page.
Awesome! I use it and lua register to realize my complex calculate. But I got a little question, in your wiki, after the script change the variables, there must be a delay evaluation entry before condition entry. But I don't have this delay entry, the variable change and condition also works.

Re: How to realize click response event without add event in entry?

Posted: Fri May 06, 2022 9:07 am
by Tony Li
You only need the <delay> node if you set the variables in one node and then immediately check the variable value in a node directly linked from it. This is because the Dialogue System evaluates two nodes ahead, which means that it may evaluate the conditions before you have set the variable.