Page 1 of 1

Assign dialogue responses to specific buttons.

Posted: Fri May 01, 2020 11:43 am
by Carl
Hi, sorry if this will sound like a dumb question, but I've been trying for a while now and can't figure out how to do this.

Basically my game has 3 buttons: 1 is for answering with a question, 2 is for happy answer, and 3 for sad answer. Point is that they'll not always be all available during conversations, so when for example only 2 and 3 are available, they should to stay in the 2nd and 3rd position. Now instead if 2 is active and 1 is not, 2 takes the position of 1.

Is there a way to link answers in the Dialogue>Conversations tab to specific buttons?

Or is there some other method I haven't considered?

Thank you in advance : )

Edit: clarity.

Re: Assign dialogue responses to specific buttons.

Posted: Fri May 01, 2020 1:25 pm
by Tony Li
Hi,

Use the [position=#] markup tag in the dialogue text. The #'s go from 0 so they match up with the Element numbers in the StandardUIMenuPanel's Buttons list.

Re: Assign dialogue responses to specific buttons.

Posted: Fri May 01, 2020 1:50 pm
by Carl
That's perfect! Solved. Thank you for the assistance : )

Re: Assign dialogue responses to specific buttons.

Posted: Fri May 01, 2020 1:56 pm
by Tony Li
Happy to help! :-)