GetItemPropertyUsesPerDayRemaining(object, itemproperty)
From NWN Lexicon
Jump to navigationJump to searchReturns the number of uses per day remaining of the given item and item property.
Parameters
- oItem
- The item to test.
- ip
- The item property to test for uses remaining.
Description
Returns the number of uses per day remaining of the given item and item property. Will return 0 if the given item does not have the requested item property, or the item property is not uses/day.
Remarks
This is useful when trying to find a usable item for ActionUseItem functions. These require the uses of the item property be valid, such as an item having at least 1 uses left this day.
Version
This function was added in 1.80.8193.14 of NWN:EE.
Example
See Also
functions: | SetItemPropertyUsesPerDayRemaining() ActionUseItemOnObject() ActionUseItemAtLocation() |
author: Shadguy