I'm using opcodes 340 and 341 to add special effects to backstabs and critical hits, respectively. Both of them use spell files in the resource field rather than .eff files, but I'm having trouble getting them to work.
I know that 340, the backstab effect, only applies if the character in question has a backstab multiplier. Shadowdancers at low levels and other classes without backstab multipliers won't apply the backstab effect.
Opcode 341 is tougher. It appears to only work if the spell in the resource field uses the Apply Effects List effect, opcode 326. However, there are almost no spells in the game that use this opcode, and all of them are specific to narrow critter types, like the scimitar that banishes elementals and mephits on critical hits. Also, they seem to have different parameters from the Use Effect File opcode 177. This means I don't know what parameters to use in opcode 341 to make a critical hit effect work on the right targets.
I want to either (1) create a spell that uses Apply Effects List 326 on any
target, or (2) create one that applies to only living targets.