CreateProtectionFromAlignmentLink(int, int)

From NWN Lexicon
Jump to navigationJump to search
Note: This function page documents something only available in the nw_i0_spells include file. The function may not be accurately documented here but you can read the nwscript code for the function in the game files.

Creates a protection from alignment effect.

effect CreateProtectionFromAlignmentLink(
    int nAlignment,
    int nPower = 1
);

Parameters

nAlignment
Alignment to protect from (ALIGNMENT_*)
nPower
Multiplier (level) of the protection. (Default: 1)


Description

Creates a linked effect and plays visual animations for protection from a specific alignment. nPower multiplies the amount of protection at a rate of +3 deflection bonus to AC and +2 bonus to saving throws against the specified nAlignment (thus a nPower value of 3 would result in +9 deflection bonus to AC and +6 bonus to saving throws). Also renders the applicant of the effect immunity to all mind effecting spells cast of that alignment.


Requirements

#include " nw_i0_spells "


See Also

constants: 

ALIGNMENT_* Constants



 author: Charles Feduke