uccRemoveItem issue

Announcements, support questions, and discussion for the Dialogue System.
User avatar
nathanj
Posts: 303
Joined: Sat May 28, 2016 12:30 am

Re: uccRemoveItem issue

Post by nathanj »

Thanks Tony,

Don't see that message, I assume it would be a warning. ATM I'm only getting info messages.

Image

K, I'll check if there is anything different with my player's inventory.

Thanks again,
Nathan
User avatar
nathanj
Posts: 303
Joined: Sat May 28, 2016 12:30 am

Re: uccRemoveItem issue

Post by nathanj »

Actually, I just tried removing a weapon and it worked, maybe is does have to do with the item categories.

What would the syntax be fore Variable["PlayerName"] and ".Food"be?
User avatar
Tony Li
Posts: 22166
Joined: Thu Jul 18, 2013 1:27 pm

Re: uccRemoveItem issue

Post by Tony Li »

Hi Nathan,

Please try this patch:

DS_UCCLuaPatch_2021-02-15.unitypackage

The original code I got from Opsive assumed that all items were slotted (equippable) items. This should remove other item categories, too. We updated UCCSaver and uccAddItem() to handle other item categories but didn't update uccRemoveItem().
User avatar
nathanj
Posts: 303
Joined: Sat May 28, 2016 12:30 am

Re: uccRemoveItem issue

Post by nathanj »

Beauty!

Thanks Tony,

One thing if the item count is 0 the item is still in the inventory but with a count of 0, it's not removed completely. I mean, it's not an issue but thought you might like to know.

Thank you again and again.

Sorry for bothering you so late in the day, you should log off, mate ;)

Nathan
User avatar
Tony Li
Posts: 22166
Joined: Thu Jul 18, 2013 1:27 pm

Re: uccRemoveItem issue

Post by Tony Li »

I forgot to add that line! Here's an updated update. :-)

DS_UCCLuaPatch_2021-02-15a.unitypackage
User avatar
nathanj
Posts: 303
Joined: Sat May 28, 2016 12:30 am

Re: uccRemoveItem issue

Post by nathanj »

Perfect.

Thanks again, Tony. You are the best.

Nathan
User avatar
Tony Li
Posts: 22166
Joined: Thu Jul 18, 2013 1:27 pm

Re: uccRemoveItem issue

Post by Tony Li »

Glad to help! :-)
Post Reply