Changing Portraits Through The Conversation?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
gamingdebugged
Posts: 11
Joined: Sat Oct 19, 2024 8:54 am

Changing Portraits Through The Conversation?

Post by gamingdebugged »

Hi All,

I just wondered if you can change the character portrait during the conversation. I would like to swap the pose/expression as the NPC says different lines. Do I have to use animated portraits or is there a simple way to switch the image?

Thanks
User avatar
Tony Li
Posts: 23259
Joined: Thu Jul 18, 2013 1:27 pm

Re: Changing Portraits Through The Conversation?

Post by Tony Li »

Hi,

In the Dialogue Editor, assign portraits to the actor's Portrait Sprites list. Note their portrait number (1, 2, 3, etc.). By default, conversations will show portrait sprite 1. In Dialogue Text, include [pic=#] markup tags to show a different portrait sprite. For example, if portrait 2 is a smiling image:
  • Dialogue Text: "Yay! Happy day! [pic=2]"
To change the portrait sprite permanently (or for the duration of the conversation if your actor isn't associated with a Dialogue Actor component), use the SetPortrait() sequencer command.
gamingdebugged
Posts: 11
Joined: Sat Oct 19, 2024 8:54 am

Re: Changing Portraits Through The Conversation?

Post by gamingdebugged »

Amazing! Thank you!!
User avatar
Tony Li
Posts: 23259
Joined: Thu Jul 18, 2013 1:27 pm

Re: Changing Portraits Through The Conversation?

Post by Tony Li »

Glad to help!
Post Reply