A dialog is defined in a xml files. Dialogs files are in Assets/Data/Dialog.
The format of this file is the following :
<Dialog> <Title>King Intro Dialog</Title> <Text> <Part ActorName="Knight">My King!!! My King you have to run. The castle will fall.</Part> </Text> </Dialog>
The ActorName must be the name of an actor object.
An actor is an asset to describe a character in a dialog. It contains a name and a picture of the actor. Actrs can be created using the menu Persistent/Create/Dialog Actor
There are two ways to play a dialog in a sequence:
To play a dialog, you need to use a Trigger_Press Button and an Interaction Dialog. The trigger press button contains the conditions to launch the interaction dialog. The interaction dialog knows what dialog to play. It needs to be registered to the Trigger_Press Button “Interactions” list. This list contains all the interactions to execute when the trigger is activated.