DialogueSystemTrigger with UCC

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
christianwiele
Posts: 29
Joined: Sat Mar 27, 2021 7:34 am

DialogueSystemTrigger with UCC

Post 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
User avatar
Tony Li
Posts: 21986
Joined: Thu Jul 18, 2013 1:27 pm

Re: DialogueSystemTrigger with UCC

Post 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
christianwiele
Posts: 29
Joined: Sat Mar 27, 2021 7:34 am

Re: DialogueSystemTrigger with UCC

Post 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.
christianwiele
Posts: 29
Joined: Sat Mar 27, 2021 7:34 am

Re: DialogueSystemTrigger with UCC

Post 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.
User avatar
Tony Li
Posts: 21986
Joined: Thu Jul 18, 2013 1:27 pm

Re: DialogueSystemTrigger with UCC

Post 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.
Post Reply