Page 1 of 1

DialogueSystemTrigger with UCC

Posted: Tue Sep 07, 2021 9:39 am
by christianwiele
Hi,

I am using DSU with UCC and UIS. I want to update a quest entry state when the player picks up an item, or has crafted a specific item. I thought I could use the DialogueSystemTrigger component to check the inventory when the player leaves the trigger. But unfortunately, the UCC collider is on a child of the character, and so the DialogueSystemTrigger does not work as it only knows about the trigger, but not the character/inventory. Is there any other standard means for such a check outside a conversation?

Thanks, Christian

Re: DialogueSystemTrigger with UCC

Posted: Tue Sep 07, 2021 11:39 am
by Tony Li
Hi,

The child GameObject can still trigger the DialogueSystemTrigger. If it's a single player game, you can leave the inventory name blank. Example: uisGetItemAmount("Well-Crafted Sword", "") > 0

Re: DialogueSystemTrigger with UCC

Posted: Tue Sep 07, 2021 11:52 am
by christianwiele
It's multiplayer, but within a conversation I don't have to set the database. I see that the trigger works. but the scripts do not seem to be executed. Within the conversation everything works fine.

Re: DialogueSystemTrigger with UCC

Posted: Tue Sep 07, 2021 1:32 pm
by christianwiele
I found the issue. I filtered for the "player" tag, but the collider did not have that tag, but only the character itself.

Re: DialogueSystemTrigger with UCC

Posted: Tue Sep 07, 2021 3:27 pm
by Tony Li
Got it. You could always set a new tag if you want, or you could change the child collider GameObject's tag to Player.