0% found this document useful (0 votes)
11 views10 pages

Dialogue System Document

Uploaded by

baliciaskawaii
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views10 pages

Dialogue System Document

Uploaded by

baliciaskawaii
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

D’Dialogue System by doublsb

If you have questions, visit github repository!

https://github.com/DoublSB/UnityDialogAsset

Contents

- Installation and setup

- Basic example

- Commands

- Other Settings
Installation and setup
1) Import D’Dialogue System.

2) Find the ‘DialogAsset’ prefab which in Asseet/DialogAsset/Prefab folder.

3) Move the ‘DialogAsset’ prefab to the scene which you want.

4) Move the ‘Character’ prefab to the DialogAsset/Characters.


Basic Example
1) Set the sprite you want to display to Emotion -> Normal.

2) Change gameobject name to your character name.

3) The basic setup is complete! Get DialogManager and call method ‘Show’!

- Using Doublsb.Dialog namespace.

- Create new dialogData. Input two parameters, text, character name.

- Call Show method with created DialogData.


Commands
You can use various commands just by editing the text.

All commands begin and end with slash character. ( / )

1) Speed

Adjusting text speed.

/speed:up/ Reducing text delay by 0.25 seconds.


/speed:down/ Increasing text delay by 0.25 seconds.
/speed:init/ Changing text delay to initial value.
/speed:(float)/ Changing text delay to float value.

2) Size

Adjusting size within the text.

/size:up/ Increasing text size by 10.


/size:down/ Decreasing text size by 10.
/size:init/ Changing text size to initial value.
/size:(int)/ Changing text size to int value.

3) Click

Pause the printing until the window is clicked.

/click/ Pause the printing until the window is clicked.

4) Close

Forces the window to close without interaction.

/close/ Forces the window to close without interaction.


5) Wait

Pause the printing for amount of time.

/wait:(float)/ Pause the printing for amount of time.

6) Color

Change color within the text.

/color:(Color Name)/ Change color with supported color names.


https://docs.unity3d.com/Packages/[email protected]/manual/StyledText.html
Check out ‘Supported colors’ in Unity’s official documentation.
/color:(Hex Code)/ Change color with hex code.
Ex) /color:#1fcbfc/
7) Emote

Change the character’s sprite while printing text.

/emote:(emote name)/ Change the character sprite with emote name

If you want to add new emotions to your character, follow the steps.

(1) Open the inspector of character which you want to add emotions.

(2) Enter the emotion's name and click create.

(3) Change new emotion’s sprite.

(4) Use emote command to display new emotion.


8) Sound

Play the sound while printing text.

/emote:(sound name)/ Play the sound with sound name.

If you want to play sound, you need to set Call SE. Follow the steps.

(1) Open the inspector of character and add sound object.

(2) Now we can use sound command with sound object’s name.
Selection

You can display choice items in the dialogue.

Add a choice item to the SelectList of the DialogData class.

Use callbacks to make the dialogue react differently depending on the result.
Other Settings
1) Setting Chat SE

If you add Chat SE, sound will be play for each delay. This feature allows you to make different chat
sounds for each character.

If you set multiple ‘Chat Se’, one of the sounds will be play randomly for each delay.

2) Callback

You can set callback when the window is hidden.

When the message is over and the window is clicked, the window is hidden. After that, the callback
is invoked.

3) Setting Skippable

If you set ‘isSkippable’ to false, users cannot skip text even if you click on the window.

4) Default text size

Set DialogData.Format.DefaultSize to change default text size.


5) Default print delay time

Set default delay time at Dialog Manager inspector.

You might also like