Trigger conversations by code not working

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
NexGen96
Posts: 6
Joined: Mon Oct 18, 2021 9:24 am

Trigger conversations by code not working

Post by NexGen96 »

Hey guys im new at Dialog System.
My question is, when i try to trigger a conversation by On Start or On Enable it doesnt trigger, and to do that i was setting active true/false a gameobject with the Dialog System Trigger component to trigger the conversation, but even when i do it manualy in the inspector it doesnt trigger, I can trigger easily with the On Use option but cant other than that, even baked the ids but is not running. Anything im doing wrong ?
User avatar
Tony Li
Posts: 22112
Joined: Thu Jul 18, 2013 1:27 pm

Re: Trigger conversations by code not working

Post by Tony Li »

Hi,

When you set the GameObject active, check the Dialogue System Trigger's Conditions section. Maybe the conditions are not true yet.

Examine the Console log for any errors or warnings.

Temporarily set the Dialogue Manager's Other Settings > Debug Level to Info. This will log a lot of info to the Console window. When you set the GameObject active, review the activity in the Console log. It may indicate that no dialogue entry nodes are currently valid (e.g., their Conditions are false) or some other issue.

p.s. - Another way to start a conversation in code is to use DialogueManager.StartConversation()
Post Reply