Immunities¶
Note
Immunities versus alignements, races, etc have not been implemented.
-
DebugEffectImmunities
(cre)¶ Generate a debug string with effect immunity info.
Parameters: - vs (
Creature
) – Creature.
Return type: string
- vs (
-
GetEffectImmunity
(cre, imm, vs)¶ Determines total effect immunity. This is the maximum of creatures innate immunity and their innate immunity plus immunity effect modifiers. The result is not clamped by
GetEffectImmunityLimits()
.Note
This function is not limited to default NWN behavior. It was modified to facilitate a percentate immunity to an IMMUNITY_TYPE_*. However, this doesn’t modify the default behavior of item properties or
effect.Immunity()
so it stills work as expected.Parameters: Return type: int
-
GetEffectImmunityModifier
(cre, imm, vs)¶ Determines the amount the modifier from effects.
Parameters:
-
GetInnateImmunity
(cre, imm)¶ Get innate immunity.
Parameters: - cre (
Creature
) – Creature. - imm (int) – IMMUNITY_TYPE_* constant.
Return type: int
- cre (
-
SetInnateImmunityOverride
(func, ...)¶ Parameters: - func – Function taking a creature parameter and returning a percent immunity.
- ... – List of IMMUNITY_TYPE_* constants.