SAVING_THROW_TYPE_* Constant Group

From NWN Lexicon
Jump to navigationJump to search


Describes different saving throw types. They are used in two ways:

Missing Value

It appears value 20, which would maybe be called SAVING_THROW_TYPE_PARALYSIS, is in the game however no item properties or effects can apply bonuses or penalties for it and there is no check for IMMUNITY_TYPE_PARALYSIS for the return value.

Seems to mainly have been used by Bioware for the Assassin Death Attack roll to give it more thematic elements.

Using values over 20 seem to have no effect in the saving throw functions.

Constants

Constant Value Description
SAVING_THROW_TYPE_ACID 6
Specifies saving throws against acid.
SAVING_THROW_TYPE_ALL 0
Specifies all types of saving throws. Note that SAVING_THROW_TYPE_NONE mirrors this value, since it is what the saving throw functions use.
SAVING_THROW_TYPE_CHAOS 19
Specifies saving throws against chaos effects.
SAVING_THROW_TYPE_COLD 12
Specifies saving throws against cold based effects.
SAVING_THROW_TYPE_DEATH 11
Specifies saving throws against death effects.

If the script is a spell script and the spell UserType is 1, this will return immunity in saving throw functions if they have IMMUNITY_TYPE_DEATH.

SAVING_THROW_TYPE_DISEASE 3
Specifies saving throws against disease.

If used in saving throw functions it will return immune if they have IMMUNITY_TYPE_DISEASE.

SAVING_THROW_TYPE_DIVINE 13
Specifies saving throws against divine effects.
SAVING_THROW_TYPE_ELECTRICITY 8
Specifies saving throws against electrical based effects.
SAVING_THROW_TYPE_EVIL 17
Specifies saving throws against evil effects.
SAVING_THROW_TYPE_FEAR 4
Specifies saving throws against fear.

If used in saving throw functions it will return immune if they have IMMUNITY_TYPE_FEAR or IMMUNITY_TYPE_MIND_SPELLS.

SAVING_THROW_TYPE_FIRE 7
Specifies saving throws against fire.
SAVING_THROW_TYPE_GOOD 16
Specifies saving throws against good effects.
SAVING_THROW_TYPE_LAW 18
Specifies saving throws against law effects.
SAVING_THROW_TYPE_MIND_SPELLS 1
Specifies saving throws against mind affecting spells.

If used in saving throw functions it will return immune if they have IMMUNITY_TYPE_MIND_SPELLS.

SAVING_THROW_TYPE_NEGATIVE 10
Specifies saving throws against negative effects.
SAVING_THROW_TYPE_NONE 0
Specifies no saving throw type.
SAVING_THROW_TYPE_POISON 2
Specifies saving throws against poison.

If used in saving throw functions it will return immune if they have IMMUNITY_TYPE_POISON.

SAVING_THROW_TYPE_POSITIVE 9
Specifies saving throws against positive effects.
SAVING_THROW_TYPE_SONIC 5
Specifies saving throws against sound based effects.
SAVING_THROW_TYPE_SPELL 15
Specifies saving throws against spells.

Note: This will be automatically applied, on top of any other choice for FortitudeSave, ReflexSave and WillSave, if the script running is from a spell and the UserType is set to 1.

SAVING_THROW_TYPE_TRAP 14
Specifies saving throws against trap type effects.

If used in saving throw functions it will return immune if they have IMMUNITY_TYPE_TRAP.


See Also

functions: 

WillSave