IPGetWeaponEnhancementBonus

From NWN Lexicon

Contents

[edit] IPGetWeaponEnhancementBonus(object, int)

Returns a weapon's enhancement bonus.

int IPGetWeaponEnhancementBonus(
    object oWeapon,
    ITEM_PROPERTY_ENHANCEMENT_BONUS
);

[edit] Parameters

oWeapon

Weapon to get enhancement bonus from.

nEnhancementBonusType

See remarks. (Default: ITEM_PROPERTY_ENHANCEMENT_BONUS )


[edit] Description

Returns the current enhancement bonus of a weapon (+1 to +20), 0 if there is no enhancement bonus. You can test for a specific type of enhancement bonus by passing the appropritate ITEM_PROPERTY_ENHANCEMENT_BONUS_* constant into nEnhancementBonusType



[edit] Remarks

The following values are valid for nEnhancementBonusType:

ITEM_PROPERTY_ENHANCEMENT_BONUS
ITEM_PROPERTY_ENHANCEMENT_BONUS_VS_ALIGNMENT_GROUP
ITEM_PROPERTY_ENHANCEMENT_BONUS_VS_RACIAL_GROUP
ITEM_PROPERTY_ENHANCEMENT_BONUS_VS_SPECIFIC_ALIGNEMENT


[edit] Requirements

#include " x2_inc_itemprop "

[edit] Version

1.61

[edit] See Also

constants: 

ITEM_PROPERTY_* Constants



 author: Lilac Soul
 

Personal tools
Categories