Ultimate Inventory System Item Counter Question

Announcements, support questions, and discussion for Quest Machine.
Post Reply
jkaczmar
Posts: 15
Joined: Thu Jun 29, 2023 7:15 pm

Ultimate Inventory System Item Counter Question

Post by jkaczmar »

I have UIS working with QM to count things like number of items in inventory for quest control, but is there a way to reflect the current number of UIS items in the QM UI? For example, the player has 5 of 10 Heal Weeds and I want to show this in the HUD so they know how many more they have to pickup.

I understand that I can use the QM messaging system to increase a QM counter that is managed separately {#healweeds}/10 Heal Weeds but this creates a separate process from the quest control which is managed by the UIS Item count. If this is the way it has to be done, that's fine. I just want to make sure I'm not creating extra work for myself because I'm missing something that has already been built out in the integration.
User avatar
Tony Li
Posts: 22871
Joined: Thu Jul 18, 2013 1:27 pm

Re: Ultimate Inventory System Item Counter Question

Post by Tony Li »

No, the intended approach is to let the UIS Item Amount Quest Condition keep a quest counter in sync with the inventory. This way everything else in your quest / Quest Machine can work with quest counters without having to do anything else special for UIS.
jkaczmar
Posts: 15
Joined: Thu Jun 29, 2023 7:15 pm

Re: Ultimate Inventory System Item Counter Question

Post by jkaczmar »

Sorry, I totally missed the field to match the UIS count with the counter (in my case zombieguts). I was parsing through the UIS/QM example, and I couldn't figure out for the life of me how you were incrementing the #weeds counter. It was staring me in the face the entire time.
counter question.png
counter question.png (63.51 KiB) Viewed 3789 times
Post Reply