UCC - how to show character/object name on interact message?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
OddMan2
Posts: 29
Joined: Fri Feb 11, 2022 11:14 am

UCC - how to show character/object name on interact message?

Post by OddMan2 »

hello, i can't figure out how to show the actor name in the interact ability message.
From what i understand, this should be the default behavior but if i set "TALK TO: {0}" as the ability message it just shows "TALK TO:", without the name.

What could i be missing?

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

Re: UCC - how to show character/object name on interact message?

Post by Tony Li »

This is a general UCC interaction feature, which I mention because you can use it for more than just Dialogue System interaction.

The "{0}" depends on the interactable (e.g., NPC) having a script that implements UCC's IInteractableMessage interface, as described on this UCC documentation page.

Here's an updated DialogueSystemTriggerInteractableTarget that implements IInteractableMessage so you don't have to write one.

DS_UCC_DSInteractableTarget_2022-02-21.unitypackage

I'll send off the updated full integration package to Opsive, too.
OddMan2
Posts: 29
Joined: Fri Feb 11, 2022 11:14 am

Re: UCC - how to show character/object name on interact message?

Post by OddMan2 »

Thank you for your reply,
In the meantime i came to the same conclusion and i was writing my interactable target script but you beat me to it!
Great support as always.
Post Reply