Quest Dialogue UI for Enemy 6 and Enemy 8 Lost

I followed everything ok up to 3:49 mins into this lecture, but when I came to test the game, I found that the Dialogue UI for both Enemy 6 and 8 got broken. The below image shows what is happening if I click on both Enemy 6 and Enemy 8.
image

I am getting the error message below in the Console:

I have tracked down the error messages listed in the Console (shown in the screen capture above) and included them with the corresponding code below. Any help on how to solve this issue would be appreciated. Can’t quite figure out what is wrong. Thanks!

RPG.UI.DialogueUI.UpdateUI () (at Assets/Scripts/UI/DialogueUI.cs:41)
    
           conversantName.text = playerConversant.GetCurrentConversantName();

RPG.Dialogue.PlayerConversant.StartDialogue (RPG.Dialogue.AIConversant newConversant, RPG.Dialogue.Dialogue newDialogue) (at Assets/Scripts/Dialogue/PlayerConversant.cs:31)

        onConversationUpdated();

RPG.Dialogue.AIConversant.HandleRaycast (RPG.Control.PlayerController callingController) (at Assets/Scripts/Dialogue/AIConversant.cs:25)

	callingController.GetComponent<PlayerConversant>().StartDialogue(this, dialogue);

RPG.Control.PlayerController.InteractWithComponent () (at Assets/Scripts/Control/PlayerController.cs:78)
 	
    if (raycastable.HandleRaycast(this))
                    {
                        SetCursor(raycastable.GetCursorType());
                        return true;
                    }

RPG.Control.PlayerController.Update () (at Assets/Scripts/Control/PlayerController.cs:42)

    if (InteractWithComponent()) return;

It looks like the null reference has to be in the conversantName. Is the conversantName component assigned in the inspector for the DialogueUI?

Enemy 6 and Enemy 8 both have a Conversant Name assigned as shown below. Is this what you are referring to? Thanks.
Enemy 6
image

Enemy 8
image

Actually, I mean in the Dialogue UI setup:


The error message says this isn’t assigned.

Yes, that fixed the problem. Thank you!

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms