ConversationHasValidEntry not working correctly
Posted: Sat Aug 19, 2023 6:47 pm
Hey,
I'm using the ink integration, I have a script where on awake all inkTriggers are added to a list and then I can check at any point whether a character has any valid conversations to show sphere above their head with the code below. However, this code doesn't seem to work, the ConversationHasValidEntry always returns true even when in the inspector all triggers have their conditions as false. In the debug log it's literally giving back the first trigger component on the character and that clearly says false in the inspector but it still returns true in this method.
I'm using the ink integration, I have a script where on awake all inkTriggers are added to a list and then I can check at any point whether a character has any valid conversations to show sphere above their head with the code below. However, this code doesn't seem to work, the ConversationHasValidEntry always returns true even when in the inspector all triggers have their conditions as false. In the debug log it's literally giving back the first trigger component on the character and that clearly says false in the inspector but it still returns true in this method.
Code: Select all
public void CheckAvailableDialogue()
{
foreach (DialogueSystemInkTrigger dialogueSystemInkTrigger in dialogueSystemInkTriggers)
{
if (PixelCrushers.DialogueSystem.DialogueManager.ConversationHasValidEntry(dialogueSystemInkTrigger.conversation))
{
newDialogueAvailableSphere.SetActive(true);
Debug.Log(dialogueSystemInkTrigger.conversation);
return;
}
}
Debug.Log("invalid");
newDialogueAvailableSphere.SetActive(false);
}