GetPortraitId

// Get the PortraitId of oTarget. // - oTarget: the object for which you are getting the portrait Id. // Returns: The Portrait Id number being used for the object oTarget. //         The Portrait Id refers to the row number of the Portraits.2da //         that this portrait is from. //         If a custom portrait is being used, oTarget is a player object, //         or on an error returns PORTRAIT_INVALID. In these instances //         try using GetPortraitResRef instead. int GetPortraitId(object oTarget=OBJECT_SELF)

WARNING: This function is missing from NWN2 and thus any script which is imported that uses this function will fail to compile