Difference between revisions of "Effect immunities 2da"
(Created) |
(No difference)
|
Revision as of 15:05, 10 March 2013
The effect_immunities 2da lists which creature appearances are immune to specific effects.
The 2da is defined as an m2da in the M2DA_base 2da and has an ID of 165. It can be extended by m2da fragments which have names starting with effect_immunities. It can be referenced in scripting using the TABLE_EFFECT_IMMUNITIES constant defined in 2da_constants_h.
Structure
Column | Type | Description |
---|---|---|
ID | int | A number that uniquely identifies the entry (unless creating an M2DA override). ID numbers are listed from smallest to highest within a given file but do not need to be consecutive. |
Label | string | Human readable representation of the ID |
e1014 | int | Knockback |
e1027 | int | Stun |
e1011 | int | Disease |
e1020 | int | Daze |
e1033 | int | Sleep |
e1034 | int | Charm |
e1035 | int | Confusion |
e1036 | int | Fear |
e1003 | int | Root |
e1051 | int | Slip |
Remarks
The values in the ID column correspond to the ID of the appearances in the APR_ m2da.
The number value in each of the the e#### column names is an ID of an effect in the effects 2da. The "e" prefix is required because the 2da specification does not allow purely numeric column names. If the actual value in the column is greater than 0 then a creature with that appearance type is immune to that effect. The different values have the following meaning:
- 1 = An "immune" message is displayed
- 2 = No message is displayed
- 3 = A "resisted" message is displayed
Appearances which are immune to a specific effect do not have animations for these effects, so just removing immunity will not necessarily make effects work on that appearance.