Get a dialogue text

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
miguelfanclub
Posts: 43
Joined: Sat Nov 28, 2015 4:09 pm

Get a dialogue text

Post by miguelfanclub »

Is it possible to get a dialogue text into a string variable? I want to have all the texts inside dialogue manager for easier localization.

Any playmaker action for this?
User avatar
Tony Li
Posts: 21070
Joined: Thu Jul 18, 2013 1:27 pm

Re: Get a dialogue text

Post by Tony Li »

Hi Miguel,

There are a few ways.

Using the Dialogue Editor window, you can export your database as CSV format and then open it in Microsoft Excel or Google Sheets.

Or you can use the I2 Localization integration. (You must own a license for I2 Localization.) This is an easy way to manage localization, and you can also use Google Translate to get translations to work with until you have the final translations ready.

At runtime, there is no Playmaker action. But you can get a dialogue text in a script if you know the conversation and dialogue entry IDs:

Code: Select all

DialogueEntry entry = DialogueManager.MasterDatabase.GetDialogueEntry(conversationID, entryID);
string dialogueText = entry.DialogueText;
miguelfanclub
Posts: 43
Joined: Sat Nov 28, 2015 4:09 pm

Re: Get a dialogue text

Post by miguelfanclub »

For now, i jusrt want to create Texts in Dialogue S. and then get them to use everywher, from UI to ingame text.
A get text (and convert it to string) is what Im looking for.
User avatar
Tony Li
Posts: 21070
Joined: Thu Jul 18, 2013 1:27 pm

Re: Get a dialogue text

Post by Tony Li »

I think you're looking for localized text tables.

Create a localized text table and add your UI text content. Then assign it your Dialogue Manager.

Add Localize UI Text components to your UI elements.

Add an Update Localized UI Texts component to your Dialogue Manager.
miguelfanclub
Posts: 43
Joined: Sat Nov 28, 2015 4:09 pm

Re: Get a dialogue text

Post by miguelfanclub »

Will try this. Thanks.
Post Reply