iprp_saveelement.2da is used to specify specific save bonuses for ItemPropertyBonusSavingThrowVsX and ItemPropertyReducedSavingThrowVsX and obviously items in the toolset.

2da Missing Items

There are 6 items you can re-enable since they reflect valid saving throws (The game actively has for usual effects and script functions). These are Traps, Spells, Law, Chaos, Good and Evil.

The reasons the Law, Chaos, Good and Evil may not have been enabled is, essentially, no spell uses those saving throw types (So they'd functionally do nothing), but Spells and Traps have valid saves. Note the D&D rules some spells have multiple descriptors, such as Holy Word which is both Sonic and Good. Sometimes this is covered (Mind-Affecting affects Fear type saves for instance). Many Good and Evil spells were not implemented in the game (Good and Evil domains were not added where most of the spells come from).

Note Backstab and Illusion will do nothing.

Not having a TLK reference means the lines won't load it properly. To fix it use this example fixed file using existing valid TLK entries.

2DA V2.0

           Name   NameString       Cost   SavingThrowType
0          5152   Universal        1.25   0
1          1027   Acid             0.4    6
2          ****   Backstab         0.4    ****
3          1029   Cold             0.4    12
4          5154   Death            0.75   11
5          1006   Disease          0.5    3
6          5155   Divine           0.4    13
7          1030   Electrical       0.4    8
8          993    Fear             0.4    4
9          1028   Fire             0.5    7
10         ****   Illusion         0.5    ****
11         5157   Mind-Affecting   0.75   1
12         5158   Negative         0.75   10
13         879    Poison           0.5    2
14         5159   Positive         0.4    9
15         2202   Sonic            0.4    5
16         5563   Traps            0.4    14
17         10566  Spells           0.75   15
18         5621   Law              0.4    18
19         5612   Chaos            0.4    19
20         5618   Good             0.4    16
21         5616   Evil             0.4    17

New Saving Throw Types

These can now be added with 1.89.8193.37 where you can add new saving throw types into savingthrowtypes.2da which can be used then in scripted saving throws.

It is a shame this list doesn't match the default SAVING_THROW_TYPE_* constants, so instead when a new entry is added to savingthrowtypes.2da add the relevant line identifier to the SavingThrowType column.

2da Columns

Column LabelExample

Valid Values

Description and Notes
Name1028Dialog.tlk string reference

Shown in toolset and in game. If not present the line is considered invalid and will not be allowed in the toolset.

LabelFireHuman readable stringUnused by the game just a label
Cost0.5FloatSee parent page on how costs are calculated
SavingThrowType7Line ID in savingthrowtypes.2da

Added in 1.89.8193.37. Can now add new saving throw types and reference them in item properties using this to link to the correct line ID.

2da Contents

2DA V2.0

           Name   NameString       Cost   SavingThrowType
0          5152   Universal        1.25   0
1          1027   Acid             0.4    6
2          ****   Backstab         0.4    ****
3          1029   Cold             0.4    12
4          5154   Death            0.75   11
5          1006   Disease          0.5    3
6          5155   Divine           0.4    13
7          1030   Electrical       0.4    8
8          993    Fear             0.4    4
9          1028   Fire             0.5    7
10         ****   Illusion         0.5    ****
11         5157   Mind-Affecting   0.75   1
12         5158   Negative         0.75   10
13         879    Poison           0.5    2
14         5159   Positive         0.4    9
15         2202   Sonic            0.4    5
16         ****   Traps            0.4    14
17         ****   Spells           0.75   15
18         ****   Law              0.4    18
19         ****   Chaos            0.4    19
20         ****   Good             0.4    16
21         ****   Evil             0.4    17
 
  • No labels