[Solved] Changing Portrait Image (for Expression) as per Dialogue

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
harshad.asawale
Posts: 12
Joined: Wed Jan 30, 2019 1:02 pm

[Solved] Changing Portrait Image (for Expression) as per Dialogue

Post by harshad.asawale »

I got 2 queries related to this.
1] How do we fill the pictures field for a dialogue entry? Is it the asset persistent file path? (Please check the attachment)
2] I want to change the portrait image in the PC / NPC subtitle panel, according to the Picture specified for the dialogue entry. Which is the easiest way to achieve this? Fiddling with the existing code? Or using an animator which can be linked to the dialogue system?
Please guide at least on a gross level, if the procedure is too lengthy.
Attachments
picture.PNG
picture.PNG (30.74 KiB) Viewed 757 times
Last edited by harshad.asawale on Fri Feb 01, 2019 3:03 pm, edited 1 time in total.
User avatar
Tony Li
Posts: 22056
Joined: Thu Jul 18, 2013 1:27 pm

Re: Changing Portrait Image (for Expression) as per Dialogue

Post by Tony Li »

Hi,
harshad.asawale wrote: Wed Jan 30, 2019 1:14 pm1] How do we fill the pictures field for a dialogue entry? Is it the asset persistent file path? (Please check the attachment)
Ignore the Pictures field. It's a holdover from Chat Mapper. The Dialogue System's internal data structure is based on Chat Mapper, a popular third party branching conversation application. By default, a dialogue database has several Chat Mapper fields -- including Pictures, Parenthetical, and Audio Files -- that are not used by the Dialogue System. They exist only to make it easier to import and export to Chat Mapper if you want to do that. You can delete these fields from the template, with the option to delete them from all dialogue entries.
harshad.asawale wrote: Wed Jan 30, 2019 1:14 pm2] I want to change the portrait image in the PC / NPC subtitle panel, according to the Picture specified for the dialogue entry. Which is the easiest way to achieve this? Fiddling with the existing code? Or using an animator which can be linked to the dialogue system?
Please guide at least on a gross level, if the procedure is too lengthy.
In the Actors section, assign portrait images to the actor. You will notice that each portrait image is assigned a number. In the dialogue entry's Dialogue Text, use the [pic=#] markup tag, where # is the image number. For example, if image 2 is a happy image, you could set the Dialogue Text field to:
  • Dialogue Text: "I'm so happy! [pic=2]"
This will use the image for that dialogue entry only. If you want to permanently change the portrait number, use the SetPortrait() sequencer command. (More info on sequences: sequences, tutorials)
Post Reply