Skip to content

SetItemCharges(oItem,0) does not set an item's charges to zero

Has anyone else had this problem?

Setting charges to a positive (>0) value works.

Setting charges to zero or a negative value is seemingly ignored (as verified by a GetItemCharges() immediately after).

Regards.

Comments

  • ForSeriousForSerious Member Posts: 540
    edited July 29
    The lexicon makes it sound like the item should be destroyed if you do that.
    I feel like there's a disconnect between this function and the 'uses per day' item property.
    Go figure, there's SetItemPropertyUsesPerDayRemaining. Maybe changing to 'uses/day' will work better for you?
    Post edited by ForSerious on
Sign In or Register to comment.