Not disabling NPC Portrait after clicking Continue button to advance to response menu

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
destrucity
Posts: 24
Joined: Mon Feb 11, 2019 6:29 pm

Not disabling NPC Portrait after clicking Continue button to advance to response menu

Post by destrucity »

I picked back up an old project and upgraded to 2018.3 and Dialogue System 2.1.0 from 1.x. This problem did not occur in the previous version of the game.

I've noticed behavior where when I click my Continue button, the NPC portrait disables itself if displaying the response menu is next.

If there is no response menu next, or if I do not click the Continue button, the portrait GameObject will remain enabled.

Here is a video of the issue:
In the video, the Continue button is invisible and takes up the whole screen. The first time speaking to the NPC functions correctly (I'm not pressing the continue button until the typewriter effect has completed, or letting the response menu automatically display). The player character intentionally has no portrait.

The second time speaking to the NPC, I press the Continue button to advance the dialog, and the NPC portrait disappears (not desired).

Here is a link to my DialogueSystemController settings in the inspector. Let me know if any settings that might not be visible are relevant and I will happily find those details: https://i.imgur.com/a4Og330.png

Is this a setting I'm missing or misunderstanding? Any help is much appreciated.
User avatar
Tony Li
Posts: 22056
Joined: Thu Jul 18, 2013 1:27 pm

Re: Not disabling NPC Portrait after clicking Continue button to advance to response menu

Post by Tony Li »

Hi,

Does your dialogue UI use the UnityUIDialogueUI script, the StandardUIDialogueUI script, or another script? The step to address that should be pretty simple, but it depends on which dialogue UI script you're using.
destrucity
Posts: 24
Joined: Mon Feb 11, 2019 6:29 pm

Re: Not disabling NPC Portrait after clicking Continue button to advance to response menu

Post by destrucity »

I appreciate the reply.

I am indeed using the UnityUIDialogueUI as seen here: https://i.imgur.com/6gbSsR3.png
User avatar
Tony Li
Posts: 22056
Joined: Thu Jul 18, 2013 1:27 pm

Re: Not disabling NPC Portrait after clicking Continue button to advance to response menu

Post by Tony Li »

Hi,

Is the NPC's Portrait Image also assigned to Response Menu > Subtitle Reminder > Portrait Image?

If not, please try assigning it.

If it's already assigned, check the conversation's Sequence fields for any SetPortrait() sequencer commands.

BTW, interesting-looking game. Any info available on it?
destrucity
Posts: 24
Joined: Mon Feb 11, 2019 6:29 pm

Re: Not disabling NPC Portrait after clicking Continue button to advance to response menu

Post by destrucity »

The Response Menu > Subtitle Reminder > Portrait Image is indeed assigned: https://i.imgur.com/f9Te6F8.png

Here are links to images of the conversation's setup, which I don't believe involves any SetPortrait (or other) sequencer commands: I should note that this occurs with any conversation in my game that has a response menu (as far as I can tell).

Thanks again and glad to hear the game looks interesting to you! The demo of the old version is here https://nightcity.itch.io/bottleworks. I'm hoping to get an actual game made out of it by the end of summerish, but you know how unpaid part time stuff goes :)
User avatar
Tony Li
Posts: 22056
Joined: Thu Jul 18, 2013 1:27 pm

Re: Not disabling NPC Portrait after clicking Continue button to advance to response menu

Post by Tony Li »

UnityUIDialogueUI did change slightly in 2.x. (The change was actually in a later version of 1.x, but it changed nevertheless). The order of showing and hiding changed to better accommodate animation, but in this instance the continue button hides the portrait image and portrait name just after the subtitle reminder activates it.

There are two quick ways to fix it:

1. Set the NPC and PC Subtitle sections' Visibility to Until Superceded, and unassign the Subtitle Reminder fields. This works if the NPC and PC Subtitle sections both use all the same elements -- portrait image, portrait name, and subtitle line.

2. Otherwise, instead of #1, duplicate the Portrait Image and Portrait Name fields. Assign the duplicates to the Subtitle Reminder section. Leave Visibility at Only During Content. Here's an example of this approach:

destrucityExample_2019-02-12.unitypackage
User avatar
Tony Li
Posts: 22056
Joined: Thu Jul 18, 2013 1:27 pm

Re: Not disabling NPC Portrait after clicking Continue button to advance to response menu

Post by Tony Li »

p.s. - Thanks for the link! I bookmarked it to check it out this weekend.
destrucity
Posts: 24
Joined: Mon Feb 11, 2019 6:29 pm

Re: Not disabling NPC Portrait after clicking Continue button to advance to response menu

Post by destrucity »

I went for option 1 which seems to have worked like a charm. Thanks again, and if you try out the game I'd love to know your feedback!
Post Reply