state.ids
Relates to offset 0x0020 in the CRE file format.
Used by the following script triggers: The file is partially extensible; new states cannot be created though existing states can be combined to create shortcut states. Sum their values together to get the value of the new state. When combining with states that are themselves combinations, it is safer to use bitwise OR instead of summation.
The norm is to keep the value in hexadecimal format, so it is easier to see if it is a combination state and which other states it is made of.
In other words, STATEs are cumulative: all those STATEs that aren't a power of 2 (only one bit set) are combinations of other STATEs. In particular, you can BOR (bitwise OR) the base STATEs (i.e., all those listed at offset 0x0020 of a CRE file) to form all the others. For instance, STATE_HARMLESS is STATE_FEEBLEMINDED | STATE_CHARMED | STATE_IMMOBILE... and STATE_IMMOBILE is STATE_HELPLESS | STATE_STUNNED | STATE_SLEEPING.
0x00000000 STATE_NORMAL
Set by opcode #39
Set by opcode #3
Set by opcode #24
Set by opcode #45
Set by opcode #20
0x00000029 STATE_IMMOBILE
Set by opcode #13
Set by opcode #13
Set by opcode #13
Set by opcode #13
Set by opcode #13
0x00000FC0 STATE_REALLY_DEAD
Set by opcode #38
Set by opcode #5 and opcode #241
Set by opcode #25
Set by opcode #16 and opcode #317
Set by opcode #40
Set by opcode #63
Set by opcode #74
Set by opcode #76
0x00102029 STATE_HARMLESS
Set by opcode #69
Set by opcode #20
0x00400010 STATE_NOT_TARGETABLE
Set by opcode #130
Set by opcode #131
Set by opcode #132
Set by opcode #133
Set by opcode #129
Set by opcode #137
Set by opcode #65
Set by opcode #159
0x60400010 STATE_ILLUSIONS
Set by opcode #128
0x80040004 STATE_RANGED_TARGET
0x80101FEF CD_STATE_NOTVALID
0x8010202D STATE_DISABLED
0x8015302D STATE_DEBUFF