Change Player Actor And Conversant Portrait In Same Dialogue Node

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Graggunner
Posts: 2
Joined: Wed Feb 28, 2024 3:22 pm

Change Player Actor And Conversant Portrait In Same Dialogue Node

Post by Graggunner »

Hello!

I apologize if this has been answered elsewhere or is in the documentation. I could not find an answer myself, so I would very much appreciate help!

I would like to change the portrait of both the Player Character and the Conversant in the same dialogue node. Is there a way to do this?

I am using Playmaker to drive all gameplay, so I could set up essentially a portrait controller and send events, but the [pic=X] syntax is so streamlined I hope there's a way to do it.

I am on Unity 2020.3.25f if that is helpful information.

Thank you so much!

Best,

Greg
User avatar
Tony Li
Posts: 21678
Joined: Thu Jul 18, 2013 1:27 pm

Re: Change Player Actor And Conversant Portrait In Same Dialogue Node

Post by Tony Li »

Hi,

I have an update for that:

DS_piccPatch_2024-02-28.unitypackage

It enables the [picc=#] markup tag, which specify the portrait image for the conversant (i.e., listener) of the dialogue entry.

To change an actor's portrait for the rest of the conversation, use the SetPortrait() sequencer command instead.
Graggunner
Posts: 2
Joined: Wed Feb 28, 2024 3:22 pm

Re: Change Player Actor And Conversant Portrait In Same Dialogue Node

Post by Graggunner »

Hi there! Thank you so much for the response.

Will this be compatible with my version of Unity?
User avatar
Tony Li
Posts: 21678
Joined: Thu Jul 18, 2013 1:27 pm

Re: Change Player Actor And Conversant Portrait In Same Dialogue Node

Post by Tony Li »

Hi,

It should be fine. But back up your project first, just to be safe. In the worst case you can just reimport your version of Unity if there's an issue.
Post Reply