IPGetDamagePowerConstantFromNumber
From NWN Lexicon
Jump to navigationJump to search
IPGetDamagePowerConstantFromNumber(int)
Converts a number to a damage power constant
int IPGetDamagePowerConstantFromNumber(
int nNumber
);
Parameters
nNumber
Damage power.
Description
Mapping between numbers and power constants for ITEM_PROPERTY_DAMAGE_BONUS returns the appropriate ITEM_PROPERTY_DAMAGE_POWER_* constant for nNumber.
Remarks
This function is only useful for effects, since effects are the only functions using DAMAGE_POWER_*.
Used by the arcane archer scripts in x0_i0_spells / x0_s2_hailarrows.
Known Bugs
It claims to return ITEM_PROPERTY_DAMAGE_POWER_* but this doesn't exist. It returns DAMAGE_POWER_* instead.
Requirements
#include " x2_inc_itemprop "
Version
1.61
See Also
| constants: |
author: Lilac Soul