Page 1 of 1

Items / Simple Inventory System?

Posted: Mon Sep 02, 2019 4:05 pm
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)

Re: Items / Simple Inventory System?

Posted: Mon Sep 02, 2019 8:22 pm
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)

Re: Items / Simple Inventory System?

Posted: Thu May 26, 2022 2:43 pm
by rloft123
So something more along these lines? https://www.pixelcrushers.com/phpbb/viewtopic.php?t=878

Re: Items / Simple Inventory System?

Posted: Thu May 26, 2022 2:54 pm
by Tony Li
Sorry, I don't follow. That link is for multi-conversation NPCs.