Assign dialogue responses to specific buttons.

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Carl
Posts: 9
Joined: Fri May 01, 2020 11:29 am

Assign dialogue responses to specific buttons.

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

Re: Assign dialogue responses to specific buttons.

Post 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.
Carl
Posts: 9
Joined: Fri May 01, 2020 11:29 am

Re: Assign dialogue responses to specific buttons.

Post by Carl »

That's perfect! Solved. Thank you for the assistance : )
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: Assign dialogue responses to specific buttons.

Post by Tony Li »

Happy to help! :-)
Post Reply