Page 1 of 1

Invector Inventory Issue

Posted: Sat Dec 07, 2019 11:07 am
by BSkram
Hi,

Thanks for a sweet system!

I have a little issue when I have a quest where I need to pick up an item. The item is only recognized if it is a weapon from Invector default itemlist and is set to auto equip when I pick it up. If it's the same weapon without auto equip, the quest does not advance.

When I create my own items, nothing happens aswell.

Any ideas what this can be?

Regards
BSkram

Re: Invector Inventory Issue

Posted: Sat Dec 07, 2019 2:15 pm
by Tony Li
Hi,

How are you checking the inventory?

The Dialogue System's vGetItemCount() Lua function depends on the player's vItemManager component. Make sure your item list data asset is assigned to the vItemManager, and that the quest item is listed in the item list data.

You can also check the result of vGetItemCount() manually at runtime. Add a Lua Console component to the scene. At runtime, press ~+L to open the Lua Console. Then enter:

Code: Select all

return vGetItemCount(#)
where # is the item's ID number.

If that doesn't help, please feel free to send a reproduction project to tony (at) pixelcrushers.com. I'll be happy to take a look.

Re: Invector Inventory Issue

Posted: Sat Dec 07, 2019 2:39 pm
by BSkram
I did not do much more than follow the tutorial for implementing it with Invector.

In the tutorial item ID 12 (shotgun) was used as an example. When I changed it to anything else which was not a weapon, the quest did not recognize it when it was pickd up. (But it was added to the inventory, so the item should work fine).

Regards
BSkram

Re: Invector Inventory Issue

Posted: Sat Dec 07, 2019 5:25 pm
by Tony Li
Sorry, I forgot I was in the Quest Machine forum section instead of the Dialogue System section. For Quest Machine, the Quest Machine Extras page has an updated Invector integration package that makes the Invector Has Items Quest Condition check all items, not just equippables.

Re: Invector Inventory Issue

Posted: Sat Dec 07, 2019 5:34 pm
by BSkram
Excelent!

Thanks for the great support! :)

Re: Invector Inventory Issue

Posted: Sat Dec 07, 2019 5:44 pm
by Tony Li
Glad to help! The updated quest condition should take care of it. If you notice any issues, just let me know.