sending player text entry in a dialog

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
eonian
Posts: 3
Joined: Fri Aug 27, 2021 1:04 pm

sending player text entry in a dialog

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

Re: sending player text entry in a dialog

Post 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:
eonian
Posts: 3
Joined: Fri Aug 27, 2021 1:04 pm

Re: sending player text entry in a dialog

Post by eonian »

ok thanks for the super quick answer. I will investigate then!
eonian
Posts: 3
Joined: Fri Aug 27, 2021 1:04 pm

Re: sending player text entry in a dialog

Post by eonian »

ok thanks for the super quick answer. I will investigate then!
Post Reply