VersusTrapEffect(effect)

From NWN Lexicon
Jump to: navigation, search


Red bug icon.png Warning: This function has a known bug and may not work as expected in some situations. See Known Bugs for details.

Modifies an effect so that it only works against traps.

effect VersusTrapEffect(
    effect eEffect
);

Parameters

eEffect
The effect you wish to modify.

Description

Set eEffect to be versus traps. However this is bugged and does nothing.


Remarks

This is bugged and is nonfunctional. Bioware never uses this. Therefore don't bother.


Alternatives

It is worthwhile just using EffectSavingThrowIncrease and EffectSavingThrowDecrease with the parameter nSaveType set to SAVING_THROW_TYPE_TRAP. This will make it operational against only trap saving throws.

For immunity to trap saving throws you can also use EffectImmunity(IMMUNITY_TYPE_TRAP) which stops them firing and makes saving throw functions FortitudeSave, ReflexSave and WillSave return 2 (Immune) when SAVING_THROW_TYPE_TRAP is used in them.


Known Bugs

This doesn't do anything. Instead see remarks above for alternatives. This is after testing/checking with GetEffectInteger which, for Racial and Alignment changes, makes some mark against the effect. It doesn't do anything for traps for some reason.

The reason is probably because EffectSavingThrowIncrease would be the only one it'd really "need".


Version

1.22

See Also

functions:  VersusRacialTypeEffect

VersusAlignmentEffect


 author: John Shuell, editor: Jasperre