This page describes how to set up the Dialogue System with Chatterware's Now We're Talking. (Now We're Talking is required.)
Now We're Talking copyright © Chatterware.
(Click Here For Video Tutorial)
NWT(entrytag)
sequencer command to play the phases.You can make a typewriter effect play babble/mumble speak by assigning audio clips to its Audio Clip and Alternate Audio Clips fields. To make Now We're Talking animate the mouth according to those audio clips, add an NWT Actor component to the character.
Syntax:
NWT( phase, [subject], [nowait] )
This sequencer command plays a phase by name on a Now We're Talking subject.
For the subject, you can specify speaker
, listener
, or the name of a GameObject or actor registered with a Dialogue Actor component. If you omit subject, it will use the current speaker.
By default, the NWT() sequencer command waits until the phase is done. (It does this by checking the duration of the first audio clip in the phase.) If you specify nowait
as the third parameter, it will not wait.
If the Now We're Talking subject doesn't have a phase with the specified name, this command will attempt to load an audio clip with that name from Resources, asset bundles, or Addressables.
This is useful in combination with Entrytags. Just name your audio clips according to their entrytags, put them in a Resources folder or mark them Addressable, and use the sequencer command: NWT(entrytag)
.