IPGetNumberOfAppearances

From NWN Lexicon
Revision as of 00:37, 26 August 2012 by Dood (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search



IPGetNumberOfAppearances(int)

Returns the number of armor part variations for the specified part.

int IPGetNumberOfAppearances(
    int nPart
);

Parameters

nPart

ITEM_APPR_ARMOR_MODEL_*


Description

Returns the number of possible armor part variations for the specified part

nPart - ITEM_APPR_ARMOR_MODEL_* constant

Uses Get2DAstring, so do not use in loops



Remarks

Used by the crafting system (x2_im_*).


Known Bugs

BROKEN! This function does not exist! It is declared, but never implemented. Trying to use it will give this error message:

ERROR: UNDEFINED IDENTIFIER ()


Requirements

#include " x2_inc_itemprop "

Version

1.61

See Also

constants: 

ITEM_APPR_* Constants



 author: Lilac Soul