IPGetDamagePowerConstantFromNumber
From NWN Lexicon
Contents |
[edit] IPGetDamagePowerConstantFromNumber(int)
Converts a number to a damage power constant
int IPGetDamagePowerConstantFromNumber( int nNumber );
[edit] Parameters
nNumber
Damage power.
[edit] Description
Mapping between numbers and power constants for ITEM_PROPERTY_DAMAGE_BONUS returns the appropriate ITEM_PROPERTY_DAMAGE_POWER_* constant for nNumber.
[edit] 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.
[edit] Known Bugs
It claims to return ITEM_PROPERTY_DAMAGE_POWER_* but this doesn't exist. It returns DAMAGE_POWER_* instead.
[edit] Requirements
#include " x2_inc_itemprop "
[edit] Version
1.61
[edit] See Also
constants: |
author: Lilac Soul