Issues with conversation triggers

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
bluebuttongames
Posts: 91
Joined: Tue Jul 14, 2015 8:22 am

Issues with conversation triggers

Post by bluebuttongames »

Hi there,

I'm having some issues with a series of conversation triggers, they are all seemingly identical but when I get to triggering a certain one nothing happens. I can't trace the issue.

I've looked through the documenation but can't seem to find a direct way in code to start a conversation by specifying ref db, actor, conversant and conversation to achieve the same effect.

How can I do that?

Thanks,

BB
User avatar
Tony Li
Posts: 22056
Joined: Thu Jul 18, 2013 1:27 pm

Re: Issues with conversation triggers

Post by Tony Li »

Hi,

A Dialogue System Trigger will let you assign a reference database that's different from the Dialogue Manager's Initial Database, but it assumes you'll have loaded that database before the trigger fires. If you're only using one database (which is the simplest approach), that isn't a concern. If you're using multiple databases, make sure you've loaded any extra databases that your triggers use. You can use an Extra Databases component or call DialogueManager.AddDatabase() in code. (If you're using multiple databases, also make sure IDs are unique.)

If that's not the issue, make sure the Dialogue Manager's Debug Level is set to Warnings or Info, reproduce the issue, and check the Console for warnings.

When a Dialogue System Trigger checks if it should run, the Condition section will show (Last Check: True) in green if the conditions you've specified are true or if you haven't specified any conditions. It will show (Last Check: False) in red if the conditions are false.
bluebuttongames wrote: Fri Apr 12, 2019 6:37 pmI've looked through the documenation but can't seem to find a direct way in code to start a conversation by specifying ref db, actor, conversant and conversation to achieve the same effect.

Code: Select all

DialogueManager.AddDatabase(db);
DialogueManager.StartConversation("Title", actor, transform);
bluebuttongames
Posts: 91
Joined: Tue Jul 14, 2015 8:22 am

Re: Issues with conversation triggers

Post by bluebuttongames »

That really helped me out, the logging detailed where I was going wrong. Naturally it was all my fault.

Thanks, again!
User avatar
Tony Li
Posts: 22056
Joined: Thu Jul 18, 2013 1:27 pm

Re: Issues with conversation triggers

Post by Tony Li »

Glad to help!
Post Reply