[Solved] Custom inputs for responses.

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Hertzu
Posts: 2
Joined: Thu Jun 09, 2022 5:44 pm

[Solved] Custom inputs for responses.

Post by Hertzu »

Hi there!! I'm trying to set custom inputs for the different answers but I am clueless on how to do it. I think that the solution is on autonumber but I don't know what to do with the format {0}. {1}. Any suggestion? Thanks!.
Last edited by Hertzu on Fri Jun 10, 2022 2:33 am, edited 1 time in total.
User avatar
Tony Li
Posts: 21977
Joined: Thu Jul 18, 2013 1:27 pm

Re: Custom inputs for responses.

Post by Tony Li »

Hi,

If you want to set up autonumbering, inspect your dialogue UI's response menu panel. On the StandardUIMenuPanel component, tick Autonumber > Enabled. This will assign a number key starting from '1' to each response. If the player presses a number key, it will select the corresponding response.

The Format field lets you specify how the number key is added to the response menu text, where {0} is the number and {1} is the menu text.

For example, if the menu text is "Hello" and the Format is "{0}. {1}" then the menu button's text will be: "1. Hello"

If the Format is "[{0}] {1}", then the menu button's text will be: "[1] Hello"
Hertzu
Posts: 2
Joined: Thu Jun 09, 2022 5:44 pm

Re: Custom inputs for responses.

Post by Hertzu »

Hi Tony,

Thanks for clarifying!!
User avatar
Tony Li
Posts: 21977
Joined: Thu Jul 18, 2013 1:27 pm

Re: [Solved] Custom inputs for responses.

Post by Tony Li »

Happy to help!
Post Reply