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

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
whbe
Posts: 4
Joined: Tue May 03, 2022 10:28 am

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

Post 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!
User avatar
Tony Li
Posts: 21977
Joined: Thu Jul 18, 2013 1:27 pm

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

Post by Tony Li »

Hi,

Please see the coin flip example conversation on this manual page.
whbe
Posts: 4
Joined: Tue May 03, 2022 10:28 am

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

Post 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.
User avatar
Tony Li
Posts: 21977
Joined: Thu Jul 18, 2013 1:27 pm

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

Post 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.
Post Reply