Items / Simple Inventory System?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
SystemId
Posts: 30
Joined: Thu Aug 08, 2019 1:31 pm

Items / Simple Inventory System?

Post by SystemId »

Hello,
Still fairly new to the Dialogue system, but I know enough to make basic quests.
I would like to make an item gathering quest, that requires inventory items. (Lets say collect Potions)

This maybe more of question about guidance?

I want to make a very basic player Inventory system that just tracks Item IDs and Amounts. Although the Item Database was included into the Dialogue System ... I'm not entirely sure the best way to going about getting this for my Project. Any links to resources or hints to how I should approach this would be really helpful. (So I can use the Dialogue sequences to add/remove items from an inventory)
User avatar
Tony Li
Posts: 22148
Joined: Thu Jul 18, 2013 1:27 pm

Re: Items / Simple Inventory System?

Post by Tony Li »

Hi,

Items in the Dialogue System are just data records. There's no runtime UI component to them. If you plan to use them and implement your own UI, here are some suggestions:
  • Add a custom field to track the amount of the item that the player currently has. (In the Dialogue Editor, inspect the item and expand All Fields.)
  • Use the Conditions and Script fields to check and set item fields. The "..." wizard has a dropdown option for items.
Otherwise, consider using one of the third party inventory assets that the Dialogue System has integrations with. The simplest and least expensive is Inventory Engine. The integrations have Lua functions that you can use in Conditions and Script fields to check and set item quantities. (Inventory Engine integration docs)
rloft123
Posts: 22
Joined: Wed May 25, 2022 8:11 pm

Re: Items / Simple Inventory System?

Post by rloft123 »

So something more along these lines? https://www.pixelcrushers.com/phpbb/viewtopic.php?t=878
User avatar
Tony Li
Posts: 22148
Joined: Thu Jul 18, 2013 1:27 pm

Re: Items / Simple Inventory System?

Post by Tony Li »

Sorry, I don't follow. That link is for multi-conversation NPCs.
Post Reply