How does Opcode Set State (328) work?

What are the effects of this opcode, how does it work and what are the potential conflicts?
For example if a character is already under a state, for example: ENCHANTED_WEAPON - 93
Will this interfere with other spells attempting to set states?
Thank you in advance...
For example if a character is already under a state, for example: ENCHANTED_WEAPON - 93
Will this interfere with other spells attempting to set states?
Thank you in advance...
0
Comments
stats.ids >> statistic (profs, resist, misc bonus...)
state.ids >> state (normal, charmed, poisoned...)
There is a StateCheck trigger, and the spell protection mechanism also works with it (like additional effects could affect you if you are in a specific state/or not in a specific state).
For example, could you have Grease apply a "Greased" state that causes fire spells to deal bonus damage to any Greased target?
I was worried that if I set a permanent state for example "enchant weapon" that would negatively affect or interfere the character going forward.
It takes 3 additional effects per combination.
1 - 328 with set state
2 - 326 with add effects list (based on state)
3 - the actual extra damage, and other effects.
The original opcode 177 for detecting conditions is totally superseded by opcodes 318/324/326.