EffectNegativeLevel(int)
Create a Negative Level effect that will decrease the level of the target.
effect EffectNegativeLevel( int nNumLevels );
Parameters
nNumLevels
the number of negative levels to apply.
Description
Returns a new effect object that when applied to a target will decrease their level by nNumLevels.
Returns an effect of type EFFECT_TYPE_INVALIDEFFECT if nNumLevels > 100.
Negative levels can kill a creature, if they ever go over their hit dice. Statistics affected include the targets Base attack Bonus, Saves, Skills and hit points (and possibly more), and penalties appear red on the creatures statistic page.
Remarks
Since the loss of a level is simply a negative effect, it can be easily recovered with a restoration spell or potion.
Constructors are special methods that return a new instance of an object. In NWN Script each effect that you can place on an object has it’s own constructor that creates a new instance of the specified effect. This effect object can then be used in an ApplyEffectToObject() Command. See Effect Constructor for more details.
Version
1.22
See Also
categories: | Effects Functions | Experience Functions |
constants: | EFFECT_TYPE_* Constants |
author: John Shuell, editor: Jasperre, additional contributor(s): Jasperre
Send comments on this topic.