EFF file format
Applies to:
BG1: TotS, BG2, BG2: ToB, IWD, IWD:HoW, IWD:TotL, PST, BGEE
General Description
This file format describes an effect (opcode) and its parameters. The format is only ever found embedded in other files (e.g. ITM or SPL). The engine appears to roll a probability for each valid target type, rather than one probability per attack.
Offset | Size (datatype) | Description |
---|---|---|
0x0000 | 2 (word) | Effect type |
0x0002 | 1 (byte) |
Note:
|
0x0003 | 1 (byte) | Power |
0x0004 | 4 (dword) | Parameter 1 |
0x0008 | 4 (dword) | Parameter 2 |
0x000c | 1 (byte) |
|
0x000d | 1 (byte) |
The default behaviour is that effects cannot be dispelled and ignore magic resistance.
This can also be presented in the more traditional way:
The only difference between |
0x000e | 4 (dword) |
|
0x0012 | 1 (byte) | |
0x0013 | 1 (byte) |
Info:
|
0x0014 | 8 (resref) | |
0x001c | 4 (dword) |
Note:
When this field is used as
Maximum Level :
|
0x0020 | 4 (dword) |
Note:
When this field is used as
Minimum Level :
|
0x0024 | 4 (dword) |
Note:
If more than 1 Saving Throw Type is specified (
BIT0 – BIT4 ), the target rolls against their best save.
|
0x0028 | 4 (dword) | Saving throw bonus |
0x002c | 4 (dword) | Unknown |