I want to create an item, Oil of Dispelling, that works as follows:
- When used on an ally, it will dispel all dispel-able effects with 100% accuracy.
- When used on an enemy it allows a save versus wands at +4 to avoid the dispelling.
The idea here is that an ally would allow the potion to be used on them, but an enemy (including a charmed/dominated ally) would try to avoid it.
I'm a little in the dark about how identifiers in ea.ids work, though. If I use opcode 177 (Use EFF File) with parameter2 = 2 (ea.ids), then parameter1 = 30 (goodcutoff) for allies, and parameter1 = 31 (notgood) for non-allies, would that do what I want?