How to output big text through Bark in NGUI?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Evgeny
Posts: 16
Joined: Sun Mar 13, 2016 11:18 am

How to output big text through Bark in NGUI?

Post by Evgeny »

It is necessary to output the big text through the Bark system, over object.
It is desirable to output the text on the separate part for time.
I have divided the text and have arranged parts in separate Dialogue entry. Each Dialogue entry is a child from the main entrance.
Question what set of components on object I can output consistently all parts.
Each following has to be played, after the termination previous (the text with a postscoring)

I apologize for my English :)
User avatar
Tony Li
Posts: 21925
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to output big text through Bark in NGUI?

Post by Tony Li »

Hello,

Use a Bark Trigger and a Bark On Dialogue Event. There is a similar example in Examples/Bark Example/Three NPCs Bark.

The Bark Trigger will start the first dialogue entry and set a variable. Then it will send an OnBarkEnd message to the character.

The Bark On Dialogue Event will listen for the OnBarkEnd message. Then it will play the next dialogue entry and increment the variable. This will continue until all of the dialogue entries are done.

I'll post an example later today.
User avatar
Tony Li
Posts: 21925
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to output big text through Bark in NGUI?

Post by Tony Li »

This example imports into Dialogue System Examples/NGUI Bark Conversation.

It has 2 characters:
  • Private Hart: Barks on start. Uses a combination of Bark Trigger and Bark On Dialogue Event. Uses a variable to remember which line to bark.
  • Sergeant Graves: Barks when used (space bar). Plays a conversation using Conversation Trigger. Uses Bark Dialogue UI and Override Dialogue UI to play his lines through his bark UI.
Post Reply