Page 1 of 1

sending player text entry in a dialog

Posted: Fri Aug 27, 2021 1:16 pm
by eonian
Hi,

is it possible via script to have the player manually entering a text and then to dispatch it using the preselected UI in the dialog manager?

example would be:
  • A conversion start with anode from an NPC saying something
    the player answer manually using an inputfield prefab independent from your dialog system
    a script inject the player entry in the preselected dialog manager UI like a player node does in a conversation.

thank you!

Re: sending player text entry in a dialog

Posted: Fri Aug 27, 2021 1:30 pm
by Tony Li
Hi,

Yes. This is what the built-in TextInput() sequencer command does. It shows an input field. When the player submits the input, it stores the value in a Dialogue System variable and the conversation continues. To see it in action, play DemoScene1 and interact with the computer terminal.

If you don't want to use TextInput(), you can write a custom sequencer command.

Related links:

Re: sending player text entry in a dialog

Posted: Fri Aug 27, 2021 3:55 pm
by eonian
ok thanks for the super quick answer. I will investigate then!

Re: sending player text entry in a dialog

Posted: Fri Aug 27, 2021 3:55 pm
by eonian
ok thanks for the super quick answer. I will investigate then!