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
DialogueSystemTrigger with UCC
Re: DialogueSystemTrigger with UCC
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
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
-
- Posts: 29
- Joined: Sat Mar 27, 2021 7:34 am
Re: DialogueSystemTrigger with UCC
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.
-
- Posts: 29
- Joined: Sat Mar 27, 2021 7:34 am
Re: DialogueSystemTrigger with UCC
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
Got it. You could always set a new tag if you want, or you could change the child collider GameObject's tag to Player.