SetItemPropertyUsesPerDayRemaining( object, itemproperty, int )
- The item to update.
- The item property to update for uses remaining.
- The uses remaining to set.
Sets the number of uses per day remaining of the given item and item property. Will do nothing if the given item and item property is not uses/day. Will constrain nUsesPerDay to the maximum allowed as the cost table defines.
This is useful to replenish an items usable charges if the NPC has used it in battle and you want "fresh" loot for the player to pick up.
Otherwise it would be to help cheat uses of an item for NPCs or PCs.
This function was added in 1.80.8193.14 of NWN:EE.
|functions:||GetItemPropertyUsesPerDayRemaining() ActionUseItemOnObject() ActionUseItemAtLocation()|