GetItemPropertyDuration(itemproperty)

From NWN Lexicon
Jump to navigationJump to search
Nwnee logo.jpg Note: This article documents Neverwinter Nights: Enhanced Edition new content or changes/updates/fixes to 1.69 functions. These are all listed under the category and patches pages.

Returns the total duration of the item property in seconds.

int GetItemPropertyDuration(
    itemproperty nProperty
);

Parameters

nProperty
The item property to get the duration of.


Description

Returns the total duration of the item property in seconds. Returns 0 if the duration type of the item property is not DURATION_TYPE_TEMPORARY.


Remarks

You can get the duration type with GetItemPropertyDurationType. Temporary item properties are not saved to the player BIC/transported to new modules.


Version

This function was added in 1.74.8149 of NWN:EE.


Example

Information icon.png This article is in need of examples. You can help the NWN Lexicon by showing how to use this code effectively.


See Also

functions: GetItemPropertyDurationRemaining(), GetItemPropertyDurationType()