Page 1 of 1

Dialogue System and Shops

Posted: Sat May 22, 2021 2:47 pm
by YeeHonk
I'm looking for advice on how to link the Dialogue System with in-game shops. For example, you walk up to a merchant and talk to them, they say their generic dialogue, and then it opens the shop menu to buy or sale. Is there a way I could trigger the shop menu inside or at the end of the conversation?

Re: Dialogue System and Shops

Posted: Sat May 22, 2021 3:02 pm
by Tony Li
Hi,

Sure! Are you using an off-the-shelf shop system from the Asset Store or one you've developed yourself?

If it's from the Asset Store, check for an integration. For example, the Dialogue System's Ultimate Inventory System integration provides an OpenShop() sequencer command that you can use in the Sequence field of the last node of your conversation.

Otherwise you can write a custom sequencer command or use something like the SendMessage() sequencer command or a scene event to invoke a method on your shop.

Re: Dialogue System and Shops

Posted: Sat May 22, 2021 4:30 pm
by YeeHonk
Thank you for getting back to me. Yes, it's a custom-made system. I think I'll try the scene event!