Retrieves an integer parameter of an effect.
- The effect to check a parameter of
- The index of the parameter. Valid values 0 through 7.
Get the integer parameter of eEffect at nIndex.
nIndex bounds: 0 >= nIndex < 8.
Returns: the value or 0 on error/when not set.
This digs into an effect to get some values that are currently set on it. For instance EffectDamageResistance you can figure out what damage is being resisted, by what amount and if there is a limit. These numbers can dynamically change during runtime (such as damage resistance running out).
The experimentation of this function has been documented on the lexicon; you can find GetEffectInteger information on the.
This function was added in 1.83.8193.21 of NWN:EE.
The index is between 0 and 7 but EffectDamage uses parameters up to 15. However you can't get this effect after application, so you should know what parameters you're adding to it.
Various constants, see Effect Constructors.