Dialogue System Items, different types

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Volandpro
Posts: 9
Joined: Sat Feb 04, 2023 3:28 am

Dialogue System Items, different types

Post by Volandpro »

Hello!
I am new here:)

Is it possible to use Dialogue System Items for creating different types of items, for example Weapon, Armor, Usable Items and so on? Also Is it possible to make my own Inventory system work with Dialogue System Items?

Thank you!
User avatar
Tony Li
Posts: 22135
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialogue System Items, different types

Post by Tony Li »

Hi,

Yes, you can use your own inventory system. In fact, that's recommended, since the Items table in your dialogue database is just a set of fields and not a real inventory system. Typically you'll write some C# methods to work with your inventory, such as AddItem(), RemoveItem(), GetItemCount(), etc. Then register them with Lua so you can use those methods in your conversations. This is how the existing inventory system integrations work, such as for Ultimate Inventory System, Inventory Engine, etc.
Post Reply