Page 1 of 1
Issues with conversation triggers
Posted: Fri Apr 12, 2019 6:37 pm
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
Re: Issues with conversation triggers
Posted: Fri Apr 12, 2019 9:33 pm
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);
Re: Issues with conversation triggers
Posted: Sat Apr 13, 2019 4:32 pm
by bluebuttongames
That really helped me out, the logging detailed where I was going wrong. Naturally it was all my fault.
Thanks, again!
Re: Issues with conversation triggers
Posted: Sat Apr 13, 2019 4:39 pm
by Tony Li
Glad to help!