Character Conversation
Gives an NPC a layered text conversation system: one of the eight components a character root accepts.
Introduction
Character Conversation provides the layered text dialog system between the player and an NPC: branching chat bubbles driven from the character itself. It is the same Conversation component that objects use, attached to the character root, and it is one of the eight components a character root accepts. The trigger and the conversation script are configured from the character's Properties Panel. For the plain object version, see Conversation . The Conversation component panel on a character in the Uni editor Image The Conversation component panel in the character's Properties Panel. caption
How to Access
Select the character, open its Properties Panel, press Add Component, and pick Conversation under the Trigger category. It is one of the eight components a character root accepts. How to Access - Add Component on a character
Properties
Trigger Mode Enum How the player sets the conversation off. Interact Text String The label on the interaction bubble. Content Script The dialogue itself, edited in the visual Dialog script editor: stack Display Dialog, Choose Dialog, and Run Script blocks (see the section below). Property Type Description Every property on the Conversation component.
The Dialog Script Editor
Clicking the Content property opens the Dialog script editor: a visual, block-based canvas where the whole conversation is built as a flow of blocks. The editor offers three block types, shown in the example below: Display Dialog - shows a chat bubble in the conversation: Display a dialog by [speaker] with the content: [text] . The speaker is a Text value (for example the NPC name) and the content is what the player reads. Choose Dialog - asks the player to pick an answer: When choose choice [text] . Every choice opens its own branch below it, so a single question can lead to different follow-up dialogs. The + button adds another choice, and the - button removes one. Run Script - runs a piece of Uni Script in the middle of the conversation, for rewards, quest flags, or effects that should happen when a line is said. Blocks snap together top to bottom in the order the conversation plays. A typical flow: start with a Display Dialog greeting, add a Choose Dialog with the answer options, and place a Display Dialog inside each choice branch. The example below is a two-line chat: Uni says "Hi, nice to meet you", the player picks "hello" (Uni answers "have a good day") or "goodbye" (Uni answers "see you next time"). A branching dialog in the Dialog script editor: a greeting followed by two choices, each with its own reply Image A simple branching conversation: a greeting from Uni, then two choices where each answer shows its own reply. caption
Events
Conversation has no events.
Commands
Conversation has no commands.
Example
A villager NPC running a short multi-step chat when players talk to them. Character Conversation - simple example